Skip to content

Commit b309969

Browse files
authored
Merge pull request #11 from HSG-Library/develop
Release v2022.05.06
2 parents d470aa8 + 33936e5 commit b309969

19 files changed

+370
-59
lines changed

css/hsg-login-box.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

css/hsg-standalone-login.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/***********************************/
2+
/****** Standalone Login Page ******/
3+
/***********************************/
4+
/*
5+
https://hsg.swisscovery.slsp.ch/discovery/login?vid=41SLSP_HSG:HSGswisscovery
6+
7+
8+
prm-stand-alone-login .login-card md-list-item.login-brighter-dialog button.md-button:focus,
9+
prm-stand-alone-login .login-card md-list-item.login-brighter-dialog button.md-button:hover {
10+
background-color: #49cb90 !important;
11+
}
12+
*/
13+
14+
body.hsg-stand-alone-login-body {
15+
background-color: #00802F;
16+
}
17+
18+
prm-stand-alone-login .layout-column {
19+
align-items: stretch;
20+
}
21+
22+
prm-stand-alone-login .hsg-login-info-card {
23+
min-width: 400px;
24+
}
25+
26+
prm-stand-alone-login .md-button:hover:not([disabled]) {
27+
color: #3a3a3a;
28+
}

html/help/help_de.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h3><a href="#questions">Fragen?</a></h3>
101101
<a href="#index">
102102
<h3>SLSP: Die Swiss Library Service Platform<img class="icon_up2" height="20" width="15" src="custom/41SLSP_NETWORK-CENTRAL_PACKAGE/img/help/iconUp.png" /></h3>
103103
</a>
104-
<p>Die Swiss Library Service Platform ist zusammen mit dem ihr untergeordneten Konsortium der Schweizer Hochschulbibliotheken mit &uuml;ber <a href="https://slsp.ch/libraries" target="_blank">475 Mitgliedern</a> das gr&ouml;sste Netzwerk von akademischen und Forschungsbibliotheken in der Schweiz. Sie wurde von Bibliotheken f&uuml;r Bibliotheken ins Leben gerufen und ist ein gemeinsames Projekt, mit dem landesweit eine Reihe von Services angeboten werden sollen, z. B. ein gemeinsamer mehrsprachiger Katalog mit wissenschaftlichen Informationen, ein gemeinsamer Vertreter f&uuml;r die Lizenzierung von E-Ressourcen und ein leistungsf&auml;higes Kuriernetzwerk f&uuml;r die gemeinsame Nutzung physischer Exemplare.</p>
104+
<p>Die Swiss Library Service Platform ist zusammen mit dem ihr untergeordneten Konsortium der Schweizer Hochschulbibliotheken mit &uuml;ber <a href="https://slsp.ch/libraries" target="_blank">490 Mitgliedern</a> das gr&ouml;sste Netzwerk von akademischen und Forschungsbibliotheken in der Schweiz. Sie wurde von Bibliotheken f&uuml;r Bibliotheken ins Leben gerufen und ist ein gemeinsames Projekt, mit dem landesweit eine Reihe von Services angeboten werden sollen, z. B. ein gemeinsamer mehrsprachiger Katalog mit wissenschaftlichen Informationen, ein gemeinsamer Vertreter f&uuml;r die Lizenzierung von E-Ressourcen und ein leistungsf&auml;higes Kuriernetzwerk f&uuml;r die gemeinsame Nutzung physischer Exemplare.</p>
105105
<p>SLSP stellt einen innovativen und bedeutenden Schritt in Richtung der digitalen Entwicklung der wissenschaftlichen Bibliotheken in der Schweiz dar. Durch die Verwaltung des cloud-gest&uuml;tzten Alma-Systems f&uuml;hrt die Organisation wissenschaftliche Informationen zusammen, die in Bibliotheken in der ganzen Schweiz gespeichert sind. Indem sie diese Informationen zug&auml;nglich und leicht auffindbar macht, tr&auml;gt SLSP zu wissenschaftlichen Entdeckungen und Fortschritten bei.</p>
106106
</md-card-content>
107107
<md-card-content id="gen3">

