|
Lines 19-37
Link Here
|
| 19 |
[% ShowCourseReservesHeader = 0 %] |
19 |
[% ShowCourseReservesHeader = 0 %] |
| 20 |
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %] |
20 |
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %] |
| 21 |
[% FOREACH ITEM_RESULT IN itemloop %] |
21 |
[% FOREACH ITEM_RESULT IN itemloop %] |
| 22 |
[% IF ITEM_RESULT.course_reserves %] |
22 |
[% IF ITEM_RESULT.course_reserves %] |
| 23 |
[% FOREACH r IN ITEM_RESULT.course_reserves %] |
23 |
[% FOREACH r IN ITEM_RESULT.course_reserves %] |
| 24 |
[% IF r.course.enabled == 'yes' %] |
24 |
[% IF r.course.enabled == 'yes' %] |
| 25 |
[% ShowCourseReservesHeader = 1 %] |
25 |
[% ShowCourseReservesHeader = 1 %] |
| 26 |
[% END %] |
26 |
[% END %] |
| 27 |
[% END %] |
27 |
[% END %] |
| 28 |
[% END %] |
28 |
[% END %] |
| 29 |
[% END %] |
29 |
[% END %] |
| 30 |
[% END %] |
30 |
[% END %] |
| 31 |
|
31 |
|
| 32 |
[% INCLUDE 'doc-head-open.inc' %] |
32 |
[% INCLUDE 'doc-head-open.inc' %] |
| 33 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %]</title> |
33 |
<title> |
| 34 |
[% INCLUDE 'doc-head-close.inc' %] |
34 |
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %] |
|
|
35 |
</title> |
| 36 |
[% INCLUDE 'doc-head-close.inc' %] |
| 35 |
[% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %] |
37 |
[% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %] |
| 36 |
[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] |
38 |
[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] |
| 37 |
[% Asset.css("lib/verovio/midiplayer.css") | $raw %] |
39 |
[% Asset.css("lib/verovio/midiplayer.css") | $raw %] |
|
Lines 43-49
Link Here
|
| 43 |
|
45 |
|
| 44 |
<div class="main"> |
46 |
<div class="main"> |
| 45 |
<ul class="breadcrumb"> |
47 |
<ul class="breadcrumb"> |
| 46 |
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> |
48 |
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a><span class="divider">›</span></li> |
| 47 |
<li><a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a></li> |
49 |
<li><a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a></li> |
| 48 |
</ul> |
50 |
</ul> |
| 49 |
|
51 |
|
|
Lines 51-57
Link Here
|
| 51 |
<div class="row-fluid"> |
53 |
<div class="row-fluid"> |
| 52 |
<div class="span9"> |
54 |
<div class="span9"> |
| 53 |
<div id="catalogue_detail_biblio" class="maincontent"> |
55 |
<div id="catalogue_detail_biblio" class="maincontent"> |
| 54 |
|
|
|
| 55 |
<div id="bookcover"> |
56 |
<div id="bookcover"> |
| 56 |
[% IF ( biblio.title ) %] |
57 |
[% IF ( biblio.title ) %] |
| 57 |
[% img_title = biblio.title %] |
58 |
[% img_title = biblio.title %] |
|
Lines 87-100
Link Here
|
| 87 |
[% IF ( GoogleJackets ) %] |
88 |
[% IF ( GoogleJackets ) %] |
| 88 |
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div> |
89 |
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div> |
| 89 |
[% END %] |
90 |
[% END %] |
|
|
91 |
|
| 90 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
92 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
| 91 |
[% coce_id = normalized_ean || normalized_isbn | html %] |
93 |
[% coce_id = normalized_ean || normalized_isbn | html %] |
| 92 |
<div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div> |
94 |
<div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div> |
| 93 |
[% END %] |
95 |
[% END %] |
|
|
96 |
|
| 94 |
[% IF OpenLibraryCovers %] |
97 |
[% IF OpenLibraryCovers %] |
| 95 |
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div> |
98 |
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div> |
| 96 |
[% END %] |
99 |
[% END %] |
|
|
100 |
|
| 97 |
[% bt_id = ( normalized_upc || normalized_isbn ) %] |
101 |
[% bt_id = ( normalized_upc || normalized_isbn ) %] |
|
|
102 |
|
| 98 |
[% IF ( BakerTaylorEnabled && bt_id ) %] |
103 |
[% IF ( BakerTaylorEnabled && bt_id ) %] |
| 99 |
[% IF BakerTaylorBookstoreURL %] |
104 |
[% IF BakerTaylorBookstoreURL %] |
| 100 |
[% IF ( OPACURLOpenInNewWindow ) %] |
105 |
[% IF ( OPACURLOpenInNewWindow ) %] |
|
Lines 106-111
Link Here
|
| 106 |
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /> |
111 |
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /> |
| 107 |
[% END %] |
112 |
[% END %] |
| 108 |
[% END %] |
113 |
[% END %] |
|
|
114 |
|
| 109 |
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] |
115 |
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] |
| 110 |
[% IF ( OPACURLOpenInNewWindow ) %] |
116 |
[% IF ( OPACURLOpenInNewWindow ) %] |
| 111 |
<a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a> |
117 |
<a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a> |
|
Lines 133-146
Link Here
|
| 133 |
<h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1> |
139 |
<h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1> |
| 134 |
[% IF ( author ) %]<h5 class="author">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %] |
140 |
[% IF ( author ) %]<h5 class="author">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %] |
| 135 |
|
141 |
|
| 136 |
<span class="results_summary">[% UNLESS ( item_level_itypes ) %] |
142 |
<span class="results_summary"> |
| 137 |
[ |
143 |
[% UNLESS ( item_level_itypes ) %] |
| 138 |
[% IF ( description ) %] |
144 |
[ |
| 139 |
[% description | html %] |
145 |
[% IF ( description ) %] |
| 140 |
[% ELSE %] |
146 |
[% description | html %] |
| 141 |
[% itemtype | html %] |
147 |
[% ELSE %] |
|
|
148 |
[% itemtype | html %] |
| 149 |
[% END %] |
| 150 |
] |
| 142 |
[% END %] |
151 |
[% END %] |
| 143 |
] [% END %] |
152 |
|
| 144 |
[% IF ( unititle ) %], [% unititle | html %][% END %] |
153 |
[% IF ( unititle ) %], [% unititle | html %][% END %] |
| 145 |
</span> |
154 |
</span> |
| 146 |
|
155 |
|
|
Lines 151-170
Link Here
|
| 151 |
[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %] |
160 |
[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %] |
| 152 |
[% MARCAUTHOR_SUBFIELDS_LOO.separator | html %] |
161 |
[% MARCAUTHOR_SUBFIELDS_LOO.separator | html %] |
| 153 |
[% IF ( MARCAUTHOR.authoritylink ) %] |
162 |
[% IF ( MARCAUTHOR.authoritylink ) %] |
| 154 |
<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors authority_link" data-authid="[% MARCAUTHOR.authoritylink | html %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> |
163 |
<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %][% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors authority_link" data-authid="[% MARCAUTHOR.authoritylink | html %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> |
| 155 |
[% ELSE %] |
164 |
[% ELSE %] |
| 156 |
<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> |
165 |
<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %][% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> |
| 157 |
[% END %] |
166 |
[% END %] |
| 158 |
[% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a> |
167 |
[% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a> |
| 159 |
[% END %] |
168 |
[% END %] |
| 160 |
[% IF (MARCAUTHOR.authoritylink) %] |
169 |
[% IF (MARCAUTHOR.authoritylink) %] |
| 161 |
<a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> |
170 |
<a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> |
| 162 |
[% END %] |
171 |
[% END %] |
|
|
172 |
|
| 163 |
[% IF IDREF and MARCAUTHOR.unimarc3 %] |
173 |
[% IF IDREF and MARCAUTHOR.unimarc3 %] |
| 164 |
<a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a> |
174 |
<a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600, 500]">IdRef</a> |
| 165 |
[% END %] |
175 |
[% END %] |
|
|
176 |
|
| 166 |
[% UNLESS ( loop.last ) %]|[% END %] |
177 |
[% UNLESS ( loop.last ) %]|[% END %] |
| 167 |
[% END # /FOREACH MARCAUTHORS %] |
178 |
[% END # / FOREACH MARCAUTHORS %] |
| 168 |
</div> |
179 |
</div> |
| 169 |
[% END # IF MARCAUTHORS %] |
180 |
[% END # IF MARCAUTHORS %] |
| 170 |
|
181 |
|
|
Lines 175-180
Link Here
|
| 175 |
[% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %] |
186 |
[% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %] |
| 176 |
<a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a> |
187 |
<a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a> |
| 177 |
[% END %] |
188 |
[% END %] |
|
|
189 |
|
| 178 |
[% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %] |
190 |
[% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %] |
| 179 |
. [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %] |
191 |
. [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %] |
| 180 |
[% END %] |
192 |
[% END %] |
|
Lines 182-202
Link Here
|
| 182 |
[% UNLESS ( loop.last ) %]|[% END %] |
194 |
[% UNLESS ( loop.last ) %]|[% END %] |
| 183 |
[% END # / FOREACH MARCSERIES %] |
195 |
[% END # / FOREACH MARCSERIES %] |
| 184 |
</span> |
196 |
</span> |
| 185 |
[% END # /MARCSERIES %] |
197 |
[% END # / MARCSERIES %] |
| 186 |
|
198 |
|
| 187 |
[% IF ( editionstatement ) %] |
199 |
[% IF ( editionstatement ) %] |
| 188 |
<span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span> |
200 |
<span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span> |
| 189 |
[% END %] |
201 |
[% END %] |
|
|
202 |
|
| 190 |
[% IF ( publishercode ) %] |
203 |
[% IF ( publishercode ) %] |
| 191 |
<span class="results_summary publisher"><span class="label">Published by :</span> |
204 |
<span class="results_summary publisher"><span class="label">Published by :</span> |
| 192 |
<a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] "> |
205 |
<a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] "> |
| 193 |
[% publishercode | html %] |
206 |
[% publishercode | html %] |
| 194 |
</a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] |
207 |
</a> |
|
|
208 |
[% IF ( place ) %]([% place | html %])[% END %] |
| 209 |
[% IF ( publicationyear ) %], [% publicationyear | html %][% END %] |
| 195 |
</span> |
210 |
</span> |
| 196 |
[% END %] |
211 |
[% END %] |
| 197 |
|
212 |
|
| 198 |
[% IF ( pages ) %] |
213 |
[% IF ( pages ) %] |
| 199 |
<span class="results_summary physical"><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]</span> |
214 |
<span class="results_summary physical"><span class="label">Physical details:</span>[% pages | html %][% illus | html %][% size | html %]</span> |
| 200 |
[% END %] |
215 |
[% END %] |
| 201 |
|
216 |
|
| 202 |
[% IF ( MARCISBNS ) %] |
217 |
[% IF ( MARCISBNS ) %] |
|
Lines 214-221
Link Here
|
| 214 |
[% IF ( collectiontitle ) %] |
229 |
[% IF ( collectiontitle ) %] |
| 215 |
<span class="results_summary collection"><span class="label">Collection: </span> |
230 |
<span class="results_summary collection"><span class="label">Collection: </span> |
| 216 |
[% collectiontitle | html %] |
231 |
[% collectiontitle | html %] |
| 217 |
[% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn | html %][% END %] |
232 |
[% IF ( collectionissn ) %][% ', ISSN ' _ collectionissn | html %][% END %] |
| 218 |
[% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume | html %] [% END %] |
233 |
|
|
|
234 |
[% IF ( collectionvolume ) %][% ' ; ' _ collectionvolume | html %][% END %] |
| 219 |
|
235 |
|
| 220 |
</span> |
236 |
</span> |
| 221 |
[% END %] |
237 |
[% END %] |
|
Lines 231-251
Link Here
|
| 231 |
[% IF ( MARCSUBJCTS ) %] |
247 |
[% IF ( MARCSUBJCTS ) %] |
| 232 |
<div class="results_summary subjects"> |
248 |
<div class="results_summary subjects"> |
| 233 |
<span class="label">Subject(s):</span> |
249 |
<span class="label">Subject(s):</span> |
| 234 |
|
|
|
| 235 |
[% FOREACH MARCSUBJCT IN MARCSUBJCTS %] |
250 |
[% FOREACH MARCSUBJCT IN MARCSUBJCTS %] |
| 236 |
[% subjectsloop = loop %] |
251 |
[% subjectsloop = loop %] |
| 237 |
[% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] |
252 |
[% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] |
| 238 |
[% SUBFIELD.separator | html %] |
253 |
[% SUBFIELD.separator | html %] |
| 239 |
<a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" class="subject" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value | html %]</a> |
254 |
<a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" class="subject" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value | html %]</a> |
| 240 |
[% END %] |
255 |
[% END %] |
|
|
256 |
|
| 241 |
[% IF (MARCSUBJCT.authoritylink) %] |
257 |
[% IF (MARCSUBJCT.authoritylink) %] |
| 242 |
<a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> |
258 |
<a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> |
| 243 |
[% END %] |
259 |
[% END %] |
|
|
260 |
|
| 244 |
[% UNLESS ( loop.last ) %] | [% END %] |
261 |
[% UNLESS ( loop.last ) %] | [% END %] |
| 245 |
[% END # / FOREACH MARCSUBJCTS %] |
262 |
[% END # / FOREACH MARCSUBJCTS %] |
| 246 |
</div> |
263 |
</div> |
| 247 |
[% ELSE # /IF MARCSUBJCTS %] |
264 |
[% ELSE # / IF MARCSUBJCTS %] |
| 248 |
[% IF ( subjects ) %]<span class="results_summary subjects"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a class="subject" href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject | html %]</a> | [% END %]</span>[% END %] |
265 |
[% IF ( subjects ) %]<span class="results_summary subjects"><span class="label">Subject(s):</span>[% FOREACH subject IN subjects %]<a class="subject" href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject | html %]</a> | [% END %]</span>[% END %] |
| 249 |
[% END %] |
266 |
[% END %] |
| 250 |
|
267 |
|
| 251 |
[% IF ( copyrightdate ) %] |
268 |
[% IF ( copyrightdate ) %] |
|
Lines 269-299
Link Here
|
| 269 |
<div class="results_summary online_resources"><span class="label">Online resources:</span> |
286 |
<div class="results_summary online_resources"><span class="label">Online resources:</span> |
| 270 |
<ul> |
287 |
<ul> |
| 271 |
[% FOREACH MARCurl IN MARCURLS %] |
288 |
[% FOREACH MARCurl IN MARCURLS %] |
| 272 |
<li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %] |
289 |
<li> |
|
|
290 |
[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %] |
| 273 |
|
291 |
|
| 274 |
[% IF ( OPACURLOpenInNewWindow ) %] |
292 |
[% IF ( OPACURLOpenInNewWindow ) %] |
| 275 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
293 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
| 276 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> |
294 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> |
| 277 |
[% ELSE %] |
295 |
[% ELSE %] |
| 278 |
<a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> |
296 |
<a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> |
| 279 |
[% END %] |
297 |
[% END %] |
| 280 |
[% ELSE %] |
|
|
| 281 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
| 282 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]"> |
| 283 |
[% ELSE %] |
298 |
[% ELSE %] |
| 284 |
<a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]"> |
299 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
| 285 |
[% END %] |
300 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]"> |
| 286 |
[% END %] |
301 |
[% ELSE %] |
| 287 |
[% MARCurl.linktext | html %]</a> |
302 |
<a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]"> |
| 288 |
[% IF ( MARCurl.notes ) %] |
303 |
[% END %] |
| 289 |
<ul> |
|
|
| 290 |
[% FOREACH note IN MARCurl.notes %] |
| 291 |
<li>[% note.note | html %]</li> |
| 292 |
[% END %] |
| 293 |
</ul> |
| 294 |
[% END %] |
304 |
[% END %] |
|
|
305 |
[% MARCurl.linktext | html %]</a> |
| 306 |
[% IF ( MARCurl.notes ) %] |
| 307 |
<ul> |
| 308 |
[% FOREACH note IN MARCurl.notes %] |
| 309 |
<li>[% note.note | html %]</li> |
| 310 |
[% END %] |
| 311 |
</ul> |
| 312 |
[% END %] |
| 295 |
</li> |
313 |
</li> |
| 296 |
[% END # /FOREACH MARCURLS %] |
314 |
[% END # / FOREACH MARCURLS %] |
| 297 |
</ul> |
315 |
</ul> |
| 298 |
</div> |
316 |
</div> |
| 299 |
[% END # / IF MARCURLS %] |
317 |
[% END # / IF MARCURLS %] |
|
Lines 328-341
Link Here
|
| 328 |
<span class="label">Tags from this library:</span> |
346 |
<span class="label">Tags from this library:</span> |
| 329 |
<ul id="tagslist"> |
347 |
<ul id="tagslist"> |
| 330 |
[% FOREACH TagLoo IN TagLoop %] |
348 |
[% FOREACH TagLoo IN TagLoop %] |
| 331 |
<li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span> |
349 |
<li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a><span class="weight">([% TagLoo.weight_total | html %])</span> |
| 332 |
[% IF ( loop.last ) %][% ELSE %], [% END %] |
350 |
[% IF ( loop.last ) %][% ELSE %], [% END %] |
| 333 |
</li> |
351 |
</li> |
| 334 |
[% END %] |
352 |
[% END %] |
| 335 |
</ul> |
353 |
</ul> |
| 336 |
[% ELSE %] |
354 |
[% ELSE %] |
| 337 |
<span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span> |
355 |
<span class="label">Tags from this library:</span><span class="notags">No tags from this library for this title.</span> |
| 338 |
[% END %] |
356 |
[% END %] |
|
|
357 |
|
| 339 |
[% IF ( TagsInputEnabled ) %] |
358 |
[% IF ( TagsInputEnabled ) %] |
| 340 |
[% IF ( loggedinusername ) %] |
359 |
[% IF ( loggedinusername ) %] |
| 341 |
<form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;"> |
360 |
<form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;"> |
|
Lines 369-375
Link Here
|
| 369 |
[% END %] |
388 |
[% END %] |
| 370 |
[% END # / IF TagsInputEnabled %] |
389 |
[% END # / IF TagsInputEnabled %] |
| 371 |
</div> |
390 |
</div> |
| 372 |
[% END # /IF TagsShowEnabled %] |
391 |
[% END # / IF TagsShowEnabled %] |
| 373 |
|
392 |
|
| 374 |
[% IF ( SyndeticsEnabled ) %] |
393 |
[% IF ( SyndeticsEnabled ) %] |
| 375 |
[% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %] |
394 |
[% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %] |
|
Lines 377-383
Link Here
|
| 377 |
<span class="label">Series information:</span> |
396 |
<span class="label">Series information:</span> |
| 378 |
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | html %]&type=series&num=1&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> |
397 |
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | html %]&type=series&num=1&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> |
| 379 |
</span> |
398 |
</span> |
| 380 |
[% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%] |
399 |
[% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists %] |
| 381 |
[% IF ( SyndeticsAVPROFILEExists ) %] |
400 |
[% IF ( SyndeticsAVPROFILEExists ) %] |
| 382 |
<span class="results_summary"> |
401 |
<span class="results_summary"> |
| 383 |
<span class="label">Audiovisual profile:</span> |
402 |
<span class="label">Audiovisual profile:</span> |
|
Lines 398-404
Link Here
|
| 398 |
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | html %]&type=awards&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> |
417 |
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | html %]&type=awards&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> |
| 399 |
</span> |
418 |
</span> |
| 400 |
[% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %] |
419 |
[% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %] |
| 401 |
[% END # / IF SyndeticsEnabled%] |
420 |
[% END # / IF SyndeticsEnabled %] |
| 402 |
|
421 |
|
| 403 |
[% IF ( OpacStarRatings != 'disable' ) %] |
422 |
[% IF ( OpacStarRatings != 'disable' ) %] |
| 404 |
<form method="post" action="/cgi-bin/koha/opac-ratings.pl"> |
423 |
<form method="post" action="/cgi-bin/koha/opac-ratings.pl"> |
|
Lines 412-417
Link Here
|
| 412 |
[% ELSE %] |
431 |
[% ELSE %] |
| 413 |
<select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off"> |
432 |
<select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off"> |
| 414 |
[% END %] |
433 |
[% END %] |
|
|
434 |
|
| 415 |
[% IF ( rating_avg_int == 0 ) %] |
435 |
[% IF ( rating_avg_int == 0 ) %] |
| 416 |
<option value="" selected="selected"></option> |
436 |
<option value="" selected="selected"></option> |
| 417 |
[% END %] |
437 |
[% END %] |
|
Lines 468-476
Link Here
|
| 468 |
<div id="BW_critiques"></div> |
488 |
<div id="BW_critiques"></div> |
| 469 |
<div id="BW_critiques_pro"></div> |
489 |
<div id="BW_critiques_pro"></div> |
| 470 |
<div id="BW_citations"></div> |
490 |
<div id="BW_citations"></div> |
| 471 |
[% END # / IF Babeltheque%] |
491 |
[% END # / IF Babeltheque %] |
| 472 |
|
492 |
|
| 473 |
</div> <!-- / #catalogue_detail_biblio --> |
493 |
</div><!-- / #catalogue_detail_biblio --> |
| 474 |
|
494 |
|
| 475 |
<div id="bibliodescriptions" class="toptabs"> |
495 |
<div id="bibliodescriptions" class="toptabs"> |
| 476 |
<ul> |
496 |
<ul> |
|
Lines 479-490
Link Here
|
| 479 |
[% ELSE %] |
499 |
[% ELSE %] |
| 480 |
<li id="tab_holdings"> |
500 |
<li id="tab_holdings"> |
| 481 |
[% END %] |
501 |
[% END %] |
| 482 |
[% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %] |
502 |
[% BLOCK holding_tab_title %][% IF ( SeparateHoldings ) %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %] |
| 483 |
<a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a> |
503 |
<a href="#holdings">[% PROCESS holding_tab_title %][% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a> |
| 484 |
</li> |
504 |
</li> |
| 485 |
[% IF (SeparateHoldings) %] |
505 |
[% IF ( SeparateHoldings ) %] |
| 486 |
<li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li> |
506 |
<li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li> |
| 487 |
[% END %] |
507 |
[% END %] |
|
|
508 |
|
| 488 |
[% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] |
509 |
[% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] |
| 489 |
[% SET title_notes_count = 0 %] |
510 |
[% SET title_notes_count = 0 %] |
| 490 |
[% IF MARCNOTES %] |
511 |
[% IF MARCNOTES %] |
|
Lines 492-509
Link Here
|
| 492 |
[% ELSIF notes %] |
513 |
[% ELSIF notes %] |
| 493 |
[% SET title_notes_count = 1 %] |
514 |
[% SET title_notes_count = 1 %] |
| 494 |
[% END %] |
515 |
[% END %] |
|
|
516 |
|
| 495 |
[% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %] |
517 |
[% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %] |
| 496 |
<li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li> |
518 |
<li id="tab_descriptions"><a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li> |
| 497 |
[% END %] |
519 |
[% END %] |
|
|
520 |
|
| 498 |
[% IF ( SYNDETICS_TOC ) %] |
521 |
[% IF ( SYNDETICS_TOC ) %] |
| 499 |
<li id="tab_toc"> <a href="#toc">TOC</a></li> |
522 |
<li id="tab_toc"><a href="#toc">TOC</a></li> |
| 500 |
[% END %] |
523 |
[% END %] |
|
|
524 |
|
| 501 |
[% IF ( SyndeticsEnabled ) %] |
525 |
[% IF ( SyndeticsEnabled ) %] |
| 502 |
[% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %] |
526 |
[% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %] |
| 503 |
<li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li> |
527 |
<li id="tab_excerpt"><a href="#excerpt">Excerpt</a></li> |
| 504 |
[% END %] |
528 |
[% END %] |
|
|
529 |
|
| 505 |
[% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %] |
530 |
[% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %] |
| 506 |
<li id="tab_reviews"> <a href="#reviews">Reviews</a></li> |
531 |
<li id="tab_reviews"><a href="#reviews">Reviews</a></li> |
| 507 |
[% IF ( LibraryThingForLibrariesID ) %] |
532 |
[% IF ( LibraryThingForLibrariesID ) %] |
| 508 |
<li id="tab_LTFLreviews"> |
533 |
<li id="tab_LTFLreviews"> |
| 509 |
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script> |
534 |
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script> |
|
Lines 511-524
Link Here
|
| 511 |
</li> |
536 |
</li> |
| 512 |
[% END %] |
537 |
[% END %] |
| 513 |
[% END %] |
538 |
[% END %] |
|
|
539 |
|
| 514 |
[% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %] |
540 |
[% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %] |
| 515 |
<li id="tab_anotes"> <a href="#anotes">About the author</a></li> |
541 |
<li id="tab_anotes"><a href="#anotes">About the author</a></li> |
| 516 |
[% END %] |
542 |
[% END %] |
| 517 |
[% END # / IF SyndeticsEnabled %] |
543 |
[% END # / IF SyndeticsEnabled %] |
| 518 |
|
544 |
|
| 519 |
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] |
545 |
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] |
| 520 |
<li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li> |
546 |
<li id="tab_LFTLSimilarItems"><a href="#LFTLSimilarItems">Similar items</a></li> |
| 521 |
<li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li> |
547 |
<li id="tab_LTFLTagBrowse"><a href="#LTFLTagBrowse">Tag browser</a></li> |
| 522 |
[% END %] |
548 |
[% END %] |
| 523 |
|
549 |
|
| 524 |
[% IF ( subscriptionsnumber ) %] |
550 |
[% IF ( subscriptionsnumber ) %] |
|
Lines 533-539
Link Here
|
| 533 |
|
559 |
|
| 534 |
[% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %] |
560 |
[% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %] |
| 535 |
[% IF ( NovelistSelectView == 'tab') %] |
561 |
[% IF ( NovelistSelectView == 'tab') %] |
| 536 |
<li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li> |
562 |
<li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">Novelist Select</a></li> |
| 537 |
[% END %] |
563 |
[% END %] |
| 538 |
[% END %] |
564 |
[% END %] |
| 539 |
|
565 |
|
|
Lines 580-586
Link Here
|
| 580 |
</div> |
606 |
</div> |
| 581 |
[% END # / IF serialcollection %] |
607 |
[% END # / IF serialcollection %] |
| 582 |
|
608 |
|
| 583 |
|
|
|
| 584 |
<div id="holdings"> |
609 |
<div id="holdings"> |
| 585 |
[% IF too_many_items %] |
610 |
[% IF too_many_items %] |
| 586 |
<p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">Click here to view them all.</a></p> |
611 |
<p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">Click here to view them all.</a></p> |
|
Lines 593-603
Link Here
|
| 593 |
<span>[% acquisition_details.total_quantity | html %] items are on order.</span> |
618 |
<span>[% acquisition_details.total_quantity | html %] items are on order.</span> |
| 594 |
[% END %] |
619 |
[% END %] |
| 595 |
[% END %] |
620 |
[% END %] |
|
|
621 |
|
| 596 |
[% IF holds_count.defined || priority %] |
622 |
[% IF holds_count.defined || priority %] |
| 597 |
<div id="bib_holds"> |
623 |
<div id="bib_holds"> |
| 598 |
[% IF holds_count.defined %] |
624 |
[% IF holds_count.defined %] |
| 599 |
<span>Total holds: [% holds_count | html %]</span> |
625 |
<span>Total holds: [% holds_count | html %]</span> |
| 600 |
[% END %] |
626 |
[% END %] |
|
|
627 |
|
| 601 |
[% IF priority %] |
628 |
[% IF priority %] |
| 602 |
[% IF holds_count.defined %] |
629 |
[% IF holds_count.defined %] |
| 603 |
<span>(priority [% priority | html %])</span> |
630 |
<span>(priority [% priority | html %])</span> |
|
Lines 610-616
Link Here
|
| 610 |
[% ELSE %] |
637 |
[% ELSE %] |
| 611 |
[% IF ( ALTERNATEHOLDINGS ) %] |
638 |
[% IF ( ALTERNATEHOLDINGS ) %] |
| 612 |
[% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %] |
639 |
[% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %] |
| 613 |
<div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div> |
640 |
<div id="alternateholdings"><span class="holdings_label">Holdings:</span>[% ALTERNATEHOLDING.holding | html %]</div> |
| 614 |
[% END %] |
641 |
[% END %] |
| 615 |
[% ELSE %] |
642 |
[% ELSE %] |
| 616 |
[% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %] |
643 |
[% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %] |
|
Lines 627-637
Link Here
|
| 627 |
[% PROCESS 'shelfbrowser.inc' %] |
654 |
[% PROCESS 'shelfbrowser.inc' %] |
| 628 |
[% INCLUDE shelfbrowser tab='holdings' %] |
655 |
[% INCLUDE shelfbrowser tab='holdings' %] |
| 629 |
<br style="clear:both;" /> |
656 |
<br style="clear:both;" /> |
| 630 |
</div> <!-- / #holdings --> |
657 |
</div><!-- / #holdings --> |
| 631 |
|
658 |
|
| 632 |
[% IF (SeparateHoldings) %] |
659 |
[% IF ( SeparateHoldings ) %] |
| 633 |
<div id="otherholdings"> |
660 |
<div id="otherholdings"> |
| 634 |
[% IF (otheritemloop.size) %] |
661 |
[% IF ( otheritemloop.size ) %] |
| 635 |
[% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %] |
662 |
[% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %] |
| 636 |
[% ELSE %] |
663 |
[% ELSE %] |
| 637 |
<span>No other items.</span> |
664 |
<span>No other items.</span> |
|
Lines 643-674
Link Here
|
| 643 |
[% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] |
670 |
[% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] |
| 644 |
<div id="descriptions"> |
671 |
<div id="descriptions"> |
| 645 |
<div class="content_set"> |
672 |
<div class="content_set"> |
|
|
673 |
[% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %] |
| 674 |
<h4>Enhanced descriptions from Syndetics:</h4> |
| 675 |
<p>[% SYNDETICS_SUMMARY | html %]</p> |
| 676 |
[% END %] |
| 646 |
|
677 |
|
| 647 |
[% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %] |
678 |
[% IF ( MARCNOTES ) %] |
| 648 |
<h4>Enhanced descriptions from Syndetics:</h4> |
679 |
<div id="marcnotes"> |
| 649 |
<p>[% SYNDETICS_SUMMARY | html %]</p> |
680 |
[% FOREACH MARCNOTE IN MARCNOTES %] |
| 650 |
[% END %] |
681 |
<p> |
| 651 |
|
682 |
[% IF MARCNOTE.marcnote.match('^https?://\S+$') %] |
| 652 |
[% IF ( MARCNOTES ) %] |
683 |
<a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a> |
| 653 |
<div id="marcnotes"> |
684 |
[% ELSE %] |
| 654 |
[% FOREACH MARCNOTE IN MARCNOTES %] |
685 |
[% MARCNOTE.marcnote | html | html_line_break %] |
| 655 |
<p> |
686 |
[% END %] |
| 656 |
[% IF MARCNOTE.marcnote.match('^https?://\S+$') %] |
687 |
</p> |
| 657 |
<a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a> |
688 |
[% END %] |
| 658 |
[% ELSE %] |
689 |
</div> |
| 659 |
[% MARCNOTE.marcnote | html | html_line_break %] |
690 |
[% ELSE %] |
|
|
691 |
[% IF ( notes ) %] |
| 692 |
<p>[% notes | html %]</p> |
| 660 |
[% END %] |
693 |
[% END %] |
| 661 |
</p> |
|
|
| 662 |
[% END %] |
| 663 |
</div> |
| 664 |
[% ELSE %] |
| 665 |
[% IF ( notes ) %] |
| 666 |
<p>[% notes | html %]</p> |
| 667 |
[% END %] |
694 |
[% END %] |
| 668 |
[% END %] |
|
|
| 669 |
|
| 670 |
</div> |
695 |
</div> |
| 671 |
</div> <!-- / #descriptions --> |
696 |
</div><!-- / #descriptions --> |
| 672 |
[% END # / IF MARCNOTES || notes %] |
697 |
[% END # / IF MARCNOTES || notes %] |
| 673 |
|
698 |
|
| 674 |
[% IF ( SyndeticsEnabled ) %] |
699 |
[% IF ( SyndeticsEnabled ) %] |
|
Lines 676-686
Link Here
|
| 676 |
<div id="toc"> |
701 |
<div id="toc"> |
| 677 |
<div class="content_set"> |
702 |
<div class="content_set"> |
| 678 |
<h3>Table of contents provided by Syndetics</h3> |
703 |
<h3>Table of contents provided by Syndetics</h3> |
| 679 |
<ul> |
704 |
<ul> |
| 680 |
[% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] |
705 |
[% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] |
| 681 |
<li><b>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li> |
706 |
<li><b>[% SYNDETICS_TO.l | html %][% SYNDETICS_TO.t | html %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li> |
| 682 |
[% END %] |
707 |
[% END %] |
| 683 |
</ul> |
708 |
</ul> |
| 684 |
</div> |
709 |
</div> |
| 685 |
</div> |
710 |
</div> |
| 686 |
[% END # / IF SyndeticsTOC && SYNDETICS_TOC %] |
711 |
[% END # / IF SyndeticsTOC && SYNDETICS_TOC %] |
|
Lines 701-713
Link Here
|
| 701 |
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %] |
726 |
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %] |
| 702 |
[% IF ( SYNDETICS_REVIEW.title ) %] |
727 |
[% IF ( SYNDETICS_REVIEW.title ) %] |
| 703 |
<h4>[% SYNDETICS_REVIEW.title | html %]</h4> |
728 |
<h4>[% SYNDETICS_REVIEW.title | html %]</h4> |
| 704 |
[% FOREACH review IN SYNDETICS_REVIEW.reviews %] |
729 |
[% FOREACH review IN SYNDETICS_REVIEW.reviews %] |
| 705 |
|
730 |
[% IF ( review.content ) %] |
| 706 |
[% IF ( review.content ) %] |
731 |
[% review.content | html %] |
| 707 |
[% review.content | html %] |
|
|
| 708 |
[% END %] |
| 709 |
|
| 710 |
[% END %] |
732 |
[% END %] |
|
|
733 |
[% END %] |
| 711 |
[% END %] |
734 |
[% END %] |
| 712 |
[% END %] |
735 |
[% END %] |
| 713 |
</div> |
736 |
</div> |
|
Lines 746-783
Link Here
|
| 746 |
<h3>At library: [% subscription.branchcode | html %]</h3> |
769 |
<h3>At library: [% subscription.branchcode | html %]</h3> |
| 747 |
[% END %] |
770 |
[% END %] |
| 748 |
[% END %] |
771 |
[% END %] |
|
|
772 |
|
| 749 |
[% IF ( subscription.closed ) %] |
773 |
[% IF ( subscription.closed ) %] |
| 750 |
<p class="subscription_closed">This subscription is closed.</p> |
774 |
<p class="subscription_closed">This subscription is closed.</p> |
| 751 |
[% END %] |
775 |
[% END %] |
|
|
776 |
|
| 752 |
[% IF ( subscription.location ) %] |
777 |
[% IF ( subscription.location ) %] |
| 753 |
<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %] |
778 |
<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %] |
| 754 |
[% END %] |
779 |
[% END %] |
|
|
780 |
|
| 755 |
[% IF ( subscription.callnumber ) %] |
781 |
[% IF ( subscription.callnumber ) %] |
| 756 |
<p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p> |
782 |
<p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p> |
| 757 |
[% END %] |
783 |
[% END %] |
|
|
784 |
|
| 758 |
[% IF ( subscription.subscriptionnotes ) %] |
785 |
[% IF ( subscription.subscriptionnotes ) %] |
| 759 |
<p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p> |
786 |
<p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %]</p> |
| 760 |
[% END %] |
787 |
[% END %] |
| 761 |
<p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p> |
788 |
<p class="subscription_dates"> |
| 762 |
[% IF ( subscription.letter ) %]<span class="email_notifications"> |
789 |
Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %][% subscription.histenddate | $KohaDates %][% ELSE %] now (current)[% END %] |
| 763 |
[% IF ( loggedinusername ) %] |
790 |
</p> |
| 764 |
[% IF ( subscription.hasalert ) %] |
791 |
[% IF ( subscription.letter ) %] |
| 765 |
<span>You have subscribed to email notification on new issues. </span><a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a> |
792 |
<span class="email_notifications"> |
|
|
793 |
[% IF ( loggedinusername ) %] |
| 794 |
[% IF ( subscription.hasalert ) %] |
| 795 |
<span>You have subscribed to email notification on new issues. </span> |
| 796 |
<a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a> |
| 797 |
[% ELSE %] |
| 798 |
<a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a> |
| 799 |
[% END %] |
| 766 |
[% ELSE %] |
800 |
[% ELSE %] |
| 767 |
<a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a> |
801 |
<span>You must log in if you want to subscribe to email notification on new issues</span> |
| 768 |
[% END %] |
802 |
[% END %] |
| 769 |
[% ELSE %] |
803 |
</span> |
| 770 |
<span>You must log in if you want to subscribe to email notification on new issues</span> |
804 |
[% END %] |
| 771 |
[% END %] |
805 |
|
| 772 |
</span>[% END %] |
|
|
| 773 |
[% IF ( subscription.missinglist ) %] |
806 |
[% IF ( subscription.missinglist ) %] |
| 774 |
<p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p> |
807 |
<p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %]</p> |
| 775 |
[% END %] |
808 |
[% END %] |
|
|
809 |
|
| 776 |
[% IF ( subscription.opacnote ) %] |
810 |
[% IF ( subscription.opacnote ) %] |
| 777 |
<p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p> |
811 |
<p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p> |
| 778 |
[% END %] |
812 |
[% END %] |
|
|
813 |
|
| 779 |
[% IF ( subscription.latestserials ) %] |
814 |
[% IF ( subscription.latestserials ) %] |
| 780 |
<p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p> |
815 |
<p class="subscription_latestissues">The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p> |
| 781 |
<table class="table table-bordered table-striped" id="subscriptionst"> |
816 |
<table class="table table-bordered table-striped" id="subscriptionst"> |
| 782 |
<thead> |
817 |
<thead> |
| 783 |
<tr> |
818 |
<tr> |
|
Lines 789-822
Link Here
|
| 789 |
</tr> |
824 |
</tr> |
| 790 |
</thead> |
825 |
</thead> |
| 791 |
<tbody> |
826 |
<tbody> |
| 792 |
[% FOREACH latestserial IN subscription.latestserials %] |
827 |
[% FOREACH latestserial IN subscription.latestserials %] |
| 793 |
<tr> |
828 |
<tr> |
| 794 |
<td class="serialseq">[% latestserial.serialseq | html %]</td> |
829 |
<td class="serialseq">[% latestserial.serialseq | html %]</td> |
| 795 |
<td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> |
830 |
<td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> |
| 796 |
<td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> |
831 |
<td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> |
| 797 |
<td class="serial_status"> |
832 |
<td class="serial_status"> |
| 798 |
[% IF (latestserial.status1 ) %]<span>Expected</span>[% END %] |
833 |
[% IF (latestserial.status1 ) %]<span>Expected</span>[% END %] |
| 799 |
[% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %] |
834 |
[% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %] |
| 800 |
[% IF (latestserial.status3 ) %]<span>Late</span>[% END %] |
835 |
[% IF (latestserial.status3 ) %]<span>Late</span>[% END %] |
| 801 |
[% IF (latestserial.status4 ) %]<span>Missing</span>[% END %] |
836 |
[% IF (latestserial.status4 ) %]<span>Missing</span>[% END %] |
| 802 |
[% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %] |
837 |
[% IF ( latestserial.status41 ) %]<span>Missing (never received )</span>[% END %] |
| 803 |
[% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %] |
838 |
[% IF ( latestserial.status42 ) %]<span>Missing (sold out )</span>[% END %] |
| 804 |
[% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %] |
839 |
[% IF ( latestserial.status43 ) %]<span>Missing (damaged )</span>[% END %] |
| 805 |
[% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %] |
840 |
[% IF ( latestserial.status44 ) %]<span>Missing (lost )</span>[% END %] |
| 806 |
[% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %] |
841 |
[% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %] |
| 807 |
[% IF (latestserial.status6 ) %]<span>Delete</span>[% END %] |
842 |
[% IF (latestserial.status6 ) %]<span>Delete</span>[% END %] |
| 808 |
[% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %] |
843 |
[% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %] |
| 809 |
[% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %] |
844 |
[% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %] |
| 810 |
</td> |
845 |
</td> |
| 811 |
<td class="serial_notes">[% latestserial.notes | html %]</td> |
846 |
<td class="serial_notes">[% latestserial.notes | html %]</td> |
| 812 |
</tr> |
847 |
</tr> |
| 813 |
[% END # / FOREACH latestserials %] |
848 |
[% END # / FOREACH latestserials %] |
| 814 |
</tbody> |
849 |
</tbody> |
| 815 |
</table> |
850 |
</table> |
| 816 |
[% END # / IF subscription.latestserials %] |
851 |
[% END # / IF subscription.latestserials %] |
| 817 |
[% END # / FOREACH subscriptions %] |
852 |
[% END # / FOREACH subscriptions %] |
| 818 |
<p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p> |
853 |
<p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p> |
| 819 |
</div> <!-- / #subscriptions --> |
854 |
</div><!-- / #subscriptions --> |
| 820 |
[% END # IF subscriptionsnumber %] |
855 |
[% END # IF subscriptionsnumber %] |
| 821 |
|
856 |
|
| 822 |
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] |
857 |
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] |
|
Lines 825-982
Link Here
|
| 825 |
<div class="content_set"> |
860 |
<div class="content_set"> |
| 826 |
<!-- Uncommenting this span makes the font smaller in the tab for LTFL --> |
861 |
<!-- Uncommenting this span makes the font smaller in the tab for LTFL --> |
| 827 |
<!-- but breaks Xhtml validation --> |
862 |
<!-- but breaks Xhtml validation --> |
| 828 |
<!-- <span class="results_summary">--> |
863 |
<!-- <span class="results_summary"> --> |
| 829 |
<div id="ltfl_related"></div> |
864 |
<div id="ltfl_related"></div> |
| 830 |
<div id="ltfl_similars"></div> |
865 |
<div id="ltfl_similars"></div> |
| 831 |
<!-- </span>--> |
866 |
<!-- </span>--> |
| 832 |
</div> |
867 |
</div> |
| 833 |
</div> |
868 |
</div> |
| 834 |
<div id="LTFLTagBrowse"> |
869 |
<div id="LTFLTagBrowse"> |
| 835 |
<div class="content_set"> |
870 |
<div class="content_set"> |
| 836 |
<!-- <span class="results_summary"> --> |
871 |
<!-- <span class="results_summary"> --> |
| 837 |
<div id="ltfl_tagbrowse" class="ltfl"></div> |
872 |
<div id="ltfl_tagbrowse" class="ltfl"></div> |
| 838 |
<!-- </span> --> |
873 |
<!-- </span> --> |
| 839 |
</div> |
874 |
</div> |
| 840 |
</div> |
875 |
</div> |
| 841 |
[% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %] |
876 |
[% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %] |
| 842 |
|
877 |
|
| 843 |
[% IF Koha.Preference( 'reviewson' ) == 1 %] |
878 |
[% IF Koha.Preference( 'reviewson' ) == 1 %] |
| 844 |
<div id="comments"> |
879 |
<div id="comments"> |
| 845 |
<div id="newcomment"></div> |
880 |
<div id="newcomment"></div> |
| 846 |
[% IF ( reviews ) %] |
881 |
[% IF ( reviews ) %] |
| 847 |
[% FOREACH review IN reviews %] |
882 |
[% FOREACH review IN reviews %] |
| 848 |
[% IF borrowernumber && review.borrowernumber == borrowernumber %] |
883 |
[% IF borrowernumber && review.borrowernumber == borrowernumber %] |
| 849 |
<div class="commentline yours" id="c[% review.reviewid | html %]"> |
884 |
<div class="commentline yours" id="c[% review.reviewid | html %]"> |
|
|
885 |
[% IF ( review.avatarurl ) %] |
| 886 |
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> |
| 887 |
[% END %] |
| 888 |
|
| 889 |
[% IF review.approved %] |
| 890 |
<h5>Your comment</h5> |
| 891 |
[% ELSE %] |
| 892 |
<h5>Your comment (preview, pending approval)</h5> |
| 893 |
[% END %] |
| 894 |
<small>[% review.datereviewed | $KohaDates %]</small> |
| 895 |
<p> |
| 896 |
[% FILTER html_break %] |
| 897 |
[% review.review | html %] |
| 898 |
[% END %] |
| 899 |
<a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a> |
| 900 |
</p> |
| 901 |
</div> |
| 902 |
[% ELSE %] |
| 903 |
<div class="commentline"> |
| 904 |
[% IF ( ShowReviewer != "none" && review.patron) %] |
| 850 |
[% IF ( review.avatarurl ) %] |
905 |
[% IF ( review.avatarurl ) %] |
| 851 |
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> |
906 |
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> |
| 852 |
[% END %] |
907 |
[% END %] |
| 853 |
[% IF review.approved %] |
908 |
|
| 854 |
<h5>Your comment</h5> |
909 |
[% SWITCH ShowReviewer %] |
| 855 |
[% ELSE %] |
910 |
[% CASE 'full' %] |
| 856 |
<h5>Your comment (preview, pending approval)</h5> |
911 |
<h5>Comment by [% review.patron.title | html %][% review.patron.firstname | html %][% review.patron.surname | html %]</h5> |
|
|
912 |
[% CASE 'first' %] |
| 913 |
<h5>Comment by [% review.patron.firstname | html %]</h5> |
| 914 |
[% CASE 'surname' %] |
| 915 |
<h5>Comment by [% review.patron.surname | html %]</h5> |
| 916 |
[% CASE 'firstandinitial' %] |
| 917 |
<h5>Comment by [% review.patron.firstname | html %][% review.patron.surname|truncate(2, '.') | html %]</h5> |
| 918 |
[% CASE 'username' %] |
| 919 |
<h5>Comment by [% review.patron.userid | html %]</h5> |
| 857 |
[% END %] |
920 |
[% END %] |
|
|
921 |
|
| 858 |
<small>[% review.datereviewed | $KohaDates %]</small> |
922 |
<small>[% review.datereviewed | $KohaDates %]</small> |
| 859 |
<p> |
923 |
[% ELSE %] |
| 860 |
[% FILTER html_break %] |
924 |
<h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> |
| 861 |
[% review.review | html %] |
925 |
[% END # / IF ShowReviewer != "none" && review.patron %] |
| 862 |
[% END %] |
926 |
<p> |
| 863 |
<a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a> |
927 |
[% FILTER html_break %] |
| 864 |
</p> |
928 |
[% review.review | html %] |
| 865 |
</div> |
929 |
[% END %] |
| 866 |
[% ELSE %] |
930 |
</p> |
| 867 |
<div class="commentline"> |
931 |
</div><!-- / .commentline --> |
| 868 |
[% IF ( ShowReviewer != "none" && review.patron) %] |
932 |
[% END %] |
| 869 |
|
933 |
[% END # / FOREACH reviews %] |
| 870 |
[% IF ( review.avatarurl ) %] |
934 |
[% ELSE %] |
| 871 |
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> |
935 |
<p>There are no comments for this item.</p> |
| 872 |
[% END %] |
936 |
[% END # / IF reviews %] |
| 873 |
[% SWITCH ShowReviewer %] |
937 |
|
| 874 |
[% CASE 'full' %] |
938 |
[% IF ( loggedinusername ) %] |
| 875 |
<h5>Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h5> |
939 |
[% UNLESS ( loggedincommenter ) %] |
| 876 |
[% CASE 'first' %] |
940 |
<div id="addcomment"> |
| 877 |
<h5>Comment by [% review.patron.firstname | html %]</h5> |
941 |
<a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">Post your comments on this item.</a> |
| 878 |
[% CASE 'surname' %] |
942 |
</div> |
| 879 |
<h5>Comment by [% review.patron.surname | html %]</h5> |
943 |
[% END %] |
| 880 |
[% CASE 'firstandinitial' %] |
944 |
[% ELSE %] |
| 881 |
<h5>Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h5> |
945 |
<div id="addcomment"> |
| 882 |
[% CASE 'username' %] |
946 |
<a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment. |
| 883 |
<h5>Comment by [% review.patron.userid | html %]</h5> |
947 |
</div> |
| 884 |
[% END %] |
948 |
[% END # / IF loggedinusername %] |
| 885 |
|
949 |
</div><!-- / #comments --> |
| 886 |
<small>[% review.datereviewed | $KohaDates %]</small> |
950 |
[% END # / IF reviewson %] |
| 887 |
[% ELSE %] |
951 |
|
| 888 |
<h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> |
952 |
[% IF ( OPACFRBRizeEditions && XISBNS ) %] |
| 889 |
[% END # / IF ShowReviewer != "none" && review.patron %] |
953 |
<div id="editions"> |
| 890 |
<p> |
954 |
<h4>Other editions of this work</h4> |
| 891 |
[% FILTER html_break %] |
955 |
<table class="table table-bordered table-striped"> |
| 892 |
[% review.review | html %] |
956 |
[% FOREACH XISBN IN XISBNS %] |
| 893 |
[% END %] |
957 |
<tr> |
| 894 |
</p> |
958 |
<td> |
| 895 |
</div> <!-- / .commentline --> |
959 |
[% IF ( OPACAmazonCoverImages ) %] |
|
|
960 |
<img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" /> |
| 896 |
[% END %] |
961 |
[% END %] |
| 897 |
[% END # / FOREACH reviews %] |
|
|
| 898 |
[% ELSE %] |
| 899 |
<p>There are no comments for this item.</p> |
| 900 |
[% END # / IF reviews %] |
| 901 |
|
962 |
|
| 902 |
[% IF ( loggedinusername ) %] |
963 |
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] |
| 903 |
[% UNLESS ( loggedincommenter ) %] |
964 |
[% IF ( XISBN.content_identifier_exists ) %] |
| 904 |
<div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;"> |
965 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" /> |
| 905 |
Post your comments on this item. |
966 |
[% ELSE %] |
| 906 |
</a></div> |
967 |
<span class="no-image">No cover image available</span> |
| 907 |
[% END %] |
968 |
[% END # / IF XISBN.content_identifier_exists %] |
| 908 |
[% ELSE %] |
969 |
[% END # / IF SyndeticsEnabled && SyndeticsCoverImages %] |
| 909 |
<div id="addcomment"><a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div> |
970 |
</td> |
| 910 |
[% END # / IF loggedinusername %] |
|
|
| 911 |
</div> <!-- / #comments --> |
| 912 |
[% END # / IF reviewson %] |
| 913 |
|
971 |
|
| 914 |
[% IF ( OPACFRBRizeEditions && XISBNS ) %] |
972 |
[% UNLESS ( item_level_itypes ) %] |
| 915 |
<div id="editions"> |
973 |
<td>[% XISBN.description | html %]</td> |
| 916 |
<h4>Other editions of this work</h4> |
974 |
[% END %] |
| 917 |
<table class="table table-bordered table-striped"> |
975 |
<td> |
| 918 |
[% FOREACH XISBN IN XISBNS %] |
976 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> |
| 919 |
<tr> |
977 |
[% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %] |
| 920 |
<td> |
978 |
[% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %] |
| 921 |
[% IF ( OPACAmazonCoverImages ) %] |
|
|
| 922 |
<img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" /> |
| 923 |
[% END %] |
| 924 |
|
979 |
|
| 925 |
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] |
980 |
[% IF ( XISBN.publishercode ) %] |
| 926 |
[% IF ( XISBN.content_identifier_exists ) %] |
981 |
<p>[% XISBN.publishercode | html %] |
| 927 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" /> |
982 |
[% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] |
| 928 |
[% ELSE %] |
983 |
|
| 929 |
<span class="no-image">No cover image available</span> |
984 |
[% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %] |
| 930 |
[% END # / IF XISBN.content_identifier_exists %] |
|
|
| 931 |
[% END # / IF SyndeticsEnabled && SyndeticsCoverImages %] |
| 932 |
</td> |
| 933 |
|
985 |
|
| 934 |
[% UNLESS ( item_level_itypes ) %] |
986 |
[% IF ( XISBN.pages ) %][% XISBN.pages | html %][% XISBN.illus | html %][% XISBN.size | html %][% END %] |
| 935 |
<td>[% XISBN.description | html %]</td> |
987 |
</p> |
| 936 |
[% END %] |
988 |
[% END %] |
| 937 |
<td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> |
989 |
</td> |
| 938 |
[% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %] |
990 |
</tr> |
| 939 |
[% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %] |
991 |
[% END # / FOREACH XISBNS %] |
| 940 |
[% IF ( XISBN.publishercode ) %] |
992 |
</table> |
| 941 |
<p>[% XISBN.publishercode | html %] |
993 |
</div><!-- / #editions --> |
| 942 |
[% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] |
994 |
[% END # / IF OPACFRBRizeEditions && XISBNS %] |
| 943 |
[% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %] |
995 |
|
| 944 |
[% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %] |
996 |
[% IF ( HTML5MediaEnabled ) %] |
| 945 |
</p> |
997 |
<div id="html5media"> |
| 946 |
[% END %] |
998 |
[% FOREACH HTML5MediaSet IN HTML5MediaSets %] |
| 947 |
</td> |
|
|
| 948 |
</tr> |
| 949 |
[% END # / FOREACH XISBNS %] |
| 950 |
</table> |
| 951 |
</div> <!-- / #editions --> |
| 952 |
[% END # / IF OPACFRBRizeEditions && XISBNS %] |
| 953 |
|
| 954 |
[% IF ( HTML5MediaEnabled ) %] |
| 955 |
<div id="html5media"> |
| 956 |
[% FOREACH HTML5MediaSet IN HTML5MediaSets %] |
| 957 |
<p> |
999 |
<p> |
| 958 |
[% SET ctrl_preload = ' controls preload=none' #translatability %] |
1000 |
[% SET ctrl_preload = ' controls preload=none' #translatability %] |
| 959 |
<[% HTML5MediaParent _ ctrl_preload | html %] > |
1001 |
<[% HTML5MediaParent _ ctrl_preload | html %] > |
| 960 |
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> |
1002 |
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> |
| 961 |
<span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span> |
1003 |
<span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span> |
| 962 |
</[% HTML5MediaParent | html %]> |
1004 |
</[% HTML5MediaParent | html %]> |
| 963 |
</p> |
1005 |
</p> |
| 964 |
[% END %] |
1006 |
[% END %] |
| 965 |
</div> |
1007 |
</div> |
| 966 |
[% END # / IF HTML5MediaEnabled %] |
1008 |
[% END # / IF HTML5MediaEnabled %] |
| 967 |
|
1009 |
|
| 968 |
[% IF ( OPACLocalCoverImages && localimages.size ) %] |
1010 |
[% IF ( OPACLocalCoverImages && localimages.size ) %] |
| 969 |
<div id="images"> |
1011 |
<div id="images"> |
| 970 |
<p>Click on an image to view it in the image viewer</p> |
1012 |
<p>Click on an image to view it in the image viewer</p> |
| 971 |
[% FOREACH image IN localimages %] |
1013 |
[% FOREACH image IN localimages %] |
| 972 |
[% IF image %] |
1014 |
[% IF image %] |
| 973 |
<a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a> |
1015 |
<a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a> |
| 974 |
[% END %] |
|
|
| 975 |
[% END %] |
1016 |
[% END %] |
| 976 |
</div><!-- / #images --> |
1017 |
[% END %] |
| 977 |
[% END # / IF OPACLocalCoverImages && localimages.size %] |
1018 |
</div><!-- / #images --> |
| 978 |
|
1019 |
[% END # / IF OPACLocalCoverImages && localimages.size %] |
| 979 |
</div> <!-- / #bibliodescriptions --> |
1020 |
</div><!-- / #bibliodescriptions --> |
| 980 |
|
1021 |
|
| 981 |
[% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %] |
1022 |
[% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %] |
| 982 |
<div id="NovelistSelect"> |
1023 |
<div id="NovelistSelect"> |
|
Lines 1000-1013
Link Here
|
| 1000 |
</div> |
1041 |
</div> |
| 1001 |
[% END # / IF Babeltheque %] |
1042 |
[% END # / IF Babeltheque %] |
| 1002 |
|
1043 |
|
| 1003 |
[%# Following on one line due to translation issues %] |
1044 |
[% # Following on one line due to translation issues %] |
| 1004 |
[% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %] |
1045 |
[% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn, lccn => lccn, normalized_oclc => normalized_oclc } %] |
| 1005 |
|
|
|
| 1006 |
</div> <!-- /.span9 --> |
| 1007 |
|
| 1008 |
<div class="span3"> |
| 1009 |
<div id="ulactioncontainer"> |
| 1010 |
|
1046 |
|
|
|
1047 |
</div><!-- /.span9 --> |
| 1048 |
<div class="span3"> |
| 1049 |
<div id="ulactioncontainer"> |
| 1011 |
[% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] |
1050 |
[% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] |
| 1012 |
<div class="nav_results"> |
1051 |
<div class="nav_results"> |
| 1013 |
<div class="l_Results" style="display:none;"> |
1052 |
<div class="l_Results" style="display:none;"> |
|
Lines 1023-1029
Link Here
|
| 1023 |
[% IF ( previousBiblionumber ) %] |
1062 |
[% IF ( previousBiblionumber ) %] |
| 1024 |
<a href="opac-detail.pl?biblionumber=[% previousBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle | html %][% ELSE %]previous biblio[% END %]"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Previous</a> |
1063 |
<a href="opac-detail.pl?biblionumber=[% previousBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle | html %][% ELSE %]previous biblio[% END %]"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Previous</a> |
| 1025 |
[% ELSE %] |
1064 |
[% ELSE %] |
| 1026 |
<span>Previous</span> |
1065 |
<span><i class="fa fa-bars"></i> Browse results</span> |
| 1027 |
[% END %] |
1066 |
[% END %] |
| 1028 |
</li> |
1067 |
</li> |
| 1029 |
[%# busc is already URI encoded %] |
1068 |
[%# busc is already URI encoded %] |
|
Lines 1059-1065
Link Here
|
| 1059 |
<li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li> |
1098 |
<li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li> |
| 1060 |
[% END %] |
1099 |
[% END %] |
| 1061 |
[% END %] |
1100 |
[% END %] |
| 1062 |
</ul> |
1101 |
</li> |
|
|
1102 |
[%# busc is already URI encoded %] |
| 1103 |
<li class="back_results"><a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a></li> |
| 1104 |
<li class="right_results"> |
| 1105 |
[% IF ( nextBiblionumber ) %] |
| 1106 |
<a href="opac-detail.pl?biblionumber=[% nextBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle | html %][% ELSE %]next biblio[% END %]">Next <i class="fa fa-angle-double-right"></i></a> |
| 1107 |
[% ELSE %] |
| 1108 |
<span>Next</span> |
| 1109 |
[% END %] |
| 1110 |
</li> |
| 1111 |
</ul> |
| 1112 |
[% IF ( listResults ) %] |
| 1113 |
<div class="results-pagination"> |
| 1114 |
<div class="nav_pages"> |
| 1115 |
<ul id="listResults"> |
| 1116 |
[% FOREACH listitem IN listResults %] |
| 1117 |
[% IF ( listitem.biblionumber == biblionumber ) %] |
| 1118 |
<li class="li_pag_[% loop.count | html %] highlight"> |
| 1119 |
[% ELSE %] |
| 1120 |
<li class="li_pag_[% loop.count | html %]"> |
| 1121 |
[% END %] |
| 1122 |
<a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[% listitem.title | html %]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a></li> |
| 1123 |
[% END %] |
| 1124 |
</ul> |
| 1125 |
</div> |
| 1126 |
<div class="pagination_list"> |
| 1127 |
<ul id="ul_pagination_lists"> |
| 1128 |
[% FOREACH listitem IN listResults %] |
| 1129 |
[% IF ( listitem.biblionumber == biblionumber ) %] |
| 1130 |
<li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail"><span class="li_pag_index"><i class="fa fa-arrow-left"></i>[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br>[% IF ( author ) %]by [% author | html %][% END %]</li> |
| 1131 |
[% ELSE %] |
| 1132 |
<li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br>[% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li> |
| 1133 |
[% END %] |
| 1134 |
[% END %] |
| 1135 |
</ul> |
| 1136 |
</div> |
| 1137 |
</div> |
| 1138 |
[% END %] |
| 1139 |
<div class="pagination_footer"> |
| 1140 |
<a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a> |
| 1063 |
</div> |
1141 |
</div> |
| 1064 |
</div> |
1142 |
</div> |
| 1065 |
[% END %] |
1143 |
[% END %] |
|
Lines 1069-1089
Link Here
|
| 1069 |
</div> |
1147 |
</div> |
| 1070 |
[% END # / IF OpacBrowseResults && busc %] |
1148 |
[% END # / IF OpacBrowseResults && busc %] |
| 1071 |
|
1149 |
|
| 1072 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
1150 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
| 1073 |
|
1151 |
|
| 1074 |
[% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %] |
1152 |
[% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %] |
| 1075 |
<div id="NovelistSelect"> |
1153 |
<div id="NovelistSelect"> |
| 1076 |
<h4>Novelist Select</h4> |
1154 |
<h4>Novelist Select</h4> |
| 1077 |
<div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div> |
1155 |
<div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div> |
| 1078 |
</div> |
1156 |
</div> |
| 1079 |
[% END %] |
1157 |
[% END %] |
| 1080 |
|
1158 |
|
| 1081 |
[% IF ( Babeltheque ) %] |
1159 |
[% IF ( Babeltheque ) %] |
| 1082 |
<div class="babeltheque_adds"> |
1160 |
<div class="babeltheque_adds"> |
| 1083 |
<div id="BW_critiques_aj"></div> |
1161 |
<div id="BW_critiques_aj"></div> |
| 1084 |
<div id="BW_citations_aj"></div> |
1162 |
<div id="BW_citations_aj"></div> |
| 1085 |
</div> |
1163 |
</div> |
| 1086 |
[% END %] |
1164 |
[% END %] |
| 1087 |
|
1165 |
|
| 1088 |
[% IF ( Koha.Preference('SocialNetworks') ) %] |
1166 |
[% IF ( Koha.Preference('SocialNetworks') ) %] |
| 1089 |
<div id="social_networks" class="clearfix"> |
1167 |
<div id="social_networks" class="clearfix"> |
|
Lines 1113-1128
Link Here
|
| 1113 |
<a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript> |
1191 |
<a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript> |
| 1114 |
[% END %] |
1192 |
[% END %] |
| 1115 |
|
1193 |
|
| 1116 |
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] |
1194 |
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] |
| 1117 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |
1195 |
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> |
| 1118 |
[% END %] |
1196 |
[% END %] |
| 1119 |
|
1197 |
|
| 1120 |
[% IF ( Babeltheque ) %] |
1198 |
[% IF ( Babeltheque ) %] |
| 1121 |
<script src="[% Babeltheque_url_js | html %]"></script> |
1199 |
<script src="[% Babeltheque_url_js | html %]"></script> |
| 1122 |
[% END %] |
1200 |
[% END %] |
| 1123 |
</div> <!-- / .row-fluid --> |
1201 |
</div><!-- / .row-fluid --> |
| 1124 |
</div> <!-- / .container-fluid --> |
1202 |
</div><!-- / .container-fluid --> |
| 1125 |
</div> <!-- / .main --> |
1203 |
</div><!-- / .main --> |
| 1126 |
|
1204 |
|
| 1127 |
[% INCLUDE 'opac-bottom.inc' %] |
1205 |
[% INCLUDE 'opac-bottom.inc' %] |
| 1128 |
|
1206 |
|
|
Lines 1132-1166
Link Here
|
| 1132 |
<table class="table table-bordered table-striped" id="[% table_id | html %]"> |
1210 |
<table class="table table-bordered table-striped" id="[% table_id | html %]"> |
| 1133 |
<thead> |
1211 |
<thead> |
| 1134 |
<tr> |
1212 |
<tr> |
| 1135 |
[% IF ( item_level_itypes ) %] |
1213 |
[% IF ( item_level_itypes ) %] |
| 1136 |
<th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %] |
1214 |
<th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th> |
| 1137 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |
1215 |
[% END %] |
| 1138 |
<th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %] |
1216 |
|
| 1139 |
[% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] |
1217 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |
| 1140 |
<th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %] |
1218 |
<th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th> |
| 1141 |
[% IF ( itemdata_ccode ) %] |
1219 |
[% END %] |
| 1142 |
<th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %] |
1220 |
|
| 1143 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %] |
1221 |
[% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] |
| 1144 |
<th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %] |
1222 |
<th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th> |
| 1145 |
<th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th> |
1223 |
[% END %] |
| 1146 |
[% IF ( itemdata_enumchron ) %] |
1224 |
|
| 1147 |
<th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %] |
1225 |
[% IF ( itemdata_ccode ) %] |
| 1148 |
[% IF ( itemdata_uri ) %] |
1226 |
<th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th> |
| 1149 |
<th id="item_url" data-colname="item_url" class="url">URL</th>[% END %] |
1227 |
[% END %] |
| 1150 |
[% IF ( itemdata_copynumber ) %] |
1228 |
|
| 1151 |
<th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %] |
1229 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %] |
| 1152 |
<th id="item_status" data-colname="item_status" class="status">Status</th> |
1230 |
<th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th> |
| 1153 |
[% IF ( itemdata_itemnotes ) %] |
1231 |
[% END %] |
| 1154 |
<th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %] |
1232 |
<th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th> |
| 1155 |
<th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th> |
1233 |
[% IF ( itemdata_enumchron ) %] |
| 1156 |
<th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th> |
1234 |
<th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th> |
| 1157 |
[% IF holds_count.defined %] |
1235 |
[% END %] |
| 1158 |
<th id="item_holds" data-colname="item_holds">Item holds</th> |
1236 |
|
| 1159 |
[% ELSIF show_priority %] |
1237 |
[% IF ( itemdata_uri ) %] |
| 1160 |
<th id="item_priority" data-colname="item_priority">Item hold queue priority</th> |
1238 |
<th id="item_url" data-colname="item_url" class="url">URL</th> |
| 1161 |
[% END %] |
1239 |
[% END %] |
| 1162 |
[% IF ( ShowCourseReservesHeader ) %] |
1240 |
|
| 1163 |
<th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %] |
1241 |
[% IF ( itemdata_copynumber ) %] |
|
|
1242 |
<th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th> |
| 1243 |
[% END %] |
| 1244 |
<th id="item_status" data-colname="item_status" class="status">Status</th> |
| 1245 |
[% IF ( itemdata_itemnotes ) %] |
| 1246 |
<th id="item_notes" data-colname="item_notes" class="notes">Notes</th> |
| 1247 |
[% END %] |
| 1248 |
<th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th> |
| 1249 |
<th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th> |
| 1250 |
[% IF holds_count.defined %] |
| 1251 |
<th id="item_holds" data-colname="item_holds">Item holds</th> |
| 1252 |
[% ELSIF show_priority %] |
| 1253 |
<th id="item_priority" data-colname="item_priority">Item hold queue priority</th> |
| 1254 |
[% END %] |
| 1255 |
|
| 1256 |
[% IF ( ShowCourseReservesHeader ) %] |
| 1257 |
<th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th> |
| 1258 |
[% END %] |
| 1164 |
</tr> |
1259 |
</tr> |
| 1165 |
</thead> |
1260 |
</thead> |
| 1166 |
<tbody> |
1261 |
<tbody> |
|
Lines 1170-1175
Link Here
|
| 1170 |
[% ELSE %] |
1265 |
[% ELSE %] |
| 1171 |
<tr vocab="http://schema.org/" typeof="Offer"> |
1266 |
<tr vocab="http://schema.org/" typeof="Offer"> |
| 1172 |
[% END %] |
1267 |
[% END %] |
|
|
1268 |
|
| 1173 |
[% IF ( item_level_itypes ) %] |
1269 |
[% IF ( item_level_itypes ) %] |
| 1174 |
<td class="itype"> |
1270 |
<td class="itype"> |
| 1175 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
1271 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
|
Lines 1180-1185
Link Here
|
| 1180 |
[% ITEM_RESULT.description | html %] |
1276 |
[% ITEM_RESULT.description | html %] |
| 1181 |
</td> |
1277 |
</td> |
| 1182 |
[% END %] |
1278 |
[% END %] |
|
|
1279 |
|
| 1183 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |
1280 |
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] |
| 1184 |
<td class="location" property="seller"> |
1281 |
<td class="location" property="seller"> |
| 1185 |
<link property="itemOffered" href="#record" /> |
1282 |
<link property="itemOffered" href="#record" /> |
|
Lines 1192-1202
Link Here
|
| 1192 |
[% END %] |
1289 |
[% END %] |
| 1193 |
</span> |
1290 |
</span> |
| 1194 |
<div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div> |
1291 |
<div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div> |
| 1195 |
|
|
|
| 1196 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] |
1292 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] |
| 1197 |
<span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> |
1293 |
<span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> |
| 1198 |
[% END %] |
1294 |
[% END %] |
| 1199 |
|
|
|
| 1200 |
</td> |
1295 |
</td> |
| 1201 |
[% END %] |
1296 |
[% END %] |
| 1202 |
|
1297 |
|
|
Lines 1217-1227
Link Here
|
| 1217 |
[% END %] |
1312 |
[% END %] |
| 1218 |
</span> |
1313 |
</span> |
| 1219 |
<div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div> |
1314 |
<div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div> |
| 1220 |
|
|
|
| 1221 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] |
1315 |
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] |
| 1222 |
<span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> |
1316 |
<span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> |
| 1223 |
[% END %] |
1317 |
[% END %] |
| 1224 |
|
|
|
| 1225 |
</td> |
1318 |
</td> |
| 1226 |
[% END %] |
1319 |
[% END %] |
| 1227 |
|
1320 |
|
|
Lines 1256-1288
Link Here
|
| 1256 |
[% ELSIF ITEM_RESULT.enumchron %] |
1349 |
[% ELSIF ITEM_RESULT.enumchron %] |
| 1257 |
<span class="enum">[% ITEM_RESULT.enumchron | html %]</span> |
1350 |
<span class="enum">[% ITEM_RESULT.enumchron | html %]</span> |
| 1258 |
[% ELSIF ITEM_RESULT.serialseq %] |
1351 |
[% ELSIF ITEM_RESULT.serialseq %] |
| 1259 |
<span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span> |
1352 |
<span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span> |
| 1260 |
[% END %] |
1353 |
[% END %] |
|
|
1354 |
|
| 1261 |
[% IF ( ITEM_RESULT.publisheddate ) %] |
1355 |
[% IF ( ITEM_RESULT.publisheddate ) %] |
| 1262 |
<span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span> |
1356 |
<span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span> |
| 1263 |
[% END %] |
1357 |
[% END %] |
| 1264 |
</td> |
1358 |
</td> |
| 1265 |
[% END %] |
1359 |
[% END %] |
|
|
1360 |
|
| 1266 |
[% IF ( itemdata_uri ) %] |
1361 |
[% IF ( itemdata_uri ) %] |
| 1267 |
<td class="url"> |
1362 |
<td class="url"> |
| 1268 |
[% IF ITEM_RESULT.uri %] |
1363 |
[% IF ITEM_RESULT.uri %] |
| 1269 |
[%# Initialize three helper vars %] |
1364 |
[%# Initialize three helper vars %] |
| 1270 |
[% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %] |
1365 |
[% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %] |
| 1271 |
[% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %] |
1366 |
[% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %] |
| 1272 |
|
1367 |
|
| 1273 |
[%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %] |
1368 |
[%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %] |
| 1274 |
[% IF ITEM_RESULT.uri.split(' \| ').size > 1 %] |
1369 |
[% IF ITEM_RESULT.uri.split(' \| ').size > 1 %] |
| 1275 |
[% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %] |
1370 |
[% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %] |
| 1276 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = uri %][% END %] |
1371 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %][% ELSE %][% SET href_attr = uri %][% END %] |
| 1277 |
<a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br> |
1372 |
<a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br> |
|
|
1373 |
[% END %] |
| 1374 |
[% ELSE %] |
| 1375 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ ITEM_RESULT.uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %][% ELSE %][% SET href_attr = ITEM_RESULT.uri %][% END %] |
| 1376 |
<a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> |
| 1278 |
[% END %] |
1377 |
[% END %] |
| 1279 |
[% ELSE %] |
|
|
| 1280 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ ITEM_RESULT.uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = ITEM_RESULT.uri %][% END %] |
| 1281 |
<a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> |
| 1282 |
[% END %] |
1378 |
[% END %] |
| 1283 |
[% END %] |
|
|
| 1284 |
</td> |
1379 |
</td> |
| 1285 |
[% END %] |
1380 |
[% END %] |
|
|
1381 |
|
| 1286 |
[% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %] |
1382 |
[% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %] |
| 1287 |
<td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> |
1383 |
<td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> |
| 1288 |
[% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %] |
1384 |
[% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %] |
|
Lines 1290-1296
Link Here
|
| 1290 |
<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td> |
1386 |
<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td> |
| 1291 |
[% IF holds_count.defined || show_priority %] |
1387 |
[% IF holds_count.defined || show_priority %] |
| 1292 |
<td class="holds_count"> |
1388 |
<td class="holds_count"> |
| 1293 |
[% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %] |
1389 |
[% IF holds_count.defined %][% ITEM_RESULT.holds_count | html %][% END %] |
|
|
1390 |
|
| 1294 |
[% IF ITEM_RESULT.priority %] |
1391 |
[% IF ITEM_RESULT.priority %] |
| 1295 |
[% IF holds_count.defined %] |
1392 |
[% IF holds_count.defined %] |
| 1296 |
<span>(priority [% ITEM_RESULT.priority | html %])</span> |
1393 |
<span>(priority [% ITEM_RESULT.priority | html %])</span> |
|
Lines 1300-1305
Link Here
|
| 1300 |
[% END %] |
1397 |
[% END %] |
| 1301 |
</td> |
1398 |
</td> |
| 1302 |
[% END %] |
1399 |
[% END %] |
|
|
1400 |
|
| 1303 |
[% IF ShowCourseReservesHeader %] |
1401 |
[% IF ShowCourseReservesHeader %] |
| 1304 |
<td> |
1402 |
<td> |
| 1305 |
[% IF ITEM_RESULT.course_reserves %] |
1403 |
[% IF ITEM_RESULT.course_reserves %] |
|
Lines 1308-1323
Link Here
|
| 1308 |
<p> |
1406 |
<p> |
| 1309 |
<a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]"> |
1407 |
<a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]"> |
| 1310 |
[% r.course.course_name | html %] |
1408 |
[% r.course.course_name | html %] |
| 1311 |
<!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]--> |
1409 |
<!--[% IF r.course.course_number %][% r.course.course_number | html %][% END %]--> |
| 1312 |
[% IF r.course.section %] [% r.course.section | html %] [% END %] |
1410 |
[% IF r.course.section %][% r.course.section | html %][% END %] |
| 1313 |
[% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %] |
1411 |
|
|
|
1412 |
[% IF r.course.term %][% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %][% END %] |
| 1314 |
</a> |
1413 |
</a> |
| 1315 |
</p> |
1414 |
</p> |
| 1316 |
[% END %] |
1415 |
[% END %] |
| 1317 |
[% END %] |
1416 |
[% END %] |
| 1318 |
[% END %] |
1417 |
[% END %] |
| 1319 |
</td> |
1418 |
</td> |
| 1320 |
[% END # /IF ShowCourseReservesHeader %] |
1419 |
[% END # / IF ShowCourseReservesHeader %] |
| 1321 |
</tr> |
1420 |
</tr> |
| 1322 |
[% END %] |
1421 |
[% END %] |
| 1323 |
</tbody> |
1422 |
</tbody> |
|
Lines 1343-1368
Link Here
|
| 1343 |
<a id="validMultiSearch" href="#" class="btn btn-primary">Search</a> |
1442 |
<a id="validMultiSearch" href="#" class="btn btn-primary">Search</a> |
| 1344 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
1443 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
| 1345 |
</div> |
1444 |
</div> |
| 1346 |
</div> <!-- /.modal-content --> |
1445 |
</div><!-- /.modal-content --> |
| 1347 |
</div> <!-- /.modal-dialog --> |
1446 |
</div><!-- /.modal-dialog --> |
| 1348 |
</div> <!-- /#myModal --> |
1447 |
</div><!-- /#myModal --> |
| 1349 |
[% END %] |
1448 |
[% END %] |
| 1350 |
|
1449 |
|
| 1351 |
[% BLOCK jsinclude %] |
1450 |
[% BLOCK jsinclude %] |
| 1352 |
[% INCLUDE 'datatables.inc' %] |
1451 |
[% INCLUDE 'datatables.inc' %] |
| 1353 |
[% INCLUDE 'columns_settings.inc' %] |
1452 |
[% INCLUDE 'columns_settings.inc' %] |
| 1354 |
[% INCLUDE greybox.inc %] |
1453 |
[% INCLUDE greybox.inc %] |
| 1355 |
[% IF ( SocialNetworks ) %] |
1454 |
[% IF ( SocialNetworks ) %]<script>!function(d, s, id){var js, fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js, fjs);}}(document, "script", "twitter-wjs");</script>[% END %] |
| 1356 |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> |
1455 |
[% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %] |
| 1357 |
[% END %] |
1456 |
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %] |
| 1358 |
[% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %] |
1457 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %][% Asset.js("lib/kjua/kjua.min.js") | $raw %][% END %] |
| 1359 |
|
1458 |
|
| 1360 |
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %] |
1459 |
[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] |
| 1361 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1460 |
<script> |
| 1362 |
[% Asset.js("lib/kjua/kjua.min.js") | $raw %] |
1461 |
var interface = "[% interface | html %]"; |
| 1363 |
[% END %] |
1462 |
var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]"; |
|
|
1463 |
</script> |
| 1464 |
[% Asset.js("js/verovio.js") | $raw %] |
| 1465 |
[% END %] |
| 1364 |
|
1466 |
|
| 1365 |
[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] |
|
|
| 1366 |
<script> |
1467 |
<script> |
| 1367 |
var interface = "[% interface | html %]"; |
1468 |
var interface = "[% interface | html %]"; |
| 1368 |
var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]"; |
1469 |
var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]"; |
|
Lines 1382-1528
Link Here
|
| 1382 |
[% IF ( OpacHighlightedWords ) %] |
1483 |
[% IF ( OpacHighlightedWords ) %] |
| 1383 |
var q_array = new Array(); // holds search terms if available |
1484 |
var q_array = new Array(); // holds search terms if available |
| 1384 |
|
1485 |
|
| 1385 |
function highlightOff() { |
1486 |
function highlightOn() { |
| 1386 |
$("#catalogue_detail_biblio").removeHighlight(); |
1487 |
var x; |
| 1387 |
$(".highlight_toggle").toggle(); |
1488 |
for (x in q_array) { |
| 1388 |
} |
1489 |
if ( q_array[x].length > 0 ) { |
| 1389 |
function highlightOn() { |
1490 |
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); |
| 1390 |
var x; |
1491 |
q_array[x] = q_array[x].toLowerCase(); |
| 1391 |
for (x in q_array) { |
1492 |
var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|'); |
| 1392 |
if ( q_array[x].length > 0 ) { |
1493 |
if( $.inArray(q_array[x], myStopwords) == -1 ) { |
| 1393 |
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); |
1494 |
$(".title").highlight(q_array[x]); |
| 1394 |
q_array[x] = q_array[x].toLowerCase(); |
1495 |
$(".author").highlight(q_array[x]); |
| 1395 |
var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|'); |
1496 |
$(".results_summary").highlight(q_array[x]); |
| 1396 |
if( $.inArray(q_array[x], myStopwords) == -1 ) { |
1497 |
} |
| 1397 |
$(".title").highlight(q_array[x]); |
|
|
| 1398 |
$(".author").highlight(q_array[x]); |
| 1399 |
$(".results_summary").highlight(q_array[x]); |
| 1400 |
} |
1498 |
} |
| 1401 |
} |
1499 |
} |
|
|
1500 |
$(".highlight_toggle").toggle(); |
| 1402 |
} |
1501 |
} |
| 1403 |
$(".highlight_toggle").toggle(); |
1502 |
[% END %] |
| 1404 |
} |
|
|
| 1405 |
[% END %] |
| 1406 |
|
1503 |
|
| 1407 |
$(document).ready(function() { |
1504 |
$(document).ready(function() { |
|
|
1505 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
| 1506 |
var qrcode = kjua({ |
| 1507 |
ecLevel: "H", |
| 1508 |
render: "canvas", |
| 1509 |
rounded: 100, |
| 1510 |
size: 150, |
| 1511 |
text: location.href, |
| 1512 |
}); |
| 1408 |
|
1513 |
|
| 1409 |
[% IF ( Koha.Preference('OPACDetailQRCode') ) %] |
1514 |
if (qrcode) { |
|
|
1515 |
document.getElementById("qrcode").appendChild( qrcode ); |
| 1516 |
} |
| 1410 |
|
1517 |
|
| 1411 |
var qrcode = kjua({ |
1518 |
$(".show_qrcode").on("click", function(){ |
| 1412 |
ecLevel: "H", |
1519 |
var qrcodeImg = $("#qrcode"); |
| 1413 |
render: "canvas", |
1520 |
if( qrcodeImg.hasClass("hidden") ){ |
| 1414 |
rounded: 100, |
1521 |
qrcodeImg.removeClass("hidden"); |
| 1415 |
size: 150, |
1522 |
} else { |
| 1416 |
text: location.href, |
1523 |
qrcodeImg.addClass("hidden"); |
| 1417 |
}); |
1524 |
} |
| 1418 |
if (qrcode) { |
1525 |
}); |
| 1419 |
document.getElementById("qrcode").appendChild( qrcode ); |
1526 |
[% END %] |
| 1420 |
} |
|
|
| 1421 |
|
1527 |
|
| 1422 |
$(".show_qrcode").on("click", function(){ |
1528 |
$('#bibliodescriptions').tabs(); |
| 1423 |
var qrcodeImg = $("#qrcode"); |
1529 |
$(".branch-info-tooltip-trigger").uitooltip({ |
| 1424 |
if( qrcodeImg.hasClass("hidden") ){ |
1530 |
position: { my: "left+15 center", at: "right center" }, |
| 1425 |
qrcodeImg.removeClass("hidden"); |
1531 |
show: 50, |
| 1426 |
} else { |
1532 |
hide: 50, |
| 1427 |
qrcodeImg.addClass("hidden"); |
1533 |
content: function(){ |
|
|
1534 |
var element = $(this).next("div"); |
| 1535 |
return element.html(); |
| 1428 |
} |
1536 |
} |
| 1429 |
}); |
1537 |
}); |
| 1430 |
[% END %] |
|
|
| 1431 |
|
1538 |
|
| 1432 |
$('#bibliodescriptions').tabs(); |
1539 |
[% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] |
| 1433 |
$(".branch-info-tooltip-trigger").uitooltip({ |
1540 |
$(".l_Results").show(); |
| 1434 |
position: { my: "left+15 center", at: "right center" }, |
1541 |
$("#a_listResults").on("click", function(e){ |
| 1435 |
show: 50, |
1542 |
e.preventDefault(); |
| 1436 |
hide: 50, |
1543 |
$(".results-pagination, .close_pagination, .pg_menu").toggle(); |
| 1437 |
content: function(){ |
1544 |
}); |
| 1438 |
var element = $(this).next("div"); |
|
|
| 1439 |
return element.html(); |
| 1440 |
} |
| 1441 |
}); |
| 1442 |
|
1545 |
|
| 1443 |
[% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] |
1546 |
$(".close_pagination").on("click", function(e){ |
| 1444 |
$(".l_Results").show(); |
1547 |
e.preventDefault(); |
| 1445 |
$("#a_listResults").on("click", function(e){ |
1548 |
$(".results-pagination, .close_pagination, .pg_menu").toggle(); |
| 1446 |
e.preventDefault(); |
1549 |
}); |
| 1447 |
$(".results-pagination, .close_pagination, .pg_menu").toggle(); |
1550 |
[% END %] |
| 1448 |
}); |
|
|
| 1449 |
|
1551 |
|
| 1450 |
$(".close_pagination").on("click", function(e){ |
1552 |
var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %]; |
| 1451 |
e.preventDefault(); |
1553 |
|
| 1452 |
$(".results-pagination, .close_pagination, .pg_menu").toggle(); |
1554 |
KohaTable("#holdingst", { |
|
|
1555 |
dom: '<"clearfix">t', |
| 1556 |
"columnDefs": [ |
| 1557 |
{ "targets": [ -1 ], "sortable": false, "searchable": false }, |
| 1558 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1559 |
], |
| 1560 |
"bKohaColumnsUseNames": true, |
| 1561 |
"autoWidth": false |
| 1562 |
}, columns_settings); |
| 1563 |
|
| 1564 |
KohaTable("#otherholdingst", { |
| 1565 |
dom: '<"clearfix">t', |
| 1566 |
"columnDefs": [ |
| 1567 |
{ "targets": [ -1 ], "sortable": false, "searchable": false }, |
| 1568 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1569 |
], |
| 1570 |
"bKohaColumnsUseNames": true, |
| 1571 |
"autoWidth": false |
| 1572 |
}, columns_settings); |
| 1573 |
|
| 1574 |
var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; |
| 1575 |
|
| 1576 |
KohaTable("#subscriptionst", { |
| 1577 |
dom: '<"clearfix">t', |
| 1578 |
"sorting": [[ 1, "desc" ]], |
| 1579 |
"columnDefs": [ |
| 1580 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1581 |
], |
| 1582 |
"autoWidth": false, |
| 1583 |
"bKohaColumnsUseNames": true |
| 1584 |
}, serial_column_settings); |
| 1585 |
|
| 1586 |
[% IF ( TagsInputEnabled && loggedinusername ) %] |
| 1587 |
$(".tag_add").click(function(){ |
| 1588 |
var thisid = $(this).attr("id"); |
| 1589 |
thisid = thisid.replace("tag_add", ""); |
| 1590 |
$(this).hide(); |
| 1591 |
$("#tagform"+thisid).show(); |
| 1592 |
$("#newtag"+thisid).focus(); |
| 1593 |
$("#newtag"+thisid+"_status").empty().hide(); |
| 1594 |
return false; |
| 1453 |
}); |
1595 |
}); |
| 1454 |
[% END %] |
1596 |
$(".cancel_tag_add").click(function(){ |
| 1455 |
|
1597 |
var thisid = $(this).attr("id"); |
| 1456 |
var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %]; |
1598 |
thisid = thisid.replace("cancel", ""); |
| 1457 |
|
1599 |
$("#tagform"+thisid).hide(); |
| 1458 |
KohaTable("#holdingst", { |
1600 |
$("#tag_add"+thisid).show(); |
| 1459 |
dom: '<"clearfix">t', |
1601 |
$("#newtag"+thisid).val(""); |
| 1460 |
"columnDefs": [ |
1602 |
$("#newtag"+thisid+"_status").empty().hide(); |
| 1461 |
{ "targets": [ -1 ], "sortable": false, "searchable": false }, |
|
|
| 1462 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1463 |
], |
| 1464 |
"bKohaColumnsUseNames": true, |
| 1465 |
"autoWidth": false |
| 1466 |
}, columns_settings); |
| 1467 |
|
| 1468 |
KohaTable("#otherholdingst", { |
| 1469 |
dom: '<"clearfix">t', |
| 1470 |
"columnDefs": [ |
| 1471 |
{ "targets": [ -1 ], "sortable": false, "searchable": false }, |
| 1472 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1473 |
], |
| 1474 |
"bKohaColumnsUseNames": true, |
| 1475 |
"autoWidth": false |
| 1476 |
}, columns_settings); |
| 1477 |
|
| 1478 |
var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; |
| 1479 |
|
| 1480 |
KohaTable("#subscriptionst", { |
| 1481 |
dom: '<"clearfix">t', |
| 1482 |
"sorting": [[ 1, "desc" ]], |
| 1483 |
"columnDefs": [ |
| 1484 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 1485 |
], |
| 1486 |
"autoWidth": false, |
| 1487 |
"bKohaColumnsUseNames": true |
| 1488 |
}, serial_column_settings); |
| 1489 |
|
| 1490 |
[% IF ( TagsInputEnabled && loggedinusername ) %] |
| 1491 |
$(".tag_add").click(function(){ |
| 1492 |
var thisid = $(this).attr("id"); |
| 1493 |
thisid = thisid.replace("tag_add",""); |
| 1494 |
$(this).hide(); |
| 1495 |
$("#tagform"+thisid).show(); |
| 1496 |
$("#newtag"+thisid).focus(); |
| 1497 |
$("#newtag"+thisid+"_status").empty().hide(); |
| 1498 |
return false; |
| 1499 |
}); |
| 1500 |
$(".cancel_tag_add").click(function(){ |
| 1501 |
var thisid = $(this).attr("id"); |
| 1502 |
thisid = thisid.replace("cancel",""); |
| 1503 |
$("#tagform"+thisid).hide(); |
| 1504 |
$("#tag_add"+thisid).show(); |
| 1505 |
$("#newtag"+thisid).val(""); |
| 1506 |
$("#newtag"+thisid+"_status").empty().hide(); |
| 1507 |
return false; |
| 1508 |
}); |
| 1509 |
$(".tagbutton").click(function(){ |
| 1510 |
var thisid = $(this).attr("title"); |
| 1511 |
var tag = $("#newtag"+thisid).val(); |
| 1512 |
if (!tag || (tag == "")) { |
| 1513 |
alert(MSG_NO_TAG_SPECIFIED); |
| 1514 |
return false; |
1603 |
return false; |
| 1515 |
} |
1604 |
}); |
| 1516 |
KOHA.Tags.add_tag_button(thisid, tag); |
1605 |
$(".tagbutton").click(function(){ |
| 1517 |
return false; |
1606 |
var thisid = $(this).attr("title"); |
| 1518 |
}); |
1607 |
var tag = $("#newtag"+thisid).val(); |
| 1519 |
[% END %] |
1608 |
if (!tag || (tag == "")) { |
|
|
1609 |
alert(MSG_NO_TAG_SPECIFIED); |
| 1610 |
return false; |
| 1611 |
} |
| 1612 |
KOHA.Tags.add_tag_button(thisid, tag); |
| 1613 |
return false; |
| 1614 |
}); |
| 1615 |
[% END %] |
| 1520 |
|
1616 |
|
| 1521 |
[%# Note that there is no way atm to target a column with its class name to set it as the default sort order %] |
1617 |
[% # Note that there is no way atm to target a column with its class name to set it as the default sort order %] |
| 1522 |
[% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes |
1618 |
[% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes |
| 1523 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes |
1619 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes |
| 1524 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes |
1620 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes |
| 1525 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %] |
1621 |
OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %] |
| 1526 |
var default_order_index = 1; |
1622 |
var default_order_index = 1; |
| 1527 |
[% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %] |
1623 |
[% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %] |
| 1528 |
var default_order_index = 2; |
1624 |
var default_order_index = 2; |
|
Lines 1530-1556
Link Here
|
| 1530 |
var default_order_index = 0; |
1626 |
var default_order_index = 0; |
| 1531 |
[% END %] |
1627 |
[% END %] |
| 1532 |
|
1628 |
|
| 1533 |
[% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
1629 |
[% IF ( query_desc ) %] |
| 1534 |
q_array = query_desc.split(" "); |
1630 |
[% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
| 1535 |
q_array = q_array.filter(function(n){ return n }); // Remove empty strings |
1631 |
q_array = query_desc.split(" "); |
| 1536 |
highlightOn(); |
1632 |
q_array = q_array.filter(function(n){ return n }); // Remove empty strings |
| 1537 |
$("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;}); |
1633 |
highlightOn(); |
| 1538 |
$("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %] |
1634 |
$("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;}); |
| 1539 |
[% IF ( GoogleJackets ) %] |
1635 |
$("#highlight_toggle_off").show().click(function() {highlightOff(); return false;}); |
| 1540 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
1636 |
[% END %] |
| 1541 |
[% END %] |
1637 |
[% END %] |
| 1542 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
|
|
| 1543 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); |
| 1544 |
[% END %] |
| 1545 |
|
1638 |
|
| 1546 |
[% IF OpenLibraryCovers %] |
1639 |
[% IF ( GoogleJackets ) %] |
| 1547 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
1640 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
| 1548 |
[% END %] |
1641 |
[% END %] |
| 1549 |
[% IF OPACLocalCoverImages %] |
1642 |
|
| 1550 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
1643 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
| 1551 |
[% END %] |
1644 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); |
| 1552 |
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] |
1645 |
[% END %] |
| 1553 |
novSelect.loadContentForQuery( |
1646 |
|
|
|
1647 |
[% IF OpenLibraryCovers %] |
| 1648 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
| 1649 |
[% END %] |
| 1650 |
|
| 1651 |
[% IF OPACLocalCoverImages %] |
| 1652 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
| 1653 |
[% END %] |
| 1654 |
|
| 1655 |
[% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] |
| 1656 |
novSelect.loadContentForQuery( |
| 1554 |
{ |
1657 |
{ |
| 1555 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
1658 |
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
| 1556 |
ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
1659 |
ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]', |
|
Lines 1563-1677
Link Here
|
| 1563 |
$(".NovelistSelect").show(); |
1666 |
$(".NovelistSelect").show(); |
| 1564 |
} |
1667 |
} |
| 1565 |
}); |
1668 |
}); |
| 1566 |
[% END %] |
1669 |
[% END %] |
| 1567 |
|
1670 |
|
| 1568 |
[% IF ( OPACShelfBrowser ) %] |
1671 |
[% IF ( OPACShelfBrowser ) %] |
|
|
1672 |
(function prepareShelfBrowser(){ |
| 1569 |
|
1673 |
|
| 1570 |
(function prepareShelfBrowser(){ |
1674 |
$(".main").on("click", ".close_shelf", function(e){ |
|
|
1675 |
e.preventDefault(); |
| 1676 |
$("#shelfbrowser").toggle(); |
| 1677 |
}); |
| 1571 |
|
1678 |
|
| 1572 |
$(".main").on("click",".close_shelf",function(e){ |
1679 |
$(".main").on("click", "#browser_previous a", function(e){ |
| 1573 |
e.preventDefault(); |
1680 |
e.preventDefault(); |
| 1574 |
$("#shelfbrowser").toggle(); |
1681 |
$.ajax({ |
| 1575 |
}); |
1682 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
| 1576 |
$(".main").on("click", "#browser_previous a", function(e){ |
1683 |
type: "POST", |
| 1577 |
e.preventDefault(); |
1684 |
data: { |
| 1578 |
$.ajax({ |
1685 |
"shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" ) |
| 1579 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
1686 |
}, |
| 1580 |
type: "POST", |
1687 |
success: function(data){ |
| 1581 |
data: { |
1688 |
$("#shelfbrowser").replaceWith(data); |
| 1582 |
"shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" ) |
1689 |
[% IF ( GoogleJackets ) %] |
| 1583 |
}, |
1690 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
| 1584 |
success: function(data){ |
1691 |
[% END %] |
| 1585 |
$("#shelfbrowser").replaceWith(data); |
|
|
| 1586 |
[% IF ( GoogleJackets ) %] |
| 1587 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
| 1588 |
[% END %] |
| 1589 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
| 1590 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); |
| 1591 |
[% END %] |
| 1592 |
[% IF OpenLibraryCovers %] |
| 1593 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
| 1594 |
[% END %] |
| 1595 |
[% IF OPACLocalCoverImages %] |
| 1596 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
| 1597 |
[% END %] |
| 1598 |
} |
| 1599 |
}); |
| 1600 |
}); |
| 1601 |
|
1692 |
|
| 1602 |
$(".main").on("click", "#browser_next a", function(e){ |
1693 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
| 1603 |
e.preventDefault(); |
1694 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); |
| 1604 |
$.ajax({ |
1695 |
[% END %] |
| 1605 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
1696 |
|
| 1606 |
type: "POST", |
1697 |
[% IF OpenLibraryCovers %] |
| 1607 |
data: { |
1698 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
| 1608 |
"shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" ) |
1699 |
[% END %] |
| 1609 |
}, |
1700 |
|
| 1610 |
success: function(data){ |
1701 |
[% IF OPACLocalCoverImages %] |
| 1611 |
$("#shelfbrowser").replaceWith(data); |
1702 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
| 1612 |
[% IF ( GoogleJackets ) %] |
1703 |
[% END %] |
| 1613 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
1704 |
} |
| 1614 |
[% END %] |
1705 |
}); |
| 1615 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
1706 |
}); |
| 1616 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); |
1707 |
|
| 1617 |
[% END %] |
1708 |
$(".main").on("click", "#browser_next a", function(e){ |
| 1618 |
[% IF OpenLibraryCovers %] |
1709 |
e.preventDefault(); |
| 1619 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
1710 |
$.ajax({ |
| 1620 |
[% END %] |
1711 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
| 1621 |
[% IF OPACLocalCoverImages %] |
1712 |
type: "POST", |
| 1622 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
1713 |
data: { |
| 1623 |
[% END %] |
1714 |
"shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" ) |
|
|
1715 |
}, |
| 1716 |
success: function(data){ |
| 1717 |
$("#shelfbrowser").replaceWith(data); |
| 1718 |
[% IF ( GoogleJackets ) %] |
| 1719 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); |
| 1720 |
[% END %] |
| 1721 |
|
| 1722 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
| 1723 |
KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); |
| 1724 |
[% END %] |
| 1725 |
|
| 1726 |
[% IF OpenLibraryCovers %] |
| 1727 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
| 1728 |
[% END %] |
| 1729 |
|
| 1730 |
[% IF OPACLocalCoverImages %] |
| 1731 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
| 1732 |
[% END %] |
| 1733 |
} |
| 1734 |
}); |
| 1735 |
}); |
| 1736 |
}()); |
| 1737 |
[% END %] |
| 1738 |
|
| 1739 |
[% IF ( OpacStarRatings != 'disable' ) %] |
| 1740 |
// ----------------------------------------------------- |
| 1741 |
// star-ratings code |
| 1742 |
// ----------------------------------------------------- |
| 1743 |
// hide 'rate' button if javascript enabled |
| 1744 |
|
| 1745 |
$('input[name="rate_button"]').remove(); |
| 1746 |
|
| 1747 |
var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true; |
| 1748 |
$('#star_rating').barrating({ |
| 1749 |
theme: 'fontawesome-stars', |
| 1750 |
showSelectedRating: false, |
| 1751 |
allowEmpty: true, |
| 1752 |
deselectable: false, |
| 1753 |
readonly: rating_enabled, |
| 1754 |
onSelect: function(value, text) { |
| 1755 |
$("#rating-loading").show(); |
| 1756 |
$.post("/cgi-bin/koha/opac-ratings-ajax.pl", { |
| 1757 |
rating_old_value: $("#rating_value").attr("value"), |
| 1758 |
borrowernumber: "[% borrowernumber | html %]", |
| 1759 |
biblionumber: "[% biblio.biblionumber | html %]", |
| 1760 |
rating_value: value, |
| 1761 |
auth_error: value |
| 1762 |
}, function (data) { |
| 1763 |
$("#rating_value").val(data.rating_value); |
| 1764 |
if (data.rating_value) { |
| 1765 |
$("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value)); |
| 1766 |
$("#cancel_rating_text").show(); |
| 1767 |
} else { |
| 1768 |
$("#rating_value_text").text(''); |
| 1769 |
$("#cancel_rating_text").hide(); |
| 1770 |
} |
| 1771 |
$("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total)); |
| 1772 |
$("#rating-loading").hide(); |
| 1773 |
}, "json"); |
| 1624 |
} |
1774 |
} |
| 1625 |
}); |
1775 |
}); |
| 1626 |
}); |
|
|
| 1627 |
}()); |
| 1628 |
[% END %] |
| 1629 |
[% IF ( OpacStarRatings != 'disable' ) %] |
| 1630 |
// ----------------------------------------------------- |
| 1631 |
// star-ratings code |
| 1632 |
// ----------------------------------------------------- |
| 1633 |
// hide 'rate' button if javascript enabled |
| 1634 |
|
| 1635 |
$('input[name="rate_button"]').remove(); |
| 1636 |
|
| 1637 |
var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true; |
| 1638 |
$('#star_rating').barrating({ |
| 1639 |
theme: 'fontawesome-stars', |
| 1640 |
showSelectedRating: false, |
| 1641 |
allowEmpty: true, |
| 1642 |
deselectable: false, |
| 1643 |
readonly: rating_enabled, |
| 1644 |
onSelect: function(value, text) { |
| 1645 |
$("#rating-loading").show(); |
| 1646 |
$.post("/cgi-bin/koha/opac-ratings-ajax.pl", { |
| 1647 |
rating_old_value: $("#rating_value").attr("value"), |
| 1648 |
borrowernumber: "[% borrowernumber | html %]", |
| 1649 |
biblionumber: "[% biblio.biblionumber | html %]", |
| 1650 |
rating_value: value, |
| 1651 |
auth_error: value |
| 1652 |
}, function (data) { |
| 1653 |
$("#rating_value").val(data.rating_value); |
| 1654 |
if (data.rating_value) { |
| 1655 |
$("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value)); |
| 1656 |
$("#cancel_rating_text").show(); |
| 1657 |
} else { |
| 1658 |
$("#rating_value_text").text(''); |
| 1659 |
$("#cancel_rating_text").hide(); |
| 1660 |
} |
| 1661 |
$("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total)); |
| 1662 |
$("#rating-loading").hide(); |
| 1663 |
}, "json"); |
| 1664 |
} |
| 1665 |
}); |
| 1666 |
|
1776 |
|
| 1667 |
$("#cancel_rating_text a").on("click", function(e){ |
1777 |
$("#cancel_rating_text a").on("click", function(e){ |
| 1668 |
e.preventDefault(); |
1778 |
e.preventDefault(); |
| 1669 |
$("#star_rating").barrating("set", ""); |
1779 |
$("#star_rating").barrating("set", ""); |
| 1670 |
}); |
1780 |
}); |
| 1671 |
|
1781 |
|
| 1672 |
[% END # / IF ( OpacStarRatings != 'disable' )%] |
1782 |
[% END # / IF ( OpacStarRatings != 'disable' ) %] |
| 1673 |
|
1783 |
|
| 1674 |
}); |
1784 |
}); |
| 1675 |
|
1785 |
|
| 1676 |
$(document).ready(function() { |
1786 |
$(document).ready(function() { |
| 1677 |
if( OPACPopupAuthorsSearch == "1" ){ |
1787 |
if( OPACPopupAuthorsSearch == "1" ){ |
|
Lines 1685-1691
Link Here
|
| 1685 |
"keyword_search" : "su:", |
1795 |
"keyword_search" : "su:", |
| 1686 |
} |
1796 |
} |
| 1687 |
} |
1797 |
} |
| 1688 |
$(".contributors,.subject").on("click", function(e){ |
1798 |
$(".contributors, .subject").on("click", function(e){ |
| 1689 |
e.preventDefault(); |
1799 |
e.preventDefault(); |
| 1690 |
var term = $(this).attr("class"); |
1800 |
var term = $(this).attr("class"); |
| 1691 |
var selected_term = $(this).text(); |
1801 |
var selected_term = $(this).text(); |
| 1692 |
- |
|
|