Skip to content

Commit

Permalink
don't chain things
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshire123 committed Nov 8, 2024
1 parent 798d22c commit 0d792d1
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions primo-explore/custom/01MIT_INST-TACOS/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
var alertBannerTemplate =
'<div class="full-width-alert">How are we doing? <a href="https://mit.co1.qualtrics.com/jfe/form/SV_0HZvFmPYRjCzSCO">Give us feedback on your search experience.</a></div>';

angular.module("viewCustom", ["angularLoad"])
.component("prmSearchBookmarkFilterAfter", {
template:
'<div id="ask-us-mit"><a href="https://libraries.mit.edu/ask" aria-expanded="false" aria-controls="collapsible--1"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="16.593px" height="16px" viewBox="0 0 16.593 16" enable-background="new 0 0 16.593 16" xml:space="preserve"><path d="M16.593 6.278c0 1.074-0.074 2.148-0.241 3.185 -0.204 1.353-1.722 2.574-3.055 2.722 -1.353 0.131-2.686 0.204-4.02 0.223L5.74 15.833C5.63 15.944 5.481 16 5.334 16c-0.094 0-0.167-0.019-0.241-0.037C4.871 15.87 4.74 15.647 4.74 15.407V12.37c-0.481-0.036-0.963-0.055-1.443-0.111 -1.334-0.148-2.853-1.443-3.074-2.796C0.074 8.426 0 7.352 0 6.296c0-1.092 0.074-2.185 0.223-3.24 0.222-1.352 1.74-2.648 3.074-2.797C4.963 0.093 6.63 0 8.297 0s3.333 0.093 5 0.259c1.333 0.149 2.851 1.445 3.055 2.797C16.519 4.111 16.593 5.204 16.593 6.278"></path></svg><span>Ask Us</span></a></div>',
})
.component("prmLogoAfter", {
template:
'<div id="title-mit"><a href="https://mit.primo.exlibrisgroup.com/discovery/search?vid=01MIT_INST:MIT&lang=en">Search Our Collections</a></div>',
})
.component("prmSearchBarAfter", {
template: alertBannerTemplate,
})
.component("prmAtozSearchBarAfter", {
template: alertBannerTemplate,
})
.component("prmBrowseSearchBarAfter", {
template: alertBannerTemplate,
})
.controller("prmNoSearchResultAfterController", [function () {
this.$onInit = function () {
this.getSearchTerm = this.parentCtrl.term;
};
}])
.component("prmNoSearchResultAfter", {
bindings: {
parentCtrl: "<",
},
controller: "prmNoSearchResultAfterController",
template: `
angular.module("viewCustom", ["angularLoad"]);
app.component("prmSearchBookmarkFilterAfter", {
template:
'<div id="ask-us-mit"><a href="https://libraries.mit.edu/ask" aria-expanded="false" aria-controls="collapsible--1"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="16.593px" height="16px" viewBox="0 0 16.593 16" enable-background="new 0 0 16.593 16" xml:space="preserve"><path d="M16.593 6.278c0 1.074-0.074 2.148-0.241 3.185 -0.204 1.353-1.722 2.574-3.055 2.722 -1.353 0.131-2.686 0.204-4.02 0.223L5.74 15.833C5.63 15.944 5.481 16 5.334 16c-0.094 0-0.167-0.019-0.241-0.037C4.871 15.87 4.74 15.647 4.74 15.407V12.37c-0.481-0.036-0.963-0.055-1.443-0.111 -1.334-0.148-2.853-1.443-3.074-2.796C0.074 8.426 0 7.352 0 6.296c0-1.092 0.074-2.185 0.223-3.24 0.222-1.352 1.74-2.648 3.074-2.797C4.963 0.093 6.63 0 8.297 0s3.333 0.093 5 0.259c1.333 0.149 2.851 1.445 3.055 2.797C16.519 4.111 16.593 5.204 16.593 6.278"></path></svg><span>Ask Us</span></a></div>',
});
app.component("prmLogoAfter", {
template:
'<div id="title-mit"><a href="https://mit.primo.exlibrisgroup.com/discovery/search?vid=01MIT_INST:MIT&lang=en">Search Our Collections</a></div>',
});
app.component("prmSearchBarAfter", {
template: alertBannerTemplate,
});
app.component("prmAtozSearchBarAfter", {
template: alertBannerTemplate,
});
app.component("prmBrowseSearchBarAfter", {
template: alertBannerTemplate,
});
app.controller("prmNoSearchResultAfterController", [function () {
this.$onInit = function () {
this.getSearchTerm = this.parentCtrl.term;
};
}])
app.component("prmNoSearchResultAfter", {
bindings: {
parentCtrl: "<",
},
controller: "prmNoSearchResultAfterController",
template: `
<md-card class="default-card zero-margin _md md-primoExplore-theme">
<md-card-title>
<md-card-title-text>
Expand All @@ -52,7 +52,7 @@
</md-card-content>
</md-card>
`,
});
});
})();

/*----------below is the code for libchat-----------*/
Expand Down

0 comments on commit 0d792d1

Please sign in to comment.