Skip to content

Commit 190fbcd

Browse files
authored
Merge pull request #10 from HSG-Library/develop
Release v2022.03.03
2 parents 68b82f2 + 488b857 commit 190fbcd

File tree

6 files changed

+54
-15
lines changed

6 files changed

+54
-15
lines changed

css/hsg-other-members.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
prm-alma-other-members button#alma_other_members {
2+
padding-left: 16px;
3+
}
4+
5+
prm-alma-other-members button#alma_other_members h3 {
6+
margin-top: -5px;
7+
}

js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { hsgHowovpAfterModule } from './modules/alma-howovp-after/hsg-howovp-aft
33
import { hsgHtgiSvcAfterModule } from './modules/alma-htgi-svc-after/hsg-htgi-svc-after.module';
44
import { hsgAlertMessageModule } from './modules/hsg-alert-message/hsg-alert-message.module';
55
import { hsgExceptionHandlerModule } from './modules/hsg-exception-handler/hsg-exception-handler.module';
6+
import { hsgAlmaOtherMembersAfterModule } from './modules/prm-alma-other-members-after/hsg-alma-other-members-after.module'
67
import { hsgAlmaViewitAfterModule } from './modules/prm-alma-viewit-after/hsg-alma-viewit-after.module';
78
import { hsgJournalsAfterModule } from './modules/prm-journals-after/hsg-journals-after.module';
89
import { hsgLoanAfterModule } from './modules/prm-loan-after/hsg-loan-after.module';
@@ -22,6 +23,7 @@ app.requires.push(hsgAlertMessageModule.name);
2223
app.requires.push(hsgExceptionHandlerModule.name);
2324
app.requires.push(hsgHowovpAfterModule.name);
2425
app.requires.push(hsgHtgiSvcAfterModule.name);
26+
app.requires.push(hsgAlmaOtherMembersAfterModule.name);
2527
app.requires.push(hsgAlmaViewitAfterModule.name);
2628
app.requires.push(hsgJournalsAfterModule.name);
2729
app.requires.push(hsgLoanAfterModule.name);

