From 8266ed54f54a4d6a574d6c1c4dc415ab299fd749 Mon Sep 17 00:00:00 2001 From: MarkEEaton Date: Fri, 29 Apr 2022 21:34:11 -0400 Subject: [PATCH] Add Course Reserves search JS --- .../{LibAnswers-2-js-css.html => LibAnswers-3-js-css.html} | 4 ++++ 1 file changed, 4 insertions(+) rename groups/home/{LibAnswers-2-js-css.html => LibAnswers-3-js-css.html} (97%) diff --git a/groups/home/LibAnswers-2-js-css.html b/groups/home/LibAnswers-3-js-css.html similarity index 97% rename from groups/home/LibAnswers-2-js-css.html rename to groups/home/LibAnswers-3-js-css.html index 84a55a1..e3f80b2 100644 --- a/groups/home/LibAnswers-2-js-css.html +++ b/groups/home/LibAnswers-3-js-css.html @@ -437,6 +437,7 @@ function customizeSearch(facet) { document.querySelectorAll('.deleteWithDropdownChange').forEach( function(e) { e.remove(); }); document.getElementById("formToAppendInputsTo").setAttribute("action", "https://cuny-kb.primo.exlibrisgroup.com/discovery/search"); document.getElementById("tabSetting").setAttribute("value", "Everything"); + document.getElementById("SearchScopeSetting").setAttribute("value", "IZ_CI_AW"); // add the facet that matches the user's dropdown selection if (facet === "Books") { @@ -450,6 +451,9 @@ function customizeSearch(facet) { document.getElementById("tabSetting").setAttribute("value", "jsearch_slot"); } else if (facet === "Newspapers") { document.getElementById("formToAppendInputsTo").setAttribute('action', 'https://cuny-kb.primo.exlibrisgroup.com/discovery/npsearch'); + } else if (facet === "Course Reserves") { + document.getElementById("tabSetting").setAttribute("value", "CourseReserves"); + document.getElementById("SearchScopeSetting").setAttribute("value", "CourseReserves"); } else { console.log("no match"); }