html/help/help_en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h3>SLSP: The Swiss Library Service Platfom<img class="icon_up2" height="20" wid
9999
</a>
100100
<p>
101101
The Swiss Library Service Platform, along with his subsidiary Consortium of Swiss Academic Libraries, with more than
102-
<a href="https://slsp.ch/libraries" target="_blank">475 members</a>, is the biggest network of academic and research libraries in Switzerland. Created by libraries, for libraries, it is a joint effort to provide a series of services at the entire country such as, a shared multilingual catalogue of scientific information, a unique representative for e-resources licensing and a performant courier network for physical items sharing.
102+
<a href="https://slsp.ch/libraries" target="_blank">490 members</a>, is the biggest network of academic and research libraries in Switzerland. Created by libraries, for libraries, it is a joint effort to provide a series of services at the entire country such as, a shared multilingual catalogue of scientific information, a unique representative for e-resources licensing and a performant courier network for physical items sharing.
103103
</p>
104104
<p>SLSP represents an innovative and significant step forward in the digital evolution of scientific libraries in Switzerland. By managing the cloud-based Alma system, the organisation brings together scientific information stored in libraries across Switzerland. By making this information accessible and easily findable, SLSP contributes to scientific discovery and progress.</p>
105105
</md-card-content>

html/help/help_fr.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h3><a href="#questions">Des questions?</a></h3>
101101
<a href="#index">
102102
<h3>SLSP: Swiss Library Service Platform<img class="icon_up2" height="20" width="15" src="custom/41SLSP_NETWORK-CENTRAL_PACKAGE/img/help/iconUp.png" /></h3>
103103
</a>
104-
<p>Swiss Library Service Platform ainsi que sa filiale, le Consortium des biblioth&egrave;ques universitaires suisses, comptant plus de 475 membres, est le plus large r&eacute;seau de biblioth&egrave;ques de recherche universitaires de Suisse. Cr&eacute;&eacute; par des biblioth&egrave;ques pour les biblioth&egrave;ques, il s'agit d'un effort conjoint visant &agrave; offrir un panel de services dans tout le pays tels qu'un catalogue multilingue partag&eacute; d'informations scientifiques, une repr&eacute;sentation unique de l'octroi de licences pour les ressources &eacute;lectroniques et un r&eacute;seau performant de navettes dans le cadre du partage des exemplaires physiques.</p>
104+
<p>Swiss Library Service Platform ainsi que sa filiale, le Consortium des biblioth&egrave;ques universitaires suisses, comptant plus de 490 membres, est le plus large r&eacute;seau de biblioth&egrave;ques de recherche universitaires de Suisse. Cr&eacute;&eacute; par des biblioth&egrave;ques pour les biblioth&egrave;ques, il s'agit d'un effort conjoint visant &agrave; offrir un panel de services dans tout le pays tels qu'un catalogue multilingue partag&eacute; d'informations scientifiques, une repr&eacute;sentation unique de l'octroi de licences pour les ressources &eacute;lectroniques et un r&eacute;seau performant de navettes dans le cadre du partage des exemplaires physiques.</p>
105105
<p>SLSP repr&eacute;sente une avanc&eacute;e novatrice et significative dans l'&eacute;volution num&eacute;rique des biblioth&egrave;ques scientifiques en Suisse. En g&eacute;rant le syst&egrave;me bas&eacute; dans le cloud Alma, l'organisation rassemble les informations scientifiques conserv&eacute;es dans les biblioth&egrave;ques sur tout le territoire. En rendant ces informations accessibles et faciles &agrave; trouver, SLSP contribue &agrave; la d&eacute;couverte et au progr&egrave;s scientifiques.</p>
106106
</md-card-content>
107107
<md-card-content id="gen3">