js/modules/README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,80 @@
22
* **`alma-howovp-after`** *hook*
33
* **`slsp-ill-signin-order-alert`** *module*\
44
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/Swisscovery-Network-Zone/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-ill-signin-order-alert
5-
5+
<br><br>
66
* **`alma-htgi-svc-after`** *hook*
77
* **`slsp-archives-htgi`** *module*\
88
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/central-customization-package/tree/main/41SLSP_NETWORK-CENTRAL_PACKAGE/js/slsp-archives-htgi
9-
9+
<br><br>
1010
* **`hsg-alert-message`** *global module*\
1111
Module used on the homepage to display (alert) messages to the users. The messages can be edited in SharePoint, and will be retrieved via ajax.
12-
12+
<br><br>
1313
* **`hsg-exception-handler`** *global module*\
1414
Global exception handler which logs exceptions and adds a marker (`**HSG-SWISSCOVERY**`) in front of all console logs if the error originates from a custom file.\
1515
There is a proof of concept to report exceptions to a remote serivce via http, in order to centrally collect and analyze errors.
16-
16+
<br><br>
17+
* **`prm-alma-other-members-after`** *hook*
18+
* **`slsp-collapse-other-inst`** *module*\
19+
'Other loan and request options' in the 'Loan and request' section is collapsed by default. Adapted from SLSP: [SLSP Solution](https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/prm-alma-other-members-after/slsp-collapse-other-inst)
20+
<br><br>
1721
* **`prm-alma-viewit-after`** *hook*
1822
* **`hsg-off-campus-info`** *module*\
1923
Info message, that licensed e-ressources are only accessible from the HSG network. Very similar to the [BCUF solution](https://github.com/BCUF/bcufr-primo-views/tree/master/41SLSP_BCUFR-DFR/js/modules/prm-alma-viewit-after/bcu-off-campus) and the [ETHZ Solution](https://gitlab.com/ethlibrary/slsp/customization-eth-view/-/tree/master/js/modules/prm-alma-delivery-after/eth-fullview-offcampus-warning)
2024
* **`hsg-report-broken-link`** *module* \
2125
Link which reports a broken link to an e-ressource. The link triggers a modal popup and automatically sends an email and adds the broken link into an Excel file via a Microsoft [PowerAutomate flow](https://emea.flow.microsoft.com/manage/environments/Default-a7262e59-1b56-4f5a-a412-6f07181f48ee/flows/f2987d08-631f-4e91-a320-318b0793d158/details). Similar to the [BCUF solution](https://github.com/BCUF/bcufr-primo-views/tree/master/41SLSP_BCUFR-DFR/js/modules/prm-alma-viewit-after/bcu-online-feedback) and the [ETHZ Solution](https://gitlab.com/ethlibrary/slsp/customization-eth-view/-/tree/master/js/modules/prm-alma-delivery-after/eth-online-feedback-mail)
2226
* **`slsp-archives-viewit`** *module*\
2327
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/central-customization-package/tree/main/41SLSP_NETWORK-CENTRAL_PACKAGE/js/slsp-archives-viewit
24-
28+
<br><br>
2529
* **`prm-journals-after`** *hook*
2630
* **`hsg-journals-startpage`** *module*\
2731
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)
28-
32+
<br><br>
2933
* **`prm-loans-after`** *hook*
3034
* **`slsp-renew-item-text`** *module*\
3135
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)
32-
36+
<br><br>
3337
* **`prm-location-items-after`** *hook*
3438
* **`eth-location-items-filter`** *module*\
3539
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).
3640
* **`slsp-i-button`** *module*\
3741
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/Swisscovery-Network-Zone/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-i-button
38-
42+
<br><br>
3943
* **`prm-locations-after`** *hook*
4044
* **`eth-locations-filter`** *module*\
4145
Adapted from [ETHZ Solution](https://gitlab.com/ethlibrary/slsp/customization-eth-view/-/tree/master/js/modules/prm-locations-after/eth-locations-filter) as suggested by [SLSP](https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/prm-locations-after)
42-
46+
<br><br>
4347
* **`prm-personal-info-after`** *hook*
4448
* **`slsp-edit-personal-details`** *module*\
4549
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/Swisscovery-Network-Zone/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-edit-personal-details
46-
50+
<br><br>
4751
* **`prm-request-after`** *hook*
4852
* **`hsg-reading-room-info` (not active)** *module*\
4953
Message which is displayed if all available items are unvailable, but there is a 'reading room only' item which a user can request without waiting: *"The loanable items are not available. To order the non-loanable copy to the Service Point for viewing, select the pick-up location HSG Reading Room. If you choose the pick-up location HSG, you will be placed on the waiting list."*
5054
* **`sls-courier-info`** *module*\
5155
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/Swisscovery-Network-Zone/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-courier-info
52-
56+
<br><br>
5357
* **`prm-search-result-availability-line-after`** *hook*
5458
* **`hsg-browzine-integration`** *module*\
5559
BrowZine integration
5660
* **`slsp-archives-availability-line`** *module*\
5761
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/central-customization-package/tree/main/41SLSP_NETWORK-CENTRAL_PACKAGE/js/slsp-archives-viewit
58-
62+
<br><br>
5963
* **`prm-service-details-after`** *hook*
6064
* **`hsg-service-details-foldable-items`** *module*\
6165
Overly long service details entries, eg. table of contents, are collapsed and can be expandend
62-
66+
<br><br>
6367
* **`prm-stack-map-after`** *hook*
6468
* **`hsg-stack-map-link`** *module*\
6569
The stack map (MediaScout) opens in a modal dialog instead of a new tab/window.
66-
70+
<br><br>
6771
* **`prm-user-area-expandable-after`** *hook*
6872
* **`bcu-lang-switch`** *module*\
6973
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 \
7074
Slight modification in the CSS, as well as the code structure.
7175
* **`sls-ill-signin-order-logged-out`** *module*\
7276
Adapted from SLSP, see: https://github.com/Swiss-Library-Service-Platform/Swisscovery-Network-Zone/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-ill-signin-order-logged-out
73-
77+
<br><br>
7478
* **`slsp-http-intercept-requests`** *global module*\
7579
Adapted from SLSP see: https://github.com/Swiss-Library-Service-Platform/swisscovery/tree/main/41SLSP_NETWORK-VU1_UNION/js/slsp-http-intercept-requests \
7680
Users are now allowed to cancel a request or a digitization request only if the process is "not started" or "process started". If the process is "in process", "in transit" and “on hold shelf”, the user cannot cancel a request or a digitization.
81+
<br><br>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { slspCollapseOtherInstModule } from './slsp-collapse-other-inst/slsp-collapse-other-inst.module'
2+
3+
export const hsgAlmaOtherMembersAfterModule = angular
4+
.module('hsgAlmaOtherMembersAfterModule', [])
5+
.component('prmAlmaOtherMembersAfter', {
6+
bindings: { parentCtrl: '<' },
7+
template: `<slsp-collapse-other-inst-component after-ctrl="$ctrl"></slsp-collapse-other-inst-component>`
8+
})
9+
10+
hsgAlmaOtherMembersAfterModule.requires.push(slspCollapseOtherInstModule.name)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export class slspCollapseOtherInstController {
2+
constructor() {
3+
this.parentCtrl = this.afterCtrl.parentCtrl
4+
this.parentCtrl.isCollapsed = true
5+
}
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { slspCollapseOtherInstController } from './slsp-collapse-other-inst.controller'
2+
3+
export const slspCollapseOtherInstModule = angular
4+
.module('slspCollapseOtherInstModule', [])
5+
.controller('slspCollapseOtherInstController', slspCollapseOtherInstController)
6+
.component('slspCollapseOtherInstComponent', {
7+
bindings: { afterCtrl: '<' },
8+
controller: 'slspCollapseOtherInstController'
9+
})

0 commit comments

Comments
 (0)