Skip to content

Commit 163b8b3

Browse files
authored
Merge pull request #7 from HSG-Library/develop
Release v2021.12.2
2 parents 35b66b0 + d86f45e commit 163b8b3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

js/modules/prm-location-items-after/slsp-i-button/slsp-i-button.controller.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export class slspIButtonController {
55
}
66

77
$onInit() {
8-
debugger;
98
this.parentCtrl = this.afterCtrl.parentCtrl;
109
this.biblinkText = "Library";
1110
this.biblinkBase = "https:\/\/registration.slsp.ch\/libraries\/\?library\=";
@@ -22,14 +21,12 @@ export class slspIButtonController {
2221
getLibraryCode() {
2322
if (this.currLoc) {
2423
return this.currLoc.location.libraryCode;
25-
2624
}
2725
return "";
2826
}
2927

3028
getLanguage() {
3129
return this.hsgTranslatorService.getLang();
32-
3330
}
3431
}
3532

js/modules/prm-stack-map-after/hsg-stack-map-link/hsg-stack-map-link.controller.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export class hsgStackMapLinkController {
2929

3030
getTemplate(ctx) {
3131
let href = ctx.$element.parent().parent().children().attr('href');
32+
href = this.secureLink(href);
33+
debugger;
3234
return `
3335
<md-dialog style="display: flex; flex-direction: column; height: 100%; width: 100%;overflow:scroll;" md-theme="primoExplore" aria-label="MediaScout" ng-class="dialog.css" class="_md md-primoExplore-theme md-content-overflow md-transition-in" role="dialog">
3436
<md-dialog-content style="display: flex; flex-grow: 1;" class="md-dialog-content" role="document">
@@ -43,6 +45,9 @@ export class hsgStackMapLinkController {
4345
`;
4446
}
4547

48+
secureLink(href) {
49+
return href.replace('http:', 'https:');
50+
}
4651
}
4752

4853
hsgStackMapLinkController.$inject = ['$element', '$mdDialog', '$mdMedia'];

0 commit comments

Comments
 (0)