html/help/help_it.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h3><a href="#questions">Domande?</a></h3>
101101
<a href="#index">
102102
<h3>SLSP: La Swiss Library Service Platform <img class="icon_up2" height="20" width="15" src="custom/41SLSP_NETWORK-CENTRAL_PACKAGE/img/help/iconUp.png" /></h3>
103103
</a>
104-
<p>La Swiss Library Service Platform insieme alla sua controllata Consorzio delle biblioteche universitarie svizzere &egrave;, con oltre <a href="https://slsp.ch/libraries" target="_blank">475 membri</a> la rete di biblioteche universitarie e di ricerca pi&ugrave; grande della Svizzera. Creata dalle biblioteche per le biblioteche, si tratta di un impegno comune per fornire una serie di servizi all'intero paese, quali un catalogo multilingue condiviso di informazioni scientifiche, una rappresentazione unica per le licenze di risorse elettroniche e una rete di corrieri efficiente per la condivisione di risorse fisiche. </p>
104+
<p>La Swiss Library Service Platform insieme alla sua controllata Consorzio delle biblioteche universitarie svizzere &egrave;, con oltre <a href="https://slsp.ch/libraries" target="_blank">490 membri</a> la rete di biblioteche universitarie e di ricerca pi&ugrave; grande della Svizzera. Creata dalle biblioteche per le biblioteche, si tratta di un impegno comune per fornire una serie di servizi all'intero paese, quali un catalogo multilingue condiviso di informazioni scientifiche, una rappresentazione unica per le licenze di risorse elettroniche e una rete di corrieri efficiente per la condivisione di risorse fisiche. </p>
105105
<p>SLSP rappresenta un passaggio innovativo e significativo in direzione dell'evoluzione digitale delle biblioteche in Svizzera. Grazie alla gestione del sistema Alma basato su un cloud, l'organizzazione unisce le informazioni scientifiche archiviate nelle biblioteche in tutta la Svizzera. Rendendo accessibili e facilmente trovabili tali informazioni, SLSP fornisce un contributo alla ricerca e al progresso scientifico.</p>
106106
</md-card-content>
107107
<md-card-content id="gen3">

js/main.js

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11

2-
import { hsgHowovpAfterModule } from './modules/alma-howovp-after/hsg-howovp-after.module';
3-
import { hsgHtgiSvcAfterModule } from './modules/alma-htgi-svc-after/hsg-htgi-svc-after.module';
4-
import { hsgAlertMessageModule } from './modules/hsg-alert-message/hsg-alert-message.module';
5-
import { hsgExceptionHandlerModule } from './modules/hsg-exception-handler/hsg-exception-handler.module';
2+
import { hsgHowovpAfterModule } from './modules/alma-howovp-after/hsg-howovp-after.module'
3+
import { hsgHtgiSvcAfterModule } from './modules/alma-htgi-svc-after/hsg-htgi-svc-after.module'
4+
import { hsgAlertMessageModule } from './modules/hsg-alert-message/hsg-alert-message.module'
5+
import { hsgExceptionHandlerModule } from './modules/hsg-exception-handler/hsg-exception-handler.module'
66
import { hsgAlmaOtherMembersAfterModule } from './modules/prm-alma-other-members-after/hsg-alma-other-members-after.module'
7-
import { hsgAlmaViewitAfterModule } from './modules/prm-alma-viewit-after/hsg-alma-viewit-after.module';
8-
import { hsgJournalsAfterModule } from './modules/prm-journals-after/hsg-journals-after.module';
9-
import { hsgLoanAfterModule } from './modules/prm-loan-after/hsg-loan-after.module';
10-
import { hsgLocationItemsAfterModule } from './modules/prm-location-items-after/hsg-location-items-after.module';
11-
import { hsgLocationsAfterModule } from './modules/prm-locations-after/hsg-locations-after.module';
12-
import { hsgPersonalInfoAfterModule } from './modules/prm-personal-info-after/hsg-personal-info-after.module';
13-
import { hsgRequestAfterModule } from './modules/prm-request-after/hsg-request-after.module';
14-
import { hsgSearchResultAvailabilityLineAfterModule } from './modules/prm-search-result-availability-line-after/hsg-search-result-availabilty-line-after.module';
15-
//import { hsgServiceDetailsAfterModule } from './modules/prm-service-details-after/hsg-service-details-after.module';
16-
import { hsgStackMapAfterModule } from './modules/prm-stack-map-after/hsg-stack-map-after.module';
17-
import { hsgUserAreaExpandableAfterModule } from './modules/prm-user-area-expandable-after/hsg-user-ara-expandable-after.module';
18-
import { slspHttpInterceptRequestsModule } from './modules/slsp-http-intercept-requests/slsp-http-intercept-requests.module';
7+
import { hsgAlmaViewitAfterModule } from './modules/prm-alma-viewit-after/hsg-alma-viewit-after.module'
8+
import { hsgJournalsAfterModule } from './modules/prm-journals-after/hsg-journals-after.module'
9+
import { hsgLoanAfterModule } from './modules/prm-loan-after/hsg-loan-after.module'
10+
import { hsgLocationItemAfterModule } from './modules/prm-location-item-after/hsg-location-item-after.module'
11+
import { hsgLocationItemsAfterModule } from './modules/prm-location-items-after/hsg-location-items-after.module'
12+
import { hsgLocationsAfterModule } from './modules/prm-locations-after/hsg-locations-after.module'
13+
import { hsgPersonalInfoAfterModule } from './modules/prm-personal-info-after/hsg-personal-info-after.module'
14+
import { hsgRequestAfterModule } from './modules/prm-request-after/hsg-request-after.module'
15+
import { hsgSearchResultAvailabilityLineAfterModule } from './modules/prm-search-result-availability-line-after/hsg-search-result-availabilty-line-after.module'
16+
import { hsgServiceDetailsAfterModule } from './modules/prm-service-details-after/hsg-service-details-after.module'
17+
import { hsgStackMapAfterModule } from './modules/prm-stack-map-after/hsg-stack-map-after.module'
18+
import { hsgStandAloneLoginAfterModule } from './modules/prm-stand-alone-login-after/hsg-stand-alone-login-after.module'
19+
import { hsgUserAreaExpandableAfterModule } from './modules/prm-user-area-expandable-after/hsg-user-ara-expandable-after.module'
20+
import { slspHttpInterceptRequestsModule } from './modules/slsp-http-intercept-requests/slsp-http-intercept-requests.module'
1921

