/
bib_display_s4.html
182 lines (154 loc) · 4.96 KB
/
bib_display_s4.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
<!--{toplogo}-->
<!--{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="bibDisplayJacket">
<div id="googlebooks" name="googlebooks">
</div>
<div class="bibMedia">
<!--{media}-->
</div>
</div>
<div class="bibDisplayContentMain">
<!--{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}-->
<!--{ifTOC}-->
<!--{TOC}-->
<!--{xif}-->
<!--{holds}-->
<!--{holdings}-->
<div class="bibDisplayItems">
<div class="bibDisplayItemsMain">
<!--{items}-->
<a href="#here" name=smsbutton id=smsbutton onClick="showsms();return false;">
<div id="smsfeatures" class="resourceButton">
<span class="button">
<img src="/screens/ico_phone.gif">
<span class="buttonText">Text call number</span>
</span>
</div>
</a>
<!-- 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>
<!-- just a placeholder for the sms form -->
<div id='sms' style="visibility:hidden;display:none">
</div>
</div>
</div>
<!--{orders}-->
<div class="bibDisplayContentMore">
<!--{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">
<div class="bibDisplayPermLink actionButtonArea">
<!--{recordlink}-->
</div>
<!--{patronreviewsfull}-->
</div>
</div>
</div><!-- close bibDisplayContent -->
<div class="clear"></div>
</div><!-- close bibDisplayBody -->
<!--{botlogo}-->
<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 = bookJacket + "<a href='" + b.preview_url + "'>" + buttonImg + textGBS + "</a>"
}
else if (b && (b.preview == "partial")) {
textGBS = "<p>Limited Preview</p>"
//"Preview at Google Book Search";
document.getElementById("googlebooks").innerHTML = bookJacket + "<a href='" + b.preview_url + "'>" + buttonImg + textGBS + "</a>"
}
else if (b && (b.preview == "noview")) {
//"Preview at Google Book Search";
if (b.thumbnail_url != undefined){
document.getElementById("googlebooks").innerHTML = bookJacket + "<a href='" + b.preview_url + "'>" + buttonImg + "</a>"
}
}
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>