-
Notifications
You must be signed in to change notification settings - Fork 0
/
sharepoint-worldcat-discovery-search-box.html
117 lines (112 loc) · 6.18 KB
/
sharepoint-worldcat-discovery-search-box.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<style>
p.notice{
margin:0;
padding:4px 0;
border-top: 1px solid #B0AEAE;
border-bottom: 1px solid #B0AEAE;"
}
</style>
<script>
function submitWC() {
var formatVal = "all";
if (document.getElementsByName('format')[0].checked){
formatVal="Artchap&format=Jrnl&format=News";
}
var scope = "";
if (document.getElementById('scope').value != "999"){ // explicit fake value to indicate search all
scope=document.getElementById('scope').value;
}
var worldcat = 'https://depaul.on.worldcat.org/search?queryString=' + document.getElementsByName('q')[0].value + '&scope=' + scope + "&format=" + formatVal;
window.open(worldcat);
}
function changeWCSearch() {
if (document.getElementsByName('q')[0].value.trim()==""){
document.getElementsByName('q')[0].value="Search books, articles, I-Share and more...";
}
}
function setWCSearch() {
document.getElementsByName('q')[0].value="Search books, articles, I-Share and more...";
}
function clearWCSearch() {
if (document.getElementsByName('q')[0].value=="Search books, articles, I-Share and more..." ){
document.getElementsByName('q')[0].value="";
}
else {
if (document.getElementsByName('q')[0].value==""){
document.getElementsByName('q')[0].value="Search books, articles, I-Share and more...";
}
}
}
</script>
<!--Begin WorldCat Local Search Box-->
<!-- <div style="background-color: rgb(255, 246, 143);"><span><span><span class="left"><strong>SUNDAY, OCTOBER 30: The "Find Journals by Title" page and "Find Full-Text @ DePaul" links to articles and journals are now working. The system is still having some issues, so page loading and connecting to full text articles and journals may be very slow for some items.<br/><span style="display: inline-block;"></span></strong></span></span></span></div> -->
<div class="worldcat">
<div class="skinsstructure1 skin-simple-transparent-tan">
<div class="media-body">
<div class="full-width unit">
<div class="block" id="wcl_container">
<div class="left worldcat-margin">
<h2 class="obj-inline margin075em-right">Search DePaul WorldCat Discovery</h2>
<p class="obj-inline margin075em-right">Searching 15+ key databases</p>
<img class="left sep obj-inline worldcat-logo-padding" src="https://www.worldcat.org/searchbox/images/wclocal_srchwc.gif?ai=wclocal_depaul" alt=""/>
</div>
<input name="qt" value="affiliate" type="hidden"/> <input name="ai" value="wclocal_813" type="hidden"/>
<div class="block" id="wcl_searchbox">
<div class="block">
<span>
<input name="q" title="Search books, articles, I-Share and more..." class="wcl_text" id="q" onkeypress="if(event.keyCode===13)submitWC();" onfocus="clearWCSearch();" onblur="changeWCSearch();" value="Search books, articles, I-Share and more..." type="text"/>
</span>
<span class="hpadding">
<label class="offscreen" for="scope">Select Scope</label>
<select name="scope" id="scope">
<option value="999" selected>Libraries Worldwide</option> <!-- Need a fake value here because null gets stripped out -->
<option value="sz:30986">I-Share Libraries</option>
<option value="sz:33458">DePaul University</option>
</select>
<input name="oldscope" type="hidden"/>
</span>
<span>
<input id="wcl_search_button" onclick="submitWC(); return false;" value="Search" type="submit"/> </span>
<div class="hpadding">
<label class="offscreen" for="format">Search Articles Only</label>
<input name="format" value="" type="checkbox"/>
<span class="medium padding05em-left">
Search articles only
<div class="vpadding block right" id="advanced">
<span class="left ms-rteFontSize-3">
<a onclick="setWCSearch();" target="_parent" title="A to Z Databases" href="/find/Pages/Articles-A-Z-Databases-and-Journals.aspx">
<strong>A-Z Databases</strong>
</a>
</span>
<span class="ms-rteFontSize-3">
<strong> </strong>
</span>
<span class="left sep ms-rteFontSize-3">
<strong>| </strong>
</span>
<span class="ms-rteFontSize-3">
<a onclick="setWCSearch();" target="_parent" title="Research Guides" href="/get-help/Pages/Research-Guides.aspx">
<strong>Research Guides</strong></a>
</span>
<span class="ms-rteFontSize-3">
<strong> </strong></span>
<span class="left sep ms-rteFontSize-3">
<strong>| </strong></span>
<span class="left">
<a onclick="setWCSearch();" target="_parent" title="DePaul VuFind Catalog" href="https://vufind.carli.illinois.edu/vf-dpu/" class="ms-rteFontSize-3">
<strong>DePaul VuFind Catalog</strong>
</a>
<!-- Uncomment line below to display a message
<p class="notice"></p>
-->
</span>
</div>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>