20-
let app = angular.module('viewCustom', ['angularLoad']);
22+
let app = angular.module('viewCustom', ['angularLoad'])
2123

22-
app.requires.push(hsgAlertMessageModule.name);
23-
app.requires.push(hsgExceptionHandlerModule.name);
24-
app.requires.push(hsgHowovpAfterModule.name);
25-
app.requires.push(hsgHtgiSvcAfterModule.name);
26-
app.requires.push(hsgAlmaOtherMembersAfterModule.name);
27-
app.requires.push(hsgAlmaViewitAfterModule.name);
28-
app.requires.push(hsgJournalsAfterModule.name);
29-
app.requires.push(hsgLoanAfterModule.name);
30-
app.requires.push(hsgLocationItemsAfterModule.name);
31-
app.requires.push(hsgLocationsAfterModule.name);
32-
app.requires.push(hsgPersonalInfoAfterModule.name);
33-
app.requires.push(hsgRequestAfterModule.name);
34-
app.requires.push(hsgSearchResultAvailabilityLineAfterModule.name);
35-
//app.requires.push(hsgServiceDetailsAfterModule.name);
36-
app.requires.push(hsgStackMapAfterModule.name);
37-
app.requires.push(hsgUserAreaExpandableAfterModule.name);
38-
app.requires.push(slspHttpInterceptRequestsModule.name);
24+
app.requires.push(hsgAlertMessageModule.name)
25+
app.requires.push(hsgExceptionHandlerModule.name)
26+
app.requires.push(hsgHowovpAfterModule.name)
27+
app.requires.push(hsgHtgiSvcAfterModule.name)
28+
app.requires.push(hsgAlmaOtherMembersAfterModule.name)
29+
app.requires.push(hsgAlmaViewitAfterModule.name)
30+
app.requires.push(hsgJournalsAfterModule.name)
31+
app.requires.push(hsgLoanAfterModule.name)
32+
app.requires.push(hsgLocationItemAfterModule.name)
33+
app.requires.push(hsgLocationItemsAfterModule.name)
34+
app.requires.push(hsgLocationsAfterModule.name)
35+
app.requires.push(hsgPersonalInfoAfterModule.name)
36+
app.requires.push(hsgRequestAfterModule.name)
37+
app.requires.push(hsgSearchResultAvailabilityLineAfterModule.name)
38+
app.requires.push(hsgServiceDetailsAfterModule.name)
39+
app.requires.push(hsgStackMapAfterModule.name)
40+
app.requires.push(hsgStandAloneLoginAfterModule.name)
41+
app.requires.push(hsgUserAreaExpandableAfterModule.name)
42+
app.requires.push(slspHttpInterceptRequestsModule.name)
3943

