/
bib_display_s11.html
239 lines (192 loc) · 7.03 KB
/
bib_display_s11.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!--{toplogo}-->
<link rel="stylesheet" type="text/css" href="/screens/styles_bib_s11.css" />
<!--{ifbibdisplay}-->
<!--{xif}-->
<!--{catedit}-->
<div id="bibDisplayBody">
<div class="navigationRowRecord">
<!--{navrow}-->
<!--{innreach}-->
</div>
<div id="bibDisplayContent">
<div class="bibSearch">
<!--{searchtool}-->
<div class="bibSearchHistory">
<!--{searchhistory}-->
</div>
</div><!-- bibSearch -->
<div class="bibPager">
<!--{pager}-->
</div>
<div class="bibClear"></div>
<div class="bibResourceSidebar">
<!--{ifhasresourcetable}-->
<!--{resourcetable}-->
<!--{xif}-->
<div class="bibResourceTableHeader">Resources</div>
<!--Optional INNReach resources.-->
<!--{innreach}-->
<!--{navrow}-->
<div id="citeoclc"></div>
<!-- a quick script to hide the SMS menu if there are no items. same as the javascript in the SMS form, but it's really just to see if the items exist. If they don't, we hide the buttons -->
<script>
var f = document.getElementById('bib_detail');
try {
var itms = document.getElementById('bib_items');
var tr = itms.getElementsByTagName('TR');
for(i = 1; i < tr.length; i++) {
var x=tr[i].getElementsByTagName('TD');
if (x.length == 3) {
var loc = x[0].innerHTML.replace(/(<([^>]+)>| )/ig,"");
var call = x[1].innerHTML.replace(/(<([^>]+)>| )/ig,"");
var status = x[2].innerHTML.replace(/(<([^>]+)>| )/ig,"");
}
}
} catch (e) {
document.getElementById('smsfeatures').style.visibility='hidden';
}
</script>
<a href="#here" class="resourceButton" name=smsbutton id=smsbutton onClick="showsms();return false;">
<div id="smsfeatures">
<span class="button resourceButton">
<img src="/screens/ico_phone.gif">
<span class="buttonText">Text item location</span>
</span>
</div>
</a>
<div id="googlebooks" class="resourceButton"></div>
<div id="qr" onclick="getInfo()">
</div>
<form id="qrChoice">
<p>Choose a QR code to display:</p>
</form>
<div class="rightBib">
<div class="chat-widget" id="frontChat">
<div id="libchat_2f11d0f6eea08c95fe4490f088438151"></div>
</div>
</div>
</div>
</div>
<div class="bibDisplayJacket">
<div id="googlejacket"></div>
<div class="bibMedia">
<!--{media}-->
</div>
</div>
<div class="bibDisplayContentMain">
<!-- just a placeholder for the sms form -->
<div id='sms' style="visibility:hidden;display:none">
</div>
<!--{recordinfo:a}-->
<h1 class="bibDisplayTitle">
<!--{recordinfo:t}-->
</h1>
<!--{recordinfo:pRe}-->
<!--{ifhaspatrate}-->
<div class="bibDisplayRatings">
<!--{ratings}-->
</div>
<!--{xif}-->
<!--{booking}-->
<!--{holdingslink}-->
<div class="testlinkeddocs">
<!--{linkeddocs}-->
</div>
<div class="bibDisplayUrls">
<!--{URLS}-->
</div>
<!--{bloblinks}-->
<!--{imagelinks}-->
<!--{artthumb}-->
<!--{xmlframe}-->
<!--{holds}-->
<!--{holdings}-->
<div class="bibDisplayItems">
<div class="bibDisplayItemsHeader"><h2>Copies</h2></div>
<div class="bibDisplayItemsMain">
<!--{items}-->
</div>
</div>
<!--{orders}-->
<div class="bibDisplayContentMore">
<!--{ifTOC}-->
<!--{TOC}-->
<!--{xif}-->
<div class="bibDisplayPermLink actionButtonArea">
<!--{recordlink}-->
</div>
<!--{recordinfo:#}-->
</div>
<!--{IFELCONTENT:365}-->
<!-- Replace the number for your enhanced content in Pathfinder Pro -->
<div class="bibDisplayContentMore">
<ul id="elContent">
<!--{ELCONTENT:365}-->
</ul>
</div>
<!--{xif}-->
<div class="bibDisplayContentMore bibDisplayReviews">
<!--{patronreviewsfull}-->
</div>
</div>
</div><!-- close bibDisplayContent -->
<div class="clear"></div>
</div><!-- close bibDisplayBody -->
<script type='text/javascript'>
var ProcessResults = function(bookInfo) {
var buttonImg = "<img src='/screens/googlebutton.gif' alt='Google Preview'>"
var textGBS = "";
for (ISBN in bookInfo) {
var b = bookInfo[ISBN];
var bookJacket = "<img src='" + b.thumbnail_url + "&zoom=1'>";
//form the text of Google Book contents
if (b && (b.preview == "full")) {
//textGBS = "<p>Full Text</p>";
//"Google Book Search";
document.getElementById("googlebooks").innerHTML = "<a href='" + b.preview_url + "'>" + buttonImg + "</a>";
document.getElementById("googlejacket").innerHTML = bookJacket;
}
else if (b && (b.preview == "partial")) {
// textGBS = "<p>Limited Preview</p>"
//"Preview at Google Book Search";
document.getElementById("googlebooks").innerHTML = "<a href='" + b.preview_url + "'>" + buttonImg + "</a>";
document.getElementById("googlejacket").innerHTML = bookJacket
}
else if (b && (b.preview == "noview")) {
// textGBS = "<p>Limited Preview</p>"
//"Preview at Google Book Search";
document.getElementById("googlebooks").innerHTML = "<a href='" + b.preview_url + "'>" + buttonImg + "</a>";
if (b.thumbnail_url != undefined){
document.getElementById("googlejacket").innerHTML = bookJacket
}
}
else {
//document.getElementById("googlebooks").innerHTML = "None available.";
}
}
}
</script>
<script type='text/javascript'>
var ISBN = $(".bibInfoLabel:contains('ISBN')").siblings(".bibInfoData").text().replace(/(w).*/g,"$1")
var cburl = "http://books.google.com/books";
// Retrieve the info for these bibkeys
var api_url = cburl + "?jscmd=viewapi&bibkeys=ISBN:" + ISBN;
var s = document.createElement("script");
s.setAttribute("type", "text/javascript");
//alert("searching for: " + ISBN);
s.setAttribute("src", "http://books.google.com/books?jscmd=viewapi&bibkeys=ISBN:" + ISBN + "&callback=ProcessResults");
document.documentElement.firstChild.appendChild(s);
//alert (api_url);
</script>
<script type="text/javascript">
var OCLC = $(".bibInfoLabel:contains('OCLC')").siblings(".bibInfoData").text().replace(/[^0123456789]/g,"")
var ISBN = $(".bibInfoLabel:contains('ISBN')").siblings(".bibInfoData").text().replace(/[^0123456789]/g,"")
if (OCLC > 0) {
document.getElementById("citeoclc").innerHTML = "<a href='http://worldcat.org/oclc/" + OCLC + "?page=citation'><span class='button resourceButton'><img src='/screens/ico_browse_brief.png' alt=''><span class='buttonText'>Cite This</span></span></a>";}
else if (ISBN > 0) {
document.getElementById("citeoclc").innerHTML = "<a href='http://worldcat.org/search?q=isbn%3A" + ISBN + "&qt=advanced'><span class='button resourceButton'><img src='/screens/ico_browse_brief.png' alt=''><span class='buttonText'>Check for citation in WorldCat.</span></span></a>";}
else {
//document.getElementById("citeoclc").innerHTML = "No citation available.";
}
</script>
<!--{botlogo}-->