Page MenuHomec4science

custom.js
No OneTemporary

File Metadata

Created
Wed, Oct 2, 07:50

custom.js

!function n(i,l,o){function s(t,e){if(!l[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(a)return a(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=l[t]={exports:{}},i[t][0].call(r.exports,function(e){return s(i[t][1][e]||e)},r,r.exports,n,i,l,o)}return l[t].exports}for(var a="function"==typeof require&&require,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},template:'<prm-collection-link after-ctrl="$ctrl"></prm-collection-link>\n <prm-publisher-link after-ctrl="$ctrl"></prm-publisher-link>\n <prm-pdf-article-link after-ctrl="$ctrl"></prm-pdf-article-link>'}},{}],2:[function(e,t,r){"use strict";t.exports={bindings:{afterCtrl:"<"},controller:e("./collection_link.controller.js"),template:'<div class="series_btn" ng-if="$ctrl.get_collection_url()">\r\n <a class="neutralized-button arrow-link-button md-button md-primoExplore-theme md-ink-ripple" href="{{$ctrl.collection_url}}" target="_blank"><span class="button-content"><span class="link_gray">{{ \'seriesLink\' | customTranslate }}</span> {{$ctrl.collection_title}}</span> <prm-icon link-arrow="" icon-type="svg" svg-icon-set="primo-ui" icon-definition="chevron-right"></prm-icon><div class="md-ripple-container" style=""></div></a>\r\n</div>\r\n'}},{"./collection_link.controller.js":3}],3:[function(e,t,r){"use strict";t.exports=["$filter","$http",function(e,t){this.parentCtrl=this.afterCtrl.parentCtrl;var a=this;a.get_collection_url=function(){if(a.hasOwnProperty("collection_url"))return a.collection_url;try{var e=a.parentCtrl.result.pnx.display.series;if(!Array.isArray(e))throw new Error("Notice without series")}catch(e){return null}var t=!0,r=!1,n=void 0;try{for(var i,l=e[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var o,s=i.value.match(/\$\$Q(.*)\$\$Z(99\d{16})/);if(s)return o=a.parentCtrl.$stateParams.lang?"&lang="+a.parentCtrl.$stateParams.lang:"",a.collection_title=s[1],a.collection_url=window.location.origin+"/discovery/fulldisplay?vid="+a.parentCtrl.$stateParams.vid+"&tab="+a.parentCtrl.$stateParams.tab+"&docid=alma"+s[2]+"&context="+a.parentCtrl.$stateParams.context+o,a.collection_url}}catch(e){r=!0,n=e}finally{try{!t&&l.return&&l.return()}finally{if(r)throw n}}}}]},{}],4:[function(e,t,r){"use strict";var n=angular.module("briefviewModule",["angularLoad"]);n.component("slspSearchResultAvailabilityLineAfter",e("./availabilityline.component.js")),n.component("prmPdfArticleLink",e("./pdf_article_link.component.js")),n.component("prmPublisherLink",e("./publisher_link.component.js")),n.component("prmCollectionLink",e("./collection_link.component.js"))},{"./availabilityline.component.js":1,"./collection_link.component.js":2,"./pdf_article_link.component.js":5,"./publisher_link.component.js":7}],5:[function(e,t,r){"use strict";t.exports={bindings:{afterCtrl:"<"},controller:e("./pdf_article_link.controller.js"),template:'<div class="pdf_btn" ng-if="$ctrl.check_doi() &amp;&amp; $ctrl.is_epfl_IP">\r\n <a href="{{$ctrl.pdf_link}}" target="_blank"><prm-icon icon-type="svg" svg-icon-set="primo-ui" icon-definition="pdf"></prm-icon> {{ \'pdfAccess\' | customTranslate }}</a>\r\n</div>\r\n'}},{"./pdf_article_link.controller.js":6}],6:[function(e,t,r){"use strict";t.exports=["$filter","$http","checkEpflIPFactory",function(e,t,r){this.parentCtrl=this.afterCtrl.parentCtrl;var s=this;function a(e){e=e.match(/10\.\d{4,9}\/[-._;()/:A-Z0-9]+/i);if(e)return e[0]}s.is_epfl_IP=r.is_epfl_ip(),s.get_doi=function(){if(s.parentCtrl.hasOwnProperty("result")&&s.parentCtrl.result.hasOwnProperty("pnx")){var e=s.parentCtrl.result.pnx;if("addata"in e&&"doi"in e.addata&&a(e.addata.doi[0])&&e.control.hasOwnProperty("recordtype")&&"article"===e.control.recordtype[0])return a(e.addata.doi[0]);if("display"in e&&"identifier"in e.display){var t=!0,r=!1,n=void 0;try{for(var i,l=e.display.identifier[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var o=i.value;if(a(o))return a(o)}}catch(e){r=!0,n=e}finally{try{!t&&l.return&&l.return()}finally{if(r)throw n}}}}},s.check_doi=function(){return s.hasOwnProperty("doi")||s.parentCtrl.hasOwnProperty("result")&&s.parentCtrl.result.hasOwnProperty("pnx")&&(s.get_doi()?(s.doi=s.get_doi(),s.set_url_pdf()):s.doi=null),!!s.hasOwnProperty("pdf_link")},s.set_url_pdf=function(){var e="https://public-api.thirdiron.com/public/v1/libraries/183/articles/doi/"+s.doi+"?access_token=adc54dee-c6a6-4b99-a917-2ed400f1f2d3";t({method:"GET",url:e}).then(function(e){if(200===e.status){try{var t=e.data.data.fullTextFile}catch(e){t=""}0<t.length&&(s.pdf_link=t)}},function(e){s.doi=null})}}]},{}],7:[function(e,t,r){"use strict";t.exports={bindings:{afterCtrl:"<"},controller:e("./publisher_link.controller.js"),template:'<div class="layout-row" ng-if="$ctrl.is_publisher_url() &amp;&amp; $ctrl.is_epfl_IP">\r\n <prm-icon icon-type="svg" svg-icon-set="primo-ui" icon-definition="link" ></prm-icon> <a class="neutralized-button arrow-link-button md-button md-primoExplore-theme md-ink-ripple" href="{{$ctrl.publisher_url}}" target="_blank"><span class="availability-status not_restricted no-delete" translate="delivery.code.not_restricted"></span> <prm-icon link-arrow="" icon-type="svg" svg-icon-set="primo-ui" icon-definition="chevron-right"></prm-icon><div class="md-ripple-container" style=""></div></a>\r\n</div>\r\n'}},{"./publisher_link.controller.js":8}],8:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.exports=["$filter","$http","checkEpflIPFactory","$element",function(e,r,t,s){this.parentCtrl=this.afterCtrl.parentCtrl;var a=this;a.is_link_to_suppress=!1,a.$doCheck=function(){a.is_link_to_suppress&&a.suppress_original_link()},a.is_epfl_IP=t.is_epfl_ip(),a.is_pc=function(){return"PC"===a.parentCtrl.result.context},a.is_ebook=function(){return a.parentCtrl.result.pnx.control.hasOwnProperty("recordtype")?-1!==a.parentCtrl.result.pnx.control.recordtype[0].indexOf("book"):!!a.parentCtrl.result.pnx.display.hasOwnProperty("type")&&-1!==a.parentCtrl.result.pnx.display.type[0].toLowerCase().indexOf("book")},a.is_article=function(){return!!a.parentCtrl.result.pnx.control.hasOwnProperty("recordtype")&&-1!==a.parentCtrl.result.pnx.control.recordtype[0].indexOf("article")},a.is_data_available=function(){return a.parentCtrl.result&&a.parentCtrl.result.pnx&&a.parentCtrl.result.delivery},a.is_fulltext=function(){var e=a.parentCtrl.result.delivery.availability;return-1!==e.indexOf("fulltext")||-1!==e.indexOf("not_restricted")},a.suppress_original_link=function(){var e=s[0].parentElement.parentElement.parentElement.querySelectorAll(".not_restricted,.fulltext"),t=a.is_link_to_suppress=!0,r=!1,n=void 0;try{for(var i,l=e[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var o=i.value;o.classList.contains("no-delete")||(o.parentElement.parentElement.parentElement.remove(),a.is_link_to_suppress=!1);break}}catch(e){r=!0,n=e}finally{try{!t&&l.return&&l.return()}finally{if(r)throw n}}},a.is_publisher_url=function(){var e,t;return!a.checked&&a.is_data_available()&&a.is_epfl_IP&&(a.is_ebook()||a.is_article())&&(!a.parentCtrl.isFullView&&a.is_fulltext()&&a.is_pc()?(a.checked=!0,e=window.location.origin+"/primaws/rest/pub/pcDelivery/"+a.parentCtrl.result.pnx.control.recordid[0]+"?vid="+a.parentCtrl.$stateParams.vid,r.post(e,{doc:a.parentCtrl.result}).then(function(e){a.publisher_url=e.data.delivery.electronicServices[0].serviceUrl,a.suppress_original_link()})):a.parentCtrl.isFullView||!a.is_fulltext()||a.is_pc()?a.parentCtrl.isFullView&&a.parentCtrl.result.delivery.GetIt1&&"object"===n(a.parentCtrl.result.delivery.GetIt1)?(a.checked=!0,-1!==(t=a.parentCtrl.result.delivery.availability.indexOf("not_restricted"))&&(a.publisher_url=a.parentCtrl.result.delivery.GetIt1[0].links[t].link,a.suppress_original_link())):a.is_fulltext()||(a.checked=!0):(a.checked=!0,t=window.location.origin+"/primaws/rest/pub/edelivery/"+a.parentCtrl.result.pnx.control.recordid[0]+"?vid="+a.parentCtrl.$stateParams.vid,r.post(t,{doc:a.parentCtrl.result}).then(function(e){a.publisher_url=e.data.electronicServices[0].serviceUrl,a.suppress_original_link()}))),a.hasOwnProperty("publisher_url")}}]},{}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.checkEpflIPFactory=angular.module("checkEpflIPModule",[]).factory("checkEpflIPFactory",["jwtHelper",function(t){function r(){var e=sessionStorage.getItem("primoExploreJwt");if(e)return t.decodeToken(e).userIp}return{is_epfl_ip:function(){var e=r();if(e){e=e.match(/128\.17([89])\.(\d{1,3})\./);if(e&&("8"==e[1]||128<=parseInt(e[2])))return!0}return!1},get_ip:r}}])},{}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.factoryModule=void 0;e=e("./check_epfl_ip.factory");t.exports="factoryModule",(r.factoryModule=angular.module("factoryModule",[])).requires.push(e.checkEpflIPFactory.name)},{"./check_epfl_ip.factory":9}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.customTranslateFilter=angular.module("customTranslateFilter",[]).filter("customTranslate",["$translate",function(r){return function(e){var t={contactEpflLibrary:{fr:"https://www.epfl.ch/campus/library/fr/informations-pratiques/#contact",en:"https://www.epfl.ch/campus/library/practical-information/#contact"},costWarningScan:{fr:'<b><span class="bigfont" style="font-size:20px">Service payant:</span></b><b> les collaborateurs et les étudiants de l’EPFL peuvent bénéficier de ce service gratuitement, en utilisant le formulaire:</b>',en:'<b><span class="bigfont" style="font-size:20px">Fee-based service:</span></b><b> EPFL employees and students can benefit from this service free of charge by using the form:</b>',de:'<b><span class="bigfont" style="font-size:20px">Kostenpflichtiger Service:</span></b><b> Mitarbeitern und Studenten der EPFL steht dieser Dienst über das Fernleihe-Formular gratis zur Verfügung.</b>',it:'<b><span class="bigfont" style="font-size:20px">Servizio a pagamento:</span></b><b> I dipendenti e gli studenti dell\'EPFL possono usufruire gratuitamente di questo servizio utilizzando il modulo:</b>'},costWarningScanEPFL:{fr:"<b>Service gratuit pour les collaborateurs et les étudiants EPFL.</b>",en:"<b>Free of charge for EPFL staff and students.</b>",de:"<b>Service für Mitarbeiter und Studenten der EPFL kostenlos</b>",it:"<b>Servizio gratuito per i dipendenti e gli studenti dell’EPFL.<b>"},costWarningNetworkLoan:{fr:"<b>Service gratuit en cas de retrait à la Bibliothèque de l’EPFL.</b>",en:"<b>Free of charge if withdrawal at the EPFL Library.</b>",de:"<b>Service bei Abholung in der EPFL-Bibliothek kostenlos.</b>",it:"<b>Servizio gratuito in caso di ritiro alla Biblioteca dell’EPFL</b>"},costWarningPEB:{fr:"<b>Service gratuit pour les collaborateurs et les étudiants de l’EPFL.</b> Avant de passer une commande d’un document physique via le prêt entre bibliothèques, merci de vous assurer que ce document n'est pas disponible dans d’autres bibliothèques du réseau SLSP dans swisscovery.",en:"<b>Free of charge for EPFL staff and students.</b> Before placing an order for a physical document via the interlibrary loan, please make sure that this document is not available in other SLSP network libraries on swisscovery.",de:"<b>Kostenloser Service für Mitarbeiter und Studenten der EPFL.</b> Bevor Sie ein Medium über die Fernleihe bestellen, vergewissern Sie sich bitte zunächst in swisscovery, dass es nicht in einer anderen Bibliothek des SLSP-Netzwerks verfügbar ist.",it:"<b>Servizio gratuito per i dipendenti e gli studenti dell’EPFL.</b> Prima di ordinare un documento cartaceo tramite il prestito interbibliotecario, assicuratevi che questo documento non sia disponibile in altre biblioteche della rete SLSP in swisscovery."},mainTitle:{fr:"Catalogue BEAST",en:"BEAST discovery tool",de:"BEAST Wissensportal",it:"Catalogo BEAST"},subTitle:{fr:"Le point d'accès à toutes les ressources de la Bibliothèque de l'EPFL",en:"The access portal to all the resources of the EPFL Library",de:"Der Zugangspunkt zu allen Ressourcen der EPFL Bibliothek",it:"Il punto d’accesso a tutte le risorse della Biblioteca dell’EPFL"},switchEduID:{fr:"Modifier vos informations personnelles sur",en:"Change your personal data on",de:"Ändern Sie Ihre persönlichen Daten auf",it:"Modifica i tuoi dati personali sul"},illButton:{fr:"Prêt entre bibliothèques (PEB)",en:"Inter Library Loan (ILL)",de:"Fernleihe",it:"Prestito interbibliotecario"},feedbackLink:{fr:"Signaler un problème d'accès",en:"Report an access problem",de:"Zugriffsproblem melden",it:"Segnalare un problema di accesso"},vpnMSG:{fr:'Les ressources électroniques sont accessibles depuis tous les postes de l’EPFL, et à distance via le <a target="_blank" href="https://www.epfl.ch/campus/services/ressources-informatiques/network-services-reseau/acces-intranet-a-distance/clients-vpn-disponibles/">VPN</a> EPFL.',en:'Electronic resources are accessible from all EPFL workstations, and remotely via the EPFL <a target="_blank" href="https://www.epfl.ch/campus/services/en/it-services/network-services/remote-intranet-access/vpn-clients-available/">VPN</a>.',de:'Elektronische Informationsressourcen sind an allen EPFL-Arbeitsplätzen und per EPFL <a target="_blank" href="https://www.epfl.ch/campus/services/en/it-services/network-services/remote-intranet-access/vpn-clients-available/">VPN</a> abrufbar.',it:'Le risorse elettroniche sono accessibili da tutte le postazioni di lavoro dell\'EPFL e a distanza tramite <a target="_blank" href="https://www.epfl.ch/campus/services/en/it-services/network-services/remote-intranet-access/vpn-clients-available/">VPN</a> EPFL.'},feedbackLinkMSG:{fr:"I have a problem accessing the electronic resource below. Please let me know when the access will be restored.",en:"I have a problem accessing the electronic resource below. Please let me know when the access will be restored.",de:"I have a problem accessing the electronic resource below. Please let me know when the access will be restored.",it:"I have a problem accessing the electronic resource below. Please let me know when the access will be restored."},pdfAccess:{fr:"Accès direct au pdf",en:"Direct access to the pdf",de:"Direct access to the pdf",it:"Direct access to the pdf"},seriesLink:{fr:"Collection :",en:"Serie:",de:"Serie:",it:"Serie:"}};return["en","fr","it","de"].includes(r.use())?t[e][r.use()]:t[e].fr}}])},{}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.filtersModule=void 0;e=e("./custom_translate.filter");(r.filtersModule=angular.module("filtersModule",[])).requires.push(e.customTranslateFilter.name)},{"./custom_translate.filter":11}],13:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},controller:e("./epfl-i-button.controller.js")}},{"./epfl-i-button.controller.js":14}],14:[function(e,t,r){"use strict";t.exports=["$element","$filter",function(r,n){var i=this;i.$doCheck=function(){var e,t;!i.checked&&i.parentCtrl.loc&&(t=r[0].parentElement.parentElement.getElementsByTagName("slsp-i-button-component")[0].getElementsByTagName("a")[0],"E02"===this.parentCtrl.loc.location.libraryCode&&t.setAttribute("href",n("customTranslate")("contactEpflLibrary")),"/discovery/custom/41SLSP_NETWORK-CENTRAL_PACKAGE/img/information.png"==(e=t.getElementsByTagName("img")[0]).getAttribute("src")&&(t=i.parentCtrl.configurationUtil.vid.replace(":","-"),e.setAttribute("src","custom/"+t+"/img/information.png"),e.setAttribute("width","22"),i.checked=!0))}}]},{}],15:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},controller:e("./epfl_almaviewit.controller.js"),template:'<div class="bar alert-bar" ng-if="$ctrl.no_report_link==false && $ctrl.is_epfl_IP==false">\r\n <div ng-bind-html="$ctrl.get_txt()"></div>\r\n <md-icon ng-if="::($ctrl.iconDefinition &amp;&amp; !$ctrl.isCustom &amp;&amp; !$ctrl.isEmailMode())" md-svg-icon="primo-ui:open-in-new" role="presentation" class="md-primoExplore-theme"></md-icon\r\n <div class="feedbacklink"> <a href="{{ ::$ctrl.feedbackLink }}"><md-icon md-svg-icon="primo-ui:envelope-outline" role="presentation" class="md-primoExplore-theme"></md-icon> {{ \'feedbackLink\' | customTranslate }}</a></div>\r\n</div>\r\n<div class="feedbacklink" ng-if="$ctrl.no_report_link==false && $ctrl.is_epfl_IP==true">\r\n <a href="{{ ::$ctrl.feedbackLink }}"><md-icon md-svg-icon="primo-ui:envelope-outline" role="presentation" class="md-primoExplore-theme"></md-icon> {{ \'feedbackLink\' | customTranslate }}</a>\r\n</div>\r\n'}},{"./epfl_almaviewit.controller.js":16}],16:[function(e,t,r){"use strict";t.exports=["$filter","checkEpflIPFactory",function(e,t){var r,n,i,l,o,s,a,c=this;c.get_txt=function(){return e("customTranslate")("vpnMSG")},c.feedbackLink="",c.is_epfl_IP=!1,c.no_report_link=!1,c.parentCtrl.item.pnx&&(c.parentCtrl.item.pnx.addata.openaccess&&"true"===c.parentCtrl.item.pnx.addata.openaccess[0]&&(c.no_report_link=!0),c.parentCtrl.item.pnx.addata.oa&&"free_for_read"===c.parentCtrl.item.pnx.addata.oa[0]&&(c.no_report_link=!0),c.no_report_link||(c.is_epfl_IP=t.is_epfl_ip(),c.user_ip=t.get_ip(),r=c.parentCtrl.item.pnx.control.recordid[0],n="",c.parentCtrl.item.pnx.display.title&&0<c.parentCtrl.item.pnx.display.title.length&&(n=c.parentCtrl.item.pnx.display.title[0]),i="",c.parentCtrl.item.pnx.display.creationdate&&0<c.parentCtrl.item.pnx.display.creationdate.length&&(i=c.parentCtrl.item.pnx.display.creationdate[0]),l="",c.parentCtrl.item.pnx.display.creator&&0<c.parentCtrl.item.pnx.display.creator.length&&(l=c.parentCtrl.item.pnx.display.creator.join(", ")),o="",c.parentCtrl.item.pnx.display.type&&0<c.parentCtrl.item.pnx.display.type.length&&(o=c.parentCtrl.item.pnx.display.type[0]),s="",c.parentCtrl.item.pnx.display.identifier&&0<c.parentCtrl.item.pnx.display.identifier.length&&(-1<(a=c.parentCtrl.item.pnx.display.identifier[0]).indexOf("<b>ISBN")||-1<a.indexOf("<b>ISSN")?s=c.parentCtrl.item.pnx.display.identifier.join(", ").replace(/<\/b>/g,"").replace(/<b>/g,""):-1<a.indexOf("ISBN")?s="ISBN: "+a.substring(a.indexOf("$$V")+3):-1<a.indexOf("ISSN")&&(s="ISSN: "+a.substring(a.indexOf("$$V")+3))),t=navigator.userAgent,a="Access problem "+r+' - "'+n+'"',t=e("customTranslate")("feedbackLinkMSG")+"\n\n****\nTitle: "+n+"\nAuthor: "+l+"\nYear: "+i+"\nType: "+o+"\nDocId: "+r+"\nIdentifier: "+s+"\nUser_agent: "+t+"\nUserIP: "+c.user_ip+"\nRange EPFL: "+c.is_epfl_IP+"\n****",c.feedbackLink="mailto:eresources@epfl.ch?subject="+encodeURIComponent(a)+"&body="+encodeURIComponent(t)+"&Content-Type=text/html"))}]},{}],17:[function(e,t,r){"use strict";var n=angular.module("fullviewModule",["angularLoad"]);n.component("slspAlmaViewitAfter",e("./epfl_almaviewit.component.js")),n.component("slspLocationItemsAfter",e("./slspLocationItemsAfter.component.js")),n.component("epflIButtonComponent",e("./epfl-i-button.component.js"))},{"./epfl-i-button.component.js":13,"./epfl_almaviewit.component.js":15,"./slspLocationItemsAfter.component.js":18}],18:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},template:'<epfl-i-button-component parent-ctrl="$ctrl.parentCtrl"></epfl-i-button-component>'}},{}],19:[function(e,t,r){"use strict";t.exports={active:!1,txt:{fr:'<div class="info-symbol" style="text-align:left">\n <div><p>Le réseau NEBIS a pris fin le 7 décembre 2020 pour être remplacé par un nouveau réseau plus vaste : <a class="md-primoExplore-theme" href="https://slsp.ch/fr">swisscovery</a></p></div>\n </div>',en:'<div class="info-symbol" style="text-align:left">\n <div><p>The NEBIS network ended on December 7, 2020. It has been replaced by <a class="md-primoExplore-theme" href="https://slsp.ch/it">swisscovery</a>: a new and wider network.</p></div>\n </div>'},begin:"2020-01-04T00:00:00Z",end:"2023-03-31T12:00:00Z"}},{}],20:[function(e,t,r){"use strict";var n=angular.module("homepageModule",["angularLoad"]);n.component("prmSearchBarAfter",e("./searchbar.component.js")),n.component("prmMainMenuAfter",e("./mainmenu.component.js")),n.component("prmTopbarAfter",e("./topbar.component.js"))},{"./mainmenu.component.js":21,"./searchbar.component.js":22,"./topbar.component.js":23}],21:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},controllerAs:"ctrl",controller:[function(){var t=this;this.$doCheck=function(){if(!t.modified&&"complete"===document.readyState){try{var e=document.querySelector("[translate='mainmenu.label.db']").parentElement}catch(e){t.modified=!1}e&&(e.removeAttribute("target"),e.setAttribute("aria-label","Databases"),t.modified=!0)}}}]}},{}],22:[function(n,e,t){"use strict";e.exports={bindings:{parentCtrl:"<"},template:'<div class="epfl-alert-message" ng-if="ctrl.active" ng-bind-html="ctrl.get_txt()"></div>',controllerAs:"ctrl",controller:["$translate",function(t){var e,r=this;r.alert=n("./alert_message.js"),!(r.active=!1)===r.alert.active&&(e=Date.now(),new Date(r.alert.begin)<e&&e<new Date(r.alert.end)&&(r.active=!0)),r.get_txt=function(){var e=["en","fr"].includes(t.use())?t.use():"en";return r.active?r.alert.txt[e]:""},r.parentCtrl.showTabsAndScopes=!0}]}},{"./alert_message.js":19}],23:[function(e,t,r){"use strict";t.exports={bindings:{parentCtrl:"<"},controllerAs:"ctrl",controller:["$location","$translate",function(e,t){this.url=e.absUrl().split("?")[0]+"?vid="+this.parentCtrl.configurationUtil.vid+"&lang="+t.use()}],template:"<div class=\"main-title\">\n <h1><a href=\"{{ ::ctrl.url }}\">{{ 'mainTitle' | customTranslate }}</a></h1>\n <h2>{{ 'subTitle' | customTranslate }}</h2>\n </div>"}},{}],24:[function(e,t,r){"use strict";e("./briefview"),e("./homepage"),e("./fullView"),e("./filters"),e("./factory"),e("./slsp_mod_epfl"),e("./slsp/slsp-ill-signin-order-alert"),e("./slsp/prm-locations-after"),e("./slsp/prm-location-items-after"),e("./slsp/slsp-archives-htgi"),e("./slsp/slsp-archives-viewit"),e("./slsp/slsp-http-intercept-requests"),e("./slsp/prm-user-area-expandable-after"),e("./slsp/prm-loan-after"),e("./slsp/prm-personal-info-after");angular.module("viewCustom",[].concat(["angularLoad"],["briefviewModule","homepageModule","fullviewModule","filtersModule","factoryModule","epflCourierInfoModule"],["slspIllSigninOrderAlert","ethLocationsAfterModule","ethLocationItemsAfterModule","slspArchivesHtgi","slspArchivesViewit","slspHttpInterceptRequests","slspUserAreaExpandableAfterModule","slspLoanAfterModule","slspPersonalInfoAfterModule"]))},{"./briefview":4,"./factory":10,"./filters":12,"./fullView":17,"./homepage":20,"./slsp/prm-loan-after":25,"./slsp/prm-location-items-after":28,"./slsp/prm-locations-after":33,"./slsp/prm-personal-info-after":38,"./slsp/prm-user-area-expandable-after":44,"./slsp/slsp-archives-htgi":45,"./slsp/slsp-archives-viewit":47,"./slsp/slsp-http-intercept-requests":49,"./slsp/slsp-ill-signin-order-alert":51,"./slsp_mod_epfl":54}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspLoanAfterModule=void 0;e=e("./slsp-renew-item-text/slsp-renew-item-text.module");(r.slspLoanAfterModule=angular.module("slspLoanAfterModule",[]).component("prmLoanAfter",{bindings:{parentCtrl:"<"},template:'<slsp-renew-item-text-component after-ctrl="$ctrl"></slsp-renew-item-text-component><slsp-loan-after parent-ctrl="$parent.$ctrl"></slsp-loan-after>'})).requires.push(e.slspRenewItemTextModule.name)},{"./slsp-renew-item-text/slsp-renew-item-text.module":27}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l)}(r.slspRenewItemTextController=(n(l,[{key:"$onInit",value:function(){try{this.parentCtrl=this.afterCtrl.parentCtrl,this.getRenewText=function(){if(void 0!==this.parentCtrl.item.renewstatuses&&void 0!==this.parentCtrl.item.renewstatuses.renewstatus[0])return this.parentCtrl.item.renewstatuses.renewstatus[0]}}catch(e){console.error("***SLSP*** an error occured: slspRenewItemTextController\n\n"),console.error(e.message)}}}]),l)).$inject=[]},{}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspRenewItemTextModule=void 0;e=e("./slsp-renew-item-text.controller");r.slspRenewItemTextModule=angular.module("slspRenewItemTextModule",[]).controller("slspRenewItemTextController",e.slspRenewItemTextController).component("slspRenewItemTextComponent",{bindings:{afterCtrl:"<"},controller:"slspRenewItemTextController",template:'<div layout="row" class="LibInfo" layout-align="start center">\r\n \r\n\r\n <div class="md-subhead">\r\n <span class="md-subhead">{{$ctrl.getRenewText()}}</span>\r\n\r\n</div>\r\n<span></span>'})},{"./slsp-renew-item-text.controller":26}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ethLocationItemsAfterModule=void 0;var n=e("./eth-location-items-filter/eth-location-items-filter.module"),e=e("./slsp-i-button/slsp-i-button.module"),r=r.ethLocationItemsAfterModule=angular.module("ethLocationItemsAfterModule",[]).component("prmLocationItemsAfter",{bindings:{parentCtrl:"<"},template:'<eth-location-items-filter-component after-ctrl="$ctrl"></eth-location-items-filter-component><slsp-i-button-component after-ctrl="$ctrl"></slsp-i-button-component><slsp-location-items-after parent-ctrl="$parent.$ctrl"></slsp-location-items-after>'});r.requires.push(n.ethLocationItemsFilterModule.name),r.requires.push(e.slspIButtonModule.name)},{"./eth-location-items-filter/eth-location-items-filter.module":30,"./slsp-i-button/slsp-i-button.module":32}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.$timeout=e,this.$scope=t}(r.ethLocationItemsFilterController=(n(l,[{key:"$onInit",value:function(){var n=this;try{this.parentCtrl=this.afterCtrl.parentCtrl,this.$scope.$watch("this.$ctrl.parentCtrl.loc.location.librarycodeTranslation",function(e,t,r){!r.$ctrl.parentCtrl.isLocationsFilterVisible&&e&&""!=e&&n.$scope.$watch("this.$ctrl.parentCtrl.loc.items",function(e){angular.isArray(e)&&1<e.length&&n.$timeout(function(){r.$ctrl.parentCtrl.isLocationsFilterVisible=!0},0)})},!0)}catch(e){console.error("***SLSP*** an error occured: ethLocationItemsFilterController\n\n"),console.error(e.message)}}}]),l)).$inject=["$timeout","$scope"]},{}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ethLocationItemsFilterModule=void 0;e=e("./eth-location-items-filter.controller");r.ethLocationItemsFilterModule=angular.module("ethLocationItemsFilterModule",[]).controller("ethLocationItemsFilterController",e.ethLocationItemsFilterController).component("ethLocationItemsFilterComponent",{bindings:{afterCtrl:"<"},controller:"ethLocationItemsFilterController"})},{"./eth-location-items-filter.controller":29}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l)}(r.slspIButtonController=(n(l,[{key:"$doCheck",value:function(){try{this.parentCtrl=this.afterCtrl.parentCtrl,this.getLibrary=function(){return this.parentCtrl.currLoc.location.librarycodeTranslation},this.getLibraryCode=function(){return this.parentCtrl.currLoc.location.libraryCode},this.getLanguage=function(){return this.parentCtrl.userSessionManagerService.$location.$$search.lang},this.biblinkText="Library",this.biblinkBase="https://registration.slsp.ch/libraries/?library="}catch(e){console.error("***SLSP*** an error occured: slspIButtonController\n\n"),console.error(e.message)}}}]),l)).$inject=[]},{}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspIButtonModule=void 0;e=e("./slsp-i-button.controller");r.slspIButtonModule=angular.module("slspIButtonModule",[]).controller("slspIButtonController",e.slspIButtonController).component("slspIButtonComponent",{bindings:{afterCtrl:"<"},controller:"slspIButtonController",template:'<div layout="row" class="LibInfo" layout-align="start center">\r\n <span class="md-subhead">\r\n <a ng-href="{{ $ctrl.biblinkBase }}{{ $ctrl.getLibraryCode() }}&lang={{ $ctrl.getLanguage() }}" target="_blank">\r\n <img width="35px" ng-src="/discovery/custom/41SLSP_NETWORK-CENTRAL_PACKAGE/img/information.png" />{{ $ctrl.getLibrary() }}</a>\r\n </span>\r\n</div>'})},{"./slsp-i-button.controller":31}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ethLocationsAfterModule=void 0;e=e("./eth-locations-filter/eth-locations-filter.module");(r.ethLocationsAfterModule=angular.module("ethLocationsAfterModule",[]).component("prmLocationsAfter",{bindings:{parentCtrl:"<"},template:'<eth-locations-filter-component after-ctrl="$ctrl"></eth-locations-filter-component><slsp-locations-after parent-ctrl="$parent.$ctrl"></slsp-locations-after>'})).requires.push(e.ethLocationsFilterModule.name)},{"./eth-locations-filter/eth-locations-filter.module":35}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.$timeout=e,this.$scope=t}(r.ethLocationsFilterController=(n(l,[{key:"$onInit",value:function(){var n=this;try{this.parentCtrl=this.afterCtrl.parentCtrl,this.$scope.$watch("this.$ctrl.parentCtrl.locations[0].location.librarycodeTranslation",function(e,t,r){!r.$ctrl.parentCtrl.isLocationsFilterVisible&&e&&""!=e&&n.$timeout(function(){r.$ctrl.parentCtrl.isLocationsFilterVisible=!0},0)},!0)}catch(e){console.error("***ETH*** an error occured: ethLocationsFilterController\n\n"),console.error(e.message)}}}]),l)).$inject=["$timeout","$scope"]},{}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ethLocationsFilterModule=void 0;e=e("./eth-locations-filter.controller");r.ethLocationsFilterModule=angular.module("ethLocationsFilterModule",[]).controller("ethLocationsFilterController",e.ethLocationsFilterController).component("ethLocationsFilterComponent",{bindings:{afterCtrl:"<"},controller:"ethLocationsFilterController"})},{"./eth-locations-filter.controller":34}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.$scope=e,this.$element=t}(r.slspEditPersonalDetailsController=(n(l,[{key:"$doCheck",value:function(){try{this.parentCtrl=this.afterCtrl.parentCtrl;var e="en",t=this.$scope.$root.$$childHead.$ctrl.userSessionManagerService;t&&(e=t.getInterfaceLanguage()),this.detailsBaseEdu="https://eduid.ch/web/change-account-data/2/?lang="+e,this.detailsBaseReg="https://registration.slsp.ch/library-card/?lang="+e,this.exclude=["STAFF","11","12","13","14","15","16","91","92","99"],this.grpA=["11","91","92"],this.grpB=["12","13","14","15","16"],this.getPatronGrp=function(){if(void 0===this.parentCtrl.personalInfoService.personalInfo)return!1;var e=this.parentCtrl.personalInfoService.personalInfo.patronstatus[0].registration[0].institution[0].patronstatuscode;return!this.exclude.includes(e)},this.grpLabelA=function(){if(void 0===this.parentCtrl.personalInfoService.personalInfo)return!1;var e=this.parentCtrl.personalInfoService.personalInfo.patronstatus[0].registration[0].institution[0].patronstatuscode;return!!this.grpA.includes(e)},this.grpLabelB=function(){if(void 0===this.parentCtrl.personalInfoService.personalInfo)return!1;var e=this.parentCtrl.personalInfoService.personalInfo.patronstatus[0].registration[0].institution[0].patronstatuscode;return!!this.grpB.includes(e)},this.buttonMove=function(){var e=angular.element(document.querySelector("prm-personal-info > div.layout-wrap.layout-align-center-start.layout-row > md-card:nth-child(2)")),t=angular.element(document.querySelector("#SLSPeditPersonalDetails"));e.append(t)}}catch(e){console.error("***SLSP*** an error occured: EditPersonalDetailsController\n\n"),console.error(e.message)}}}]),l)).$inject=["$scope"]},{}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspEditPersonalDetailsModule=void 0;e=e("./slsp-edit-personal-details.controller");r.slspEditPersonalDetailsModule=angular.module("slspEditPersonalDetailsModule",[]).controller("slspEditPersonalDetailsController",e.slspEditPersonalDetailsController).component("slspEditPersonalDetailsComponent",{bindings:{afterCtrl:"<"},controller:"slspEditPersonalDetailsController",template:'<span>{{ $ctrl.buttonMove() }}</span>\r\n<md-card ng-if="$ctrl.grpLabelA()" translate="customized.libraries.details" flex="100"\r\n class="bar alert-bar courier-info">\r\n</md-card>\r\n<md-card ng-if="$ctrl.grpLabelB()" translate="customized.slsp.details" flex="100" class="bar alert-bar courier-info">\r\n</md-card>\r\n\r\n<div layout="column">\r\n <md-button ng-if="$ctrl.getPatronGrp()" href="{{ $ctrl.detailsBaseEdu }}" target="_blank" layout="row"\r\n class="courier-info bar alert-bar layout-align-left-center layout-row" layout-align="left center">\r\n <span class="md-subhead">\r\n <prm-icon class="rotate-20 margin-right-small" icon-type="svg" svg-icon-set="primo-ui"\r\n icon-definition="pencil">\r\n </prm-icon>\r\n <span class="md-subhead" translate="customized.personal.details">\r\n </span>\r\n </md-button>\r\n\r\n <br />\r\n\r\n <md-button ng-if="$ctrl.getPatronGrp()" href="{{ $ctrl.detailsBaseReg }}" target="_blank" layout="row"\r\n class="courier-info bar alert-bar layout-align-left-center layout-row" layout-align="left center">\r\n <prm-icon class="rotate-20 margin-right-small" icon-type="svg" svg-icon-set="primo-ui"\r\n icon-definition="account-card-details">\r\n </prm-icon><span class="md-subhead" translate="customized.libcard.number">\r\n\r\n </span>\r\n </md-button>\r\n</div>\r\n'})},{"./slsp-edit-personal-details.controller":36}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspPersonalInfoAfterModule=void 0;e=e("./slsp-edit-personal-details/slsp-edit-personal-details.module");(r.slspPersonalInfoAfterModule=angular.module("slspPersonalInfoAfterModule",[]).component("prmPersonalInfoAfter",{bindings:{parentCtrl:"<"},template:'<slsp-edit-personal-details-component after-ctrl="$ctrl" id="SLSPeditPersonalDetails"></slsp-edit-personal-details-component><slsp-personal-info-after parent-ctrl="$parent.$ctrl"></slsp-personal-info-after>'})).requires.push(e.slspEditPersonalDetailsModule.name)},{"./slsp-edit-personal-details/slsp-edit-personal-details.module":37}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.$parent=e.parent().parent()[0],this.parentCtrl=this.afterCtrl.parentCtrl,this.$window=t}(r.bcuLangSwitchController=(n(l,[{key:"$onInit",value:function(){try{this.languages=["de","fr","it","en"],this.languages.includes(this.parentCtrl.lang)||this.changeLanguage("en")}catch(e){console.error("***BCUFR*** bcuLangSwitchControler $onInit"),console.error(e.message)}}},{key:"changeLanguage",value:function(e){this.parentCtrl.changeLangService.addLangParamToUrl(e);var t=this.parentCtrl;this.parentCtrl.i18nService.setLanguage(e).then(function(){t.$timeout(function(){return t.$state.go(t.$state.current,{lang:e},{reload:!0})})})}}]),l)).$inject=["$element"]},{}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bcuLangSwitchModule=void 0;e=e("./bcu-lang-switch.controller");r.bcuLangSwitchModule=angular.module("bcuLangSwitchModule",[]).controller("bcuLangSwitchController",e.bcuLangSwitchController).component("bcuLangSwitchComponent",{bindings:{afterCtrl:"<"},controller:"bcuLangSwitchController",template:'<button class="md-button md-lang-button" ng-repeat="lang in $ctrl.languages" ng-class="{active: $ctrl.afterCtrl.parentCtrl.lang == lang}" ng-click="$ctrl.changeLanguage(lang)">{{lang}}</button>'})},{"./bcu-lang-switch.controller":39}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.slspIllSigninOrderLoggedOutService=e,this.$scope=t}(r.slspIllSigninOrderLoggedOutController=(n(l,[{key:"$doCheck",value:function(){try{return this.parentCtrl=this.afterCtrl.parentCtrl,this.$scope.usrNme=this.slspIllSigninOrderLoggedOutService.isGuest(),1!=this.$scope.usrNme?angular.element(document.querySelector("primo-explore")).removeClass("logged-out"):angular.element(document.querySelector("primo-explore")).addClass("logged-out")}catch(e){console.error("***SLSP*** an error occured: slspIllSigninOrderLoggedOutController\n\n"),console.error(e.message)}}}]),l)).$inject=["slspIllSigninOrderLoggedOutService","$scope"]},{}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspIllSigninOrderLoggedOutModule=void 0;var n=e("./slsp-ill-signin-order-logged-out.controller"),e=e("./slsp-ill-signin-order-logged-out.service");r.slspIllSigninOrderLoggedOutModule=angular.module("slspIllSigninOrderLoggedOutModule",[]).factory("slspIllSigninOrderLoggedOutService",e.slspIllSigninOrderLoggedOutService).controller("slspIllSigninOrderLoggedOutController",n.slspIllSigninOrderLoggedOutController).component("slspIllSigninOrderLoggedOutComponent",{bindings:{afterCtrl:"<"},controller:"slspIllSigninOrderLoggedOutController"})},{"./slsp-ill-signin-order-logged-out.controller":41,"./slsp-ill-signin-order-logged-out.service":43}],43:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.slspIllSigninOrderLoggedOutService=["jwtHelper",function(t){function r(){try{if(!sessionStorage)return console.error("***SLSP*** no session storage"),null;var e=sessionStorage.getItem("primoExploreJwt");return e?t.decodeToken(e):null}catch(e){console.error("**SLSP*** an error occured: userService.getDecodedToken:"),console.error(e.message)}}return{isGuest:function(){try{var e=r();return e?!("GUEST"!==e.userGroup?e.userName:""):null}catch(e){console.error("***SLSP*** an error occured: userService.isGuest:"),console.error(e.message)}},getDecodedToken:r}}]},{}],44:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.slspUserAreaExpandableAfterModule=void 0;var n=e("./bcu-lang-switch/bcu-lang-switch.module"),e=e("./slsp-ill-signin-order-logged-out/slsp-ill-signin-order-logged-out.module"),r=r.slspUserAreaExpandableAfterModule=angular.module("slspUserAreaExpandableAfterModule",[]).component("prmUserAreaExpandableAfter",{bindings:{parentCtrl:"<"},template:'<bcu-lang-switch-component after-ctrl="$ctrl"></bcu-lang-switch-component><slsp-ill-signin-order-logged-out-component after-ctrl="$ctrl"></slsp-ill-signin-order-logged-out-component><slsp-user-area-expandable-after parent-ctrl="$parent.$ctrl"></slsp-user-area-expandable-after>'});r.requires.push(n.bcuLangSwitchModule.name),r.requires.push(e.slspIllSigninOrderLoggedOutModule.name)},{"./bcu-lang-switch/bcu-lang-switch.module":40,"./slsp-ill-signin-order-logged-out/slsp-ill-signin-order-logged-out.module":42}],45:[function(e,t,r){"use strict";e("./js/slsp-archives-htgi.module.js"),t.exports="slspArchivesHtgi"},{"./js/slsp-archives-htgi.module.js":46}],46:[function(e,t,r){"use strict";angular.module("slspArchivesHtgi",[]).controller("ArchivesHtgiController",[function(){this.$onInit=function(){try{if(!this.parentCtrl.item.pnx.display.source||0===this.parentCtrl.item.pnx.display.source.length)return;var e,t;this.source=this.parentCtrl.item.pnx.display.source[0],"ETH_MaxFrischArchiv"!==this.source&&"ETH_ThomasMannArchiv"!==this.source||(document.getElementById("full-view-container").classList.add("slsp-archives-hide"),t=(e=this.parentCtrl.item.pnx.control.originalsourceid[0]).substring(e.lastIndexOf(":")+1),"ETH_ThomasMannArchiv"===this.source?this.url="http://www.online.tma.ethz.ch/home/#/content/"+t:"ETH_MaxFrischArchiv"===this.source&&(this.url="http://maxfrischarchiv-online.ethz.ch/home/#/content/"+t))}catch(e){console.error("***SLSP*** an error occured: ArchivesHtgiController\n\n"),console.error(e.message)}}}]).component("almaHtgiSvcAfter",{bindings:{parentCtrl:"<"},controller:"ArchivesHtgiController",template:'\n <div class="slsp-archives" ng-if="$ctrl.url">\n <md-list layout="column" class="separate-list-items md-primoExplore-theme layout-column" role="list">\n <md-list-item role="listitem" ng-href="{{$ctrl.url}}" target="_blank">\n <span>{{(\'customized.archives.\' + $ctrl.source + \'.linktext\' | translate)}}</span>\n <span>{{$ctrl.label}}</span>\n <div class="md-secondary">\n <prm-icon icon-type="svg" svg-icon-set="primo-ui" icon-definition="open-in-new" class="layout-margin"/>\n </div>\n </md-list-item>\n </md-list>\n <div ng-if="$ctrl.source === \'ETH_ThomasMannArchiv\'" class="slsp-archives-additional-hint">\n <div>\n <span translate="customized.archives.ETH_ThomasMannArchiv.text1">No request possible. The digitized item can be consulted in the Thomas Mann Archives reading room upon advance registration (</span>\n <a target="_blank" rel="noopener" ng-href="https://tma.ethz.ch/utils/kontakt.html">\n <span translate="customized.archives.ETH_ThomasMannArchiv.linktext2">Contact</span>\n <prm-icon external-link icon-type="svg" svg-icon-set="primo-ui" icon-definition="open-in-new"></prm-icon>\n </a>\n <span translate="customized.archives.ETH_ThomasMannArchiv.text2">).</span>\n </div>\n </div>\n <div ng-if="$ctrl.source === \'ETH_MaxFrischArchiv\'" class="slsp-archives-additional-hint">\n <div>\n <span translate="customized.archives.ETH_MaxFrischArchiv.text1">Informationen zu Bestellung und Benutzung siehe</span>\n <a target="_blank" rel="noopener" ng-href="http://maxfrischarchiv-online.ethz.ch/home/#/manual">\n <span translate="customized.archives.ETH_MaxFrischArchiv.linktext2">Bedienungshinweise</span>\n <prm-icon external-link icon-type="svg" svg-icon-set="primo-ui" icon-definition="open-in-new"></prm-icon>\n </a>\n <span translate="customized.archives.ETH_MaxFrischArchiv.text2">.</span>\n </div>\n </div>\n </div><slsp-htgi-svc-after parent-ctrl="$parent.$ctrl"></slsp-htgi-svc-after>\n '})},{}],47:[function(e,t,r){"use strict";e("./js/slsp-archives-viewit.module.js"),t.exports="slspArchivesViewit"},{"./js/slsp-archives-viewit.module.js":48}],48:[function(e,t,r){"use strict";angular.module("slspArchivesViewit",[]).component("prmSearchResultAvailabilityLineAfter",{bindings:{parentCtrl:"<"},controller:"ArchivesAvailabilityLineController",template:'<slsp-search-result-availability-line-after parent-ctrl="$parent.$ctrl"></slsp-search-result-availability-line-after>'}).component("prmAlmaViewitAfter",{bindings:{parentCtrl:"<"},controller:"ArchivesViewitController",template:'\n <div class="slsp-archives" ng-if="$ctrl.url">\n <md-list layout="column" class="separate-list-items md-primoExplore-theme layout-column" role="list">\n <md-list-item role="listitem" ng-href="{{$ctrl.url}}" target="_blank">\n <span>{{(\'customized.archives.\' + $ctrl.source + \'.linktext\' | translate)}}</span>\n <span>{{$ctrl.label}}</span>\n <div class="md-secondary">\n <prm-icon icon-type="svg" svg-icon-set="primo-ui" icon-definition="open-in-new" class="layout-margin"/>\n </div>\n </md-list-item>\n </md-list>\n <div ng-if="$ctrl.source === \'ETH_Hochschularchiv\'" class="slsp-archives-additional-hint">\n <div>\n <span translate="customized.archives.ETH_Hochschularchiv.text1">Informationen zu Bestellung und Benutzung siehe</span>\n <a target="_blank" rel="noopener" ng-href="http://archivdatenbank-online.ethz.ch/hsa/#/manual">\n <span translate="customized.archives.ETH_Hochschularchiv.linktext2">Bedienungshinweise</span>\n <prm-icon external-link icon-type="svg" svg-icon-set="primo-ui" icon-definition="open-in-new"></prm-icon>\n </a>\n <span translate="customized.archives.ETH_Hochschularchiv.text2">.</span>\n </div>\n </div>\n </div><slsp-alma-viewit-after parent-ctrl="$parent.$ctrl"></slsp-alma-viewit-after>\n '}).controller("ArchivesViewitController",["$translate",function(r){this.$onInit=function(){try{if(!this.parentCtrl.item.pnx.display.source||0===this.parentCtrl.item.pnx.display.source.length)return;if(this.source=this.parentCtrl.item.pnx.display.source[0],"ETH_Hochschularchiv"===this.source){if(this.parentCtrl.item.delivery.GetIt1&&0<this.parentCtrl.item.delivery.GetIt1.length&&this.parentCtrl.item.delivery.GetIt1[0].links&&0<this.parentCtrl.item.delivery.GetIt1[0].links.length){if(0<this.parentCtrl.item.delivery.GetIt1[0].links.filter(function(e){return!(!e.isLinktoOnline||""===e.link)}).length)return;r("nui.getit.service_howtogetit").then(function(e){var t=document.getElementById("fullView");angular.element(t.querySelector("h4[translate='nui.getit.service_viewit']")).text(e),angular.element(t.querySelector("#services-index span[translate='nui.getit.service_viewit']")).text(e)})}document.getElementById("full-view-container").classList.add("slsp-archives-hide");var e=this.parentCtrl.item.pnx.control.originalsourceid[0],t=e.substring(e.lastIndexOf(":")+1);"ETH_Hochschularchiv"===this.source&&(this.url="http://archivdatenbank-online.ethz.ch/hsa/#/content/"+t)}}catch(e){console.error("***SLSP*** an error occured: ArchivesViewitController\n\n"),console.error(e.message)}}}]).controller("ArchivesAvailabilityLineController",["$translate",function(r){this.$onInit=function(){var e,t=this;try{if(this.changeButton=!1,!this.parentCtrl.result.pnx.display.source||0===this.parentCtrl.result.pnx.display.source.length)return;if(this.source=this.parentCtrl.result.pnx.display.source[0],"ETH_Hochschularchiv"!==this.source)return;if(!this.parentCtrl.result.delivery.GetIt1||0==this.parentCtrl.result.delivery.GetIt1.length||!this.parentCtrl.result.delivery.GetIt1[0].links||0==this.parentCtrl.result.delivery.GetIt1[0].links.length)return;0===this.parentCtrl.result.delivery.GetIt1[0].links.filter(function(e){return!(!e.isLinktoOnline||""===e.link)}).length&&(r("delivery.code.no_inventory").then(function(e){t.changeButton=!0,t.changeButtonText=e}),(e=this.parentCtrl.$element[0])&&e.classList.add("slsp-hsa-no-online"))}catch(e){console.error("***SLSP*** an error occured: ArchivesAvailabilityLineController\n\n"),console.error(e.message)}},this.$doCheck=function(){try{var e;this.changeButton&&(e=this.parentCtrl.$element[0].querySelector(".availability-status"),angular.element(e)&&0<angular.element(e).length&&(angular.element(e).html(this.changeButtonText),this.changeButton=!1,this.changeButtonText=""))}catch(e){console.error("***ETH*** an error occured: ArchivesAvailabilityLineController $doCheck\n\n"),console.error(e.message)}}}])},{}],49:[function(e,t,r){"use strict";e("./js/slsp-http-intercept-requests.module.js"),t.exports="slspHttpInterceptRequests"},{"./js/slsp-http-intercept-requests.module.js":50}],50:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.slspHttpInterceptRequests=angular.module("slspHttpInterceptRequests",["ng"]).config(["$httpProvider",function(e){e.interceptors.push(["$q",function(t){return{request:function(e){return e},requestError:function(e){return t.reject(e)},responseError:function(e){return t.reject(e)},response:function(e){try{if(/primaws\/rest\/priv\/myaccount\/requests/.test(e.config.url)&&200==e.status&&"ok"==e.data.status){var t=angular.element(document.querySelector("primo-explore")).injector().get("$rootScope").$$childHead.$ctrl.userSessionManagerService.getUserLanguage()||window.appConfig["primo-view"]["attributes-map"].interfaceLanguage,r={en:["in transit","in process","on hold shelf"],de:["transfer","in bearbeitung","bereitgestellt"],fr:["en cours de transfert","en cours","sur le rayon des réservations"],it:["in transito","in processo","scaffale prenotazioni"]},n={en:["in transit","in process"],de:["transfer","in bearbeitung"],fr:["en cours de transfert","en cours"],it:["in transito","in processo"]};if(!Object.keys(r).includes(t))throw"No mapping found for holds: "+t;var i=RegExp(r[t].map(function(e){return e.toLowerCase()}).join("|"));if(e.data.data.holds.hold.map(function(e){i.test(e.holdstatus.toLowerCase())&&(e.cancel="N")}),!Object.keys(n).includes(t))throw"No mapping found for photocopies: "+t;var l=RegExp(n[t].map(function(e){return e.toLowerCase()}).join("|"));e.data.data.photocopies.photocopy.map(function(e){l.test(e.requeststatus.toLowerCase())&&(e.cancel="N")})}}catch(e){console.error(e)}return e}}}])}])},{}],51:[function(e,t,r){"use strict";e("./js/slsp-ill-signin-order-alert.module.js"),t.exports="slspIllSigninOrderAlert"},{"./js/slsp-ill-signin-order-alert.module.js":52}],52:[function(e,t,r){"use strict";angular.module("slspIllSigninOrderAlert",[]).controller("AlertMsgController",["$scope",function(e){var r=this;r.getAlert=function(){var e=r.parentCtrl.almaHowToGetitService.reqAlert._htmlMsg,t=angular.element(document.querySelector("primo-explore"));return 0<e.length?t.addClass("alert"):t.removeClass("alert")}}]).component("almaHowovpAfter",{bindings:{parentCtrl:"<"},controller:"AlertMsgController",template:'<div style="display:none">{{$ctrl.getAlert()}}</div><slsp-howovp-after parent-ctrl="$parent.$ctrl"></slsp-howovp-after>'})},{}],53:[function(e,t,r){"use strict";angular.module("epflCourierInfoModule",[]).controller("CourierInfoController",["$filter","$element",function(i,e,t,r,n){var l=this;l.form=e[0].parentElement,l.$doCheck=function(){var e,t,r=!1,n=2;void 0===l.form.children[0].children[1]||void 0===l.form.children[0].children[1].children[0]&&"costWarningPEB"!=l.typeFeeAlert()?void 0!==l.form.children[0].children[0]&&void 0!==l.form.children[0].children[0].children[0]&&(r=l.form.children[0].children[0].children[0],n=3):(r=l.form.children[0].children[1].children[0],"costWarningPEB"==l.typeFeeAlert()&&(n=3)),(r&&r.children.length==n&&1<r.children.length||l.hasOwnProperty("currentTypeFeeAlert")&&l.currentTypeFeeAlert!=l.typeFeeAlert())&&(l.currentTypeFeeAlert=l.typeFeeAlert(),t='<div class="courier-info bar alert-bar"><p>'+l.getFeeAlert()+"</p>","costWarningScan"==l.typeFeeAlert()&&(e=i("customTranslate")("illButton"),t+='<p><span class="button-confirm md-button md-primoExplore-theme md-ink-ripple" onclick="'+(l.get_peb_button()?"javascript:(function() {\n for (var elem of document.getElementsByTagName('span')) {\n if (elem.getAttribute('translate') === 'AlmaResourceSharing' &&\n elem.parentNode.className.indexOf('greenbutton') === -1)\n {\n elem.click();\n break;\n }\n };})()":"javascript:(function() {window.location.href = window.location.origin + '/discovery/blankIll?vid="+l.parentCtrl.vid+"'})()")+'" ">'+e+"</span></p>"),t+='<p><a href="'+l.parentCtrl.$translate.instant("customize.fullview.feesUrl")+'" target="_blank">'+l.parentCtrl.$translate.instant("customize.fullview.feesLinkText")+"</a></p></div>",t=angular.element(t)[0],r.children.length==n?r.insertBefore(t,r.children[n-1]):r.children[r.children.length-2].replaceWith(t))},Object.defineProperty(l.parentCtrl,"form",{configurable:!0,get:function(){var e=this.getFilteredForm(["label","multiLabel"],!1);if(!l.hasOwnProperty("pickupLocationsListOrdered"))for(var t=0;t<e.length;t++)"pickupInstitution"==e[t].key&&(e[t].options.sort(function(e,t){var r=["41SLSP_EPF","41SLSP_EPFL"];return(e=r.indexOf(e.value))==(t=r.indexOf(t.value))?0:e<t?1:-1}),l.pickupLocationsListOrdered=!0);return e}}),l.isEPFL=function(){return!!(l.parentCtrl.requestService&&0<l.parentCtrl.requestService._service["link-to-service"].indexOf("institution=41SLSP_EPF"))},l.linkBase="https://slsp.ch/fees",l.typeFeeAlert=function(){return["almaRequest.header","almaRequestOther.header","almaItemRequest.header"].includes(l.parentCtrl.requestHeader)?"costWarningNetworkLoan":["almaDigitization.header","almaDigitizationOther.header","almaItemDigitization.header"].includes(l.parentCtrl.requestHeader)?l.isEPFL()?"costWarningScanEPFL":"costWarningScan":"almaResourceSharing.header"===l.parentCtrl.requestHeader?"costWarningPEB":"costWarningGeneral"},l.getFeeAlert=function(){return i("customTranslate")(l.typeFeeAlert())},l.get_peb_button=function(){for(var e=document.getElementsByTagName("span"),t=0,r=e.length;t<r;t++)if("AlmaResourceSharing"===e[t].getAttribute("translate")&&-1===e[t].parentNode.className.indexOf("greenbutton"))return e[t]},l.click_peb=function(){var e=l.get_peb_button();e?e.click():window.location.href=window.location.origin+"/discovery/blankIll?vid="+l.parentCtrl.vid}}]).component("prmRequestAfter",{bindings:{parentCtrl:"<"},controller:"CourierInfoController"})},{}],54:[function(e,t,r){"use strict";e("./epfl-courier-info.module.js"),t.exports="epflCourierInfoModule"},{"./epfl-courier-info.module.js":53}]},{},[24]);
//# sourceMappingURL=custom.js.map

Event Timeline