40-
app.run(function () { console.log('** app running **') });
44+
app.run(function () { console.log('** app running **') })
4145

4246
//BrowZine not enabled yet //
4347
// Begin BrowZine - Primo Integration (See: https://thirdiron.atlassian.net/wiki/spaces/BrowZineAPIDocs/pages/79200260/Ex+Libris+Primo+Integration)
@@ -60,12 +64,12 @@ window.browzine = {
6064
articleLinkViaUnpaywallEnabled: false,
6165
articleAcceptedManuscriptPDFViaUnpaywallEnabled: false,
6266
articleAcceptedManuscriptArticleLinkViaUnpaywallEnabled: false,
63-
};
67+
}
6468

65-
let browzine = {};
66-
browzine.script = document.createElement("script");
67-
browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/primo/browzine-primo-adapter.js";
68-
document.head.appendChild(browzine.script);
69+
let browzine = {}
70+
browzine.script = document.createElement("script")
71+
browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/primo/browzine-primo-adapter.js"
72+
document.head.appendChild(browzine.script)
6973

7074
// **controller is implemented in hsg-browzine-integration module**
7175
// End BrowZine - Primo Integration

js/modules/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ There is a proof of concept to report exceptions to a remote serivce via http, i
3030
* **`hsg-journals-startpage`** *module*\
3131
Start page for the journals search, similar to the [ETHZ Solution](https://gitlab.com/ethlibrary/slsp/customization-eth-view/-/tree/master/js/modules/prm-journals-after/eth-journals-startpage)
3232
<br><br>
33-
* **`prm-loans-after`** *hook*
33+
* **`prm-loan-after`** *hook*
3434
* **`slsp-renew-item-text`** *module*\
3535
New way to display reasons why an item is not renewable [SLSP Solution](https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/prm-loan-after/slsp-renew-item-text)
3636
<br><br>
37+
* **`prm-location-item-after`** *hook*
38+
* **`hsg-display-item-policy`** *module*\
39+
Display item policies 63, 67, 68, 70, which are hidden by default
40+
<br><br>
3741
* **`prm-location-items-after`** *hook*
3842
* **`eth-location-items-filter`** *module*\
3943
Adapted from [ETHZ Solution](https://gitlab.com/ethlibrary/slsp/customization-eth-view/-/tree/master/js/modules/prm-location-items-after/eth-location-items-filter) as suggested by [SLSP](https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/prm-location-items-after).
@@ -68,6 +72,10 @@ There is a proof of concept to report exceptions to a remote serivce via http, i
6872
* **`hsg-stack-map-link`** *module*\
6973
The stack map (MediaScout) opens in a modal dialog instead of a new tab/window.
7074
<br><br>
75+
* **`prm-stand-alone-login-after`** *hook*
76+
* **`hsg-stand-alone-login-info`** *module*\
77+
Add additional styling and content to the stand alone login page (https://[discoveryhost]/discovery/login?vid=[viewid])
78+
<br><br>
7179
* **`prm-user-area-expandable-after`** *hook*
7280
* **`bcu-lang-switch`** *module*\
7381
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/prm-user-area-expandable-after/bcu-lang-switch \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export class hsgSandboxController {
2+
isSandbox() {
3+
const sandboxView = "41SLSP_HSG:sandbox_jfu"
4+
const params = new URLSearchParams(window.location.search)
5+
if (params.has('vid')) {
6+
const vid = params.get('vid')
7+
return vid == sandboxView
8+
}
9+
return false
10+
}
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const hsgDisplayItemPolicyConfig = {
2+
labels: {
3+
onSite: { // 63 and 68
4+
de: 'On-site use only',
5+
en: 'On-site use only'
6+
},
7+
unavailable: { // 67
8+
de: 'No use, no copy',
9+
en: 'No use, no copy'
10+
},
11+
onRequest: { // 70
12+
de: 'Use on request, contact the IFF library',
13+
en: 'Use on request, contact the IFF library'
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)