remove unnecessary code
This commit is contained in:
@@ -122,7 +122,7 @@ const onesearchComponent = {
|
|||||||
ref="primoQueryTempString"
|
ref="primoQueryTempString"
|
||||||
type="search"
|
type="search"
|
||||||
v-model="searchstring"
|
v-model="searchstring"
|
||||||
:placeholder="placeholderstring"
|
placeholder="Enter search term here"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group zero-margin" id="blue-border3">
|
<div class="input-group zero-margin" id="blue-border3">
|
||||||
@@ -138,7 +138,6 @@ const onesearchComponent = {
|
|||||||
selectdropdown(item, itemName) {
|
selectdropdown(item, itemName) {
|
||||||
this.displayeditem = itemName; // swap in current item at the top of the dropdown
|
this.displayeditem = itemName; // swap in current item at the top of the dropdown
|
||||||
this.selecteditem = item; // store the data from the dropdown selection
|
this.selecteditem = item; // store the data from the dropdown selection
|
||||||
this.placeholderstring = "Enter search term here";
|
|
||||||
},
|
},
|
||||||
submitSearch() {
|
submitSearch() {
|
||||||
this.$refs.primoQueryString.value = `any,contains,${this.$refs.primoQueryTempString.value.replace(
|
this.$refs.primoQueryString.value = `any,contains,${this.$refs.primoQueryTempString.value.replace(
|
||||||
@@ -152,51 +151,18 @@ const onesearchComponent = {
|
|||||||
return {
|
return {
|
||||||
selecteditem: {}, // initialize the data from the dropdown selection
|
selecteditem: {}, // initialize the data from the dropdown selection
|
||||||
searchstring: "", // initialize an empty search string
|
searchstring: "", // initialize an empty search string
|
||||||
placeholderstring: "Enter search term here", // initialize the placeholder
|
|
||||||
displayeditem: "Define Your Search", // the text displayed a the top of the OneSearch dropdown
|
displayeditem: "Define Your Search", // the text displayed a the top of the OneSearch dropdown
|
||||||
materialtype: {
|
materialtype: {
|
||||||
Books: {
|
Books: {
|
||||||
fullName: "Books",
|
|
||||||
baseUrl: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search",
|
|
||||||
tab: "Everything",
|
|
||||||
searchScope: "IZ_CI_AW",
|
|
||||||
input:
|
input:
|
||||||
'<input name="facet" value="rtype,include,books" type="hidden" />',
|
'<input name="facet" value="rtype,include,books" type="hidden" />',
|
||||||
id: 1,
|
id: 1,
|
||||||
},
|
},
|
||||||
Articles: {
|
Articles: {
|
||||||
fullName: "Articles (Peer reviewed)",
|
|
||||||
baseUrl: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search",
|
|
||||||
tab: "Everything",
|
|
||||||
searchScope: "IZ_CI_AW",
|
|
||||||
input:
|
input:
|
||||||
'<input name="mfacet" value="rtype,include,articles,1" type="hidden" /><input name="facet" value="tlevel,include,peer_reviewed" type="hidden" />',
|
'<input name="mfacet" value="rtype,include,articles,1" type="hidden" /><input name="facet" value="tlevel,include,peer_reviewed" type="hidden" />',
|
||||||
id: 2,
|
id: 2,
|
||||||
},
|
},
|
||||||
Reserves: {
|
|
||||||
fullName: "Course reserves",
|
|
||||||
baseUrl: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search",
|
|
||||||
tab: "CourseReserves",
|
|
||||||
searchScope: "CourseReserves",
|
|
||||||
input: "",
|
|
||||||
id: 3,
|
|
||||||
},
|
|
||||||
Newspapers: {
|
|
||||||
fullName: "Newspapers and Magazines",
|
|
||||||
baseUrl: "https://cuny-kb.primo.exlibrisgroup.com/discovery/npsearch",
|
|
||||||
tab: "Everything",
|
|
||||||
searchScope: "IZ_CI_AW",
|
|
||||||
input: "",
|
|
||||||
id: 4,
|
|
||||||
},
|
|
||||||
Journals: {
|
|
||||||
fullName: "Journals",
|
|
||||||
baseUrl: "https://cuny-kb.primo.exlibrisgroup.com/discovery/jsearch",
|
|
||||||
tab: "jsearch_slot",
|
|
||||||
searchScope: "IZ_CI_AW",
|
|
||||||
input: "",
|
|
||||||
id: 5,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user