1// JavaScript Document 2jQuery(document).ready(function(){ 3 4 jQuery('input:radio[name=searchRadio]').click(function(){ 5 var inputValue = jQuery(this).attr("value"); 6 var targetSearch = jQuery("." + inputValue); 7 jQuery(".oslSearch").not(targetSearch).hide(); 8 jQuery(targetSearch).show(); 9 }); 10}); 11 12 13function searchEncore() { 14 var encoreBaseURL, searchInput, searchosl, encoreBaseURL, searchString, scopeString, locationHref, charRegExString, base64Regex; 15 /*base64_encoding_map includes special characters that need to be 16 encoded using base64 - these chars are "=","/", "\", "?" 17 character : base64 encoded */ 18 var base64_encoding_map = { 19 "=": "PQ==", 20 "/": "Lw==", 21 "\\": "XA==", 22 "?": "Pw==" 23 }; 24 25 var escapeRegExp = function (string) { 26 return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); 27 } 28 29 if (event.keyCode == 13) { 30 document.getElementById("btnSearch").click(); 31 } 32 33 searchInput = document.getElementById("encoreSearchInput"); 34 searchString = searchInput.value; 35 //if (document.getElementById('searchosl_ALIS').checked) { 36 encoreBaseURL = "https://encore.alisweb.org/iii/encore/search/"; 37 locationHref = encoreBaseURL + "C__S" + searchString /*+ "__Ff%3Afacetcollections%3A40%3A40%3AOceanside%3A%3A"*/ + "__Orightresult__U"; //commented block limits to Oceanside 38 //} else if (document.getElementById('searchosl_SITE').checked) { 39 // encoreBaseURL = "https://lilink.org/search/a?a"; 40 // locationHref = encoreBaseURL + "?searchtype=X&SORT=D&searcharg=" + searchString; 41 //} 42 43 44 for (var specialChar in base64_encoding_map) { 45 charRegExString = escapeRegExp(specialChar); 46 base64Regex = new RegExp(charRegExString, "g"); 47 searchString = searchString.replace(base64Regex, base64_encoding_map[specialChar]) 48 searchString = encodeURIComponent(searchString); 49 50 51 window.open(locationHref); 52 return false; 53 } 54 return false; 55}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.