Created
August 11, 2021 23:44
-
-
Save Trott/7966ad0fb4835ac2f7785c1730c703f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function searchPrimoInstructor() { | |
document.getElementById("primoQueryInstructor").value = "course_instructor,contains," + document.getElementById("primoQueryTempInstructor").value; | |
document.forms["searchFormInstructor"].submit(); | |
} | |
function searchKeyPress(e) { | |
if (typeof e == 'undefined' && window.event) { | |
e = window.event; | |
} | |
if (e.keyCode == 13) { | |
document.getElementById('goInstructor').click(); | |
} | |
} | |
</script> | |
<form id="simpleInstructor" action="https://search.library.ucsf.edu/discovery/search" enctype="application/x-www-form-urlencoded; charset=utf-8" method="get" name="searchFormInstructor" target="_self"><input name="vid" type="hidden" value="01UCS_SAF:UCSF" /> | |
<input name="tab" type="hidden" value="CourseReserves" /> | |
<input name="search_scope" type="hidden" value="CourseReserves" /> | |
<input name="lang" type="hidden" value="en" /> | |
<input name="pcAvailability" type="hidden" value="false" /> | |
<!-- Fixed parameters --> | |
<input id="primoQueryInstructor" name="query" type="hidden" /> | |
<input id="primoQueryTempInstructor" size="35" type="text" value="" placeholder="" /> | |
<!-- Search Button --> | |
<input id="goInstructor" title="Search" alt="Search" type="button" value="Search" /> | |
</form> | |
<script> | |
document.getElementById('simpleInstructor').addEventListener('submit', searchPrimoInstructor); | |
document.getElementById('goInstructor').addEventListener('click', searchPrimoInstructor); | |
</script> | |
<em>Example: Buss</em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function searchPrimo() { | |
document.getElementById("primoQuery").value = "any,contains," + document.getElementById("primoQueryTemp").value; | |
document.forms["searchForm"].submit(); | |
} | |
function searchKeyPress(e) { | |
if (typeof e == 'undefined' && window.event) { | |
e = window.event; | |
} | |
if (e.keyCode == 13) { | |
document.getElementById('go').click(); | |
} | |
} | |
</script> | |
<form id="simple" action="https://search.library.ucsf.edu/discovery/search" enctype="application/x-www-form-urlencoded; charset=utf-8" method="get" name="searchForm" target="_self"><input name="vid" type="hidden" value="01UCS_SAF:UCSF" /> | |
<input name="tab" type="hidden" value="CourseReserves" /> | |
<input name="search_scope" type="hidden" value="CourseReserves" /> | |
<input name="lang" type="hidden" value="en" /> | |
<input name="pcAvailability" type="hidden" value="false" /> | |
<!-- Fixed parameters --> | |
<input id="primoQuery" name="query" type="hidden" /> | |
<input id="primoQueryTemp" size="35" type="text" value="" placeholder="" /> | |
<!-- Search Button --> | |
<input id="go" title="Search" alt="Search" type="button" value="Search" /> | |
</form> | |
<script> | |
document.getElementById('simple').addEventListener('submit', searchPrimo); | |
document.getElementById('go').addEventListener('click', searchPrimo); | |
</script> | |
<em>Example: N 142</em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function searchPrimo() { | |
document.getElementById("primoQuery").value = "any,contains," + document.getElementById("primoQueryTemp").value; | |
document.forms["searchForm"].submit(); | |
} | |
function searchKeyPress(e) { | |
if (typeof e == 'undefined' && window.event) { | |
e = window.event; | |
} | |
if (e.keyCode == 13) { | |
document.getElementById('go').click(); | |
} | |
} | |
</script> | |
<form id="simple" name="searchForm" method="get" target="_self" action="https://search.library.ucsf.edu/discovery/search" enctype="application/x-www-form-urlencoded; charset=utf-8"> | |
<input type="hidden" name="vid" value="01UCS_SAF:UCSF"> | |
<input type="hidden" name="tab" value="Everything"> | |
<input type="hidden" name="search_scope" value="DN_and_CI"> | |
<input type="hidden" name="lang" value="en"> | |
<input type="hidden" name="pcAvailability" value="false"> | |
<!-- Fixed parameters --> | |
<input type="hidden" name="query" id="primoQuery"> | |
<input type="text" placeholder="surgical AND evaluat*" id="primoQueryTemp" value="" size="35"> | |
<!-- Search Button --> | |
<input id="go" title="Search" type="button" value="Search" alt="Search"> | |
</form> | |
<script> | |
document.getElementById('simple').addEventListener('submit', searchPrimo); | |
document.getElementById('go').addEventListener('click', searchPrimo); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment