Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"inject": false,
"bundleName": "mdsoar-theme"
},
{
"input": "src/themes/mdsoar/styles/theme.scss",
"inject": false,
"bundleName": "mdsoar-bowie-state-theme"
},
{
"input": "src/themes/mdsoar/styles/theme.scss",
"inject": false,
Expand Down
5 changes: 5 additions & 0 deletions config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ themes:
# over time (and across servers).

# Community Themes
- name: 'mdsoar-bowie-state'
extends: 'mdsoar'
# handle: '11603/40165'
uuid: '40761e5f-122b-409b-ad4a-2d3afa1dc903'

- name: 'mdsoar-frostburg'
extends: 'mdsoar'
# handle: '11603/1'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {
AsyncPipe,
NgFor,
NgIf,
NgTemplateOutlet,
} from '@angular/common';
import { Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { BreadcrumbsService } from 'src/app/breadcrumbs/breadcrumbs.service';
import { VarDirective } from 'src/app/shared/utils/var.directive';

import { BreadcrumbsComponent as BaseComponent } from '../../../mdsoar/app/breadcrumbs/breadcrumbs.component';

/**
* Component representing the breadcrumbs of a page
*/
@Component({
selector: 'ds-themed-breadcrumbs',
templateUrl: '../../../mdsoar/app/breadcrumbs/breadcrumbs.component.html',
styleUrls: [
'../../../../app/breadcrumbs/breadcrumbs.component.scss',
'../../../mdsoar/app/breadcrumbs/breadcrumbs.component.scss',
],
imports: [
AsyncPipe, NgbTooltipModule, NgFor, NgIf, NgTemplateOutlet, RouterLink,
TranslateModule, VarDirective,
],
standalone: true,
})
export class BreadcrumbsComponent extends BaseComponent {
communityLogoPath = 'assets/mdsoar-bowie-state/images/community_logo.jpg';

constructor(
breadcrumbsService: BreadcrumbsService,
) {
super(breadcrumbsService);
}
}
31 changes: 31 additions & 0 deletions src/themes/mdsoar-bowie-state/app/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<footer>
<div class="container">
<div class="row">

<div class="col-xs-12 col-sm-12 community_footer">
<div>
<img class="community_footer_logo" src="assets/mdsoar-bowie-state/images/community_logo.jpg"><p>
<br>
Thurgood Marshall Library<br>
Bowie State University<br>
14000 Jericho Park Road<br>
Bowie, MD 20715-9465<br>
<a href="https://bowiestate.libguides.com/home">https://bowiestate.libguides.com/home</a>
<br>
<br>
E-mail: <a href="mailto:[email protected]">archives&#64;bowiestate.edu</a>
<br>
Phone: <a href="tel:3018603627">301-860-3627</a>
</p>
<hr>
<p>
If you wish to submit a copyright complaint or withdrawal request, please email
<a href="mailto:[email protected]?subject=Takedown%20Request&amp;body=In%20your%20request,%20please%20include%20a%20link%20to%20the%20resource">mdsoar-help&#64;umd.edu</a>.
</p>
</div>
</div>
</div>
<a class="hidden" href="/htmlmap">&nbsp;</a>
<p>&nbsp;</p>
</div>
</footer>
13 changes: 13 additions & 0 deletions src/themes/mdsoar-bowie-state/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Component } from '@angular/core';

import { FooterComponent as BaseComponent } from '../../../mdsoar/app/footer/footer.component';

@Component({
selector: 'ds-themed-footer',
styleUrls: ['../../../mdsoar/app/footer/footer.component.scss'],
templateUrl: 'footer.component.html',
imports: [],
standalone: true,
})
export class FooterComponent extends BaseComponent {
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/themes/mdsoar-bowie-state/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { NgModule } from '@angular/core';

import { BreadcrumbsComponent } from './app/breadcrumbs/breadcrumbs.component';
import { FooterComponent } from './app/footer/footer.component';

/**
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
BreadcrumbsComponent,
FooterComponent,
];

@NgModule({
imports: [ ...DECLARATIONS ],
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component })),
],
})
/**
* This module is included in the main bundle that gets downloaded at first page load. So it should
* contain only the themed components that have to be available immediately for the first page load,
* and the minimal set of imports required to make them work. Anything you can cut from it will make
* the initial page load faster, but may cause the page to flicker as components that were already
* rendered server side need to be lazy-loaded again client side
*
* Themed EntryComponents should also be added here
*/
export class EagerThemeModule {
}
4 changes: 4 additions & 0 deletions src/themes/mdsoar/app/home-page/home-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ <h2>Institutions in MD-SOAR</h2>

<p>Select a community to browse its collections.</p>

<div>
<a class="lead" href="/handle/11603/40165">Bowie State University</a>
</div>

<div>
<a class="lead" href="/handle/11603/1">Frostburg State University</a>
</div>
Expand Down