Lines 647-653
Link Here
|
647 |
<div id="noitems">No physical items for this record</div> |
647 |
<div id="noitems">No physical items for this record</div> |
648 |
[% END %] |
648 |
[% END %] |
649 |
[% END # IF itemloop.size %] |
649 |
[% END # IF itemloop.size %] |
650 |
|
650 |
[% PROCESS 'shelfbrowser.inc' %] |
651 |
[% INCLUDE shelfbrowser tab='holdings' %] |
651 |
[% INCLUDE shelfbrowser tab='holdings' %] |
652 |
<br style="clear:both;" /> |
652 |
<br style="clear:both;" /> |
653 |
</div> <!-- / #holdings --> |
653 |
</div> <!-- / #holdings --> |
Lines 1170-1176
Link Here
|
1170 |
[% IF ( ITEM_RESULT.itemcallnumber ) %] |
1170 |
[% IF ( ITEM_RESULT.itemcallnumber ) %] |
1171 |
[% ITEM_RESULT.itemcallnumber %] |
1171 |
[% ITEM_RESULT.itemcallnumber %] |
1172 |
[% IF ( OPACShelfBrowser ) %] |
1172 |
[% IF ( OPACShelfBrowser ) %] |
1173 |
(<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>) |
1173 |
[% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %] |
|
|
1174 |
(<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>) |
1175 |
[% ELSE %] |
1176 |
(<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>) |
1177 |
[% END %] |
1174 |
[% END %] |
1178 |
[% END %] |
1175 |
[% END %] |
1179 |
[% END %] |
1176 |
</td> |
1180 |
</td> |
Lines 1227-1365
Link Here
|
1227 |
</table> |
1231 |
</table> |
1228 |
[% END %][%# end of items_table block %] |
1232 |
[% END %][%# end of items_table block %] |
1229 |
|
1233 |
|
1230 |
[% BLOCK shelfbrowser %] |
|
|
1231 |
[% IF ( OpenOPACShelfBrowser and shelfbrowser_tab == tab) %] |
1232 |
<div id="shelfbrowser"> |
1233 |
<h5 style="text-align: center;"> |
1234 |
[% IF ( starting_homebranch ) %]Browsing [% starting_homebranch %] Shelves[% END %] |
1235 |
[% IF ( starting_location ) %], Shelving location: [% starting_location %][% END %] |
1236 |
[% IF ( starting_ccode ) %], Collection code: [% starting_ccode %][% END %] |
1237 |
<a style="font-size: 75%;" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Close shelf browser</a> |
1238 |
</h5> |
1239 |
|
1240 |
<table class="table table-bordered table-striped"> |
1241 |
<tr> |
1242 |
<td rowspan="2" style="width:20px;"> |
1243 |
<div id="browser_previous"> |
1244 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% IF ( shelfbrowser_prev_biblionumber ) %][% shelfbrowser_prev_biblionumber %][% ELSE %][% biblionumber %][% END %]&shelfbrowse_itemnumber=[% shelfbrowser_prev_itemnumber %]#shelfbrowser">Previous</a> |
1245 |
</div> |
1246 |
</td> |
1247 |
[% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %] |
1248 |
<td> |
1249 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% PREVIOUS_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% PREVIOUS_SHELF_BROWS.itemnumber %]#shelfbrowser"> |
1250 |
[% IF ( OPACLocalCoverImages ) %] |
1251 |
<div title="[% PREVIOUS_SHELF_BROWS.biblionumber |url %]" class="[% PREVIOUS_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% PREVIOUS_SHELF_BROWS.biblionumber %]"></div> |
1252 |
[% END %] |
1253 |
[% IF ( OPACAmazonCoverImages ) %] |
1254 |
[% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %] |
1255 |
<img src="http://images.amazon.com/images/P/[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" /> |
1256 |
[% ELSE %] |
1257 |
<span class="no-image">No cover image available</span> |
1258 |
[% END %] |
1259 |
[% END %] |
1260 |
[% IF ( SyndeticsEnabled ) %] |
1261 |
[% IF ( SyndeticsCoverImages ) %] |
1262 |
[% IF ( content_identifier_exists ) %] |
1263 |
[% IF ( using_https ) %] |
1264 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% PREVIOUS_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% PREVIOUS_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" /> |
1265 |
[% ELSE %] |
1266 |
<img src="http://www.syndetics.com/index.aspx?isbn=[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% PREVIOUS_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% PREVIOUS_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" /> |
1267 |
[% END %] |
1268 |
[% ELSE %] |
1269 |
<span class="no-image">No cover image available</span> |
1270 |
[% END %] |
1271 |
[% END %] |
1272 |
[% END %] |
1273 |
[% IF ( GoogleJackets ) %] |
1274 |
[% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %] |
1275 |
<div title="[% PREVIOUS_SHELF_BROWS.biblionumber |url %]" class="[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]" id="gbs-thumbnail-preview[% loop.count %]"></div> |
1276 |
[% ELSE %] |
1277 |
<span class="no-image">No cover image available</span> |
1278 |
[% END %] |
1279 |
[% END %] |
1280 |
[% IF ( BakerTaylorEnabled ) %] |
1281 |
[% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %] |
1282 |
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]" /> |
1283 |
[% ELSE %] |
1284 |
<span class="no-image">No cover image available</span> |
1285 |
[% END %] |
1286 |
[% END %] |
1287 |
</a> |
1288 |
</td> |
1289 |
[% END %] |
1290 |
|
1291 |
[% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %] |
1292 |
<td> |
1293 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% NEXT_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% NEXT_SHELF_BROWS.itemnumber %]#shelfbrowser"> |
1294 |
[% IF ( OPACLocalCoverImages ) %] |
1295 |
<div title="[% NEXT_SHELF_BROWS.biblionumber |url %]" class="[% NEXT_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% NEXT_SHELF_BROWS.biblionumber %]"></div> |
1296 |
[% END %] |
1297 |
[% IF ( OPACAmazonCoverImages ) %] |
1298 |
[% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %] |
1299 |
<img src="http://images.amazon.com/images/P/[% NEXT_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" /> |
1300 |
[% ELSE %] |
1301 |
<span class="no-image">No cover image available</span> |
1302 |
[% END %] |
1303 |
[% END %] |
1304 |
|
1305 |
[% IF ( SyndeticsEnabled ) %] |
1306 |
[% IF ( SyndeticsCoverImages ) %] |
1307 |
[% IF ( content_identifier_exists ) %] |
1308 |
[% IF ( using_https ) %] |
1309 |
<img src="https://secure.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" /> |
1310 |
[% ELSE %] |
1311 |
<img src="http://www.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" /> |
1312 |
[% END %] |
1313 |
[% ELSE %] |
1314 |
<span class="no-image">No cover image available</span> |
1315 |
[% END %] |
1316 |
[% END %] |
1317 |
[% END %] |
1318 |
|
1319 |
[% IF ( GoogleJackets ) %] |
1320 |
[% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %] |
1321 |
<div title="[% NEXT_SHELF_BROWS.biblionumber |url %]" class="[% NEXT_SHELF_BROWS.browser_normalized_isbn %]" id="gbs-thumbnail-preview[% loop.count %]"></div> |
1322 |
[% ELSE %] |
1323 |
<span class="no-image">No cover image available</span> |
1324 |
[% END %] |
1325 |
[% END %] |
1326 |
[% IF ( BakerTaylorEnabled ) %] |
1327 |
[% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %] |
1328 |
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% NEXT_SHELF_BROWS.browser_normalized_isbn %]" /> |
1329 |
[% ELSE %] |
1330 |
<span class="no-image">No cover image available</span> |
1331 |
[% END %] |
1332 |
[% END %] |
1333 |
</a> |
1334 |
</td> |
1335 |
[% END %] |
1336 |
|
1337 |
<td rowspan="2"> |
1338 |
<div id="browser_next"> |
1339 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% IF ( shelfbrowser_next_biblionumber ) %][% shelfbrowser_next_biblionumber %][% ELSE %][% biblionumber %][% END %]&shelfbrowse_itemnumber=[% shelfbrowser_next_itemnumber %]#shelfbrowser">Next</a> |
1340 |
</div> |
1341 |
</td> |
1342 |
</tr> |
1343 |
|
1344 |
<tr> |
1345 |
[% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %] |
1346 |
<td class="top"> |
1347 |
[% PREVIOUS_SHELF_BROWS.itemcallnumber %] |
1348 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% PREVIOUS_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% PREVIOUS_SHELF_BROWS.itemnumber %]#shelfbrowser">[% PREVIOUS_SHELF_BROWS.title |html %]</a> |
1349 |
</td> |
1350 |
[% END %] |
1351 |
|
1352 |
[% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %] |
1353 |
<td class="top" style="width:20px;"> |
1354 |
[% NEXT_SHELF_BROWS.itemcallnumber %] |
1355 |
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% NEXT_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% NEXT_SHELF_BROWS.itemnumber %]#shelfbrowser">[% NEXT_SHELF_BROWS.title |html %]</a> |
1356 |
</td> |
1357 |
[% END %] |
1358 |
</tr> |
1359 |
</table> |
1360 |
</div> |
1361 |
[% END %] |
1362 |
[% END # end of shelfbrowser block %] |
1363 |
[% BLOCK jsinclude %] |
1234 |
[% BLOCK jsinclude %] |
1364 |
[% INCLUDE 'datatables.inc' %] |
1235 |
[% INCLUDE 'datatables.inc' %] |
1365 |
[% IF ( SocialNetworks ) %] |
1236 |
[% IF ( SocialNetworks ) %] |
Lines 1514-1520
Link Here
|
1514 |
navigation.hide(); |
1385 |
navigation.hide(); |
1515 |
}); |
1386 |
}); |
1516 |
[% END %] |
1387 |
[% END %] |
|
|
1388 |
[% IF ( OPACShelfBrowser ) %] |
1389 |
|
1390 |
(function prepareShelfBrowser(){ |
1391 |
|
1392 |
$(".main").on("click",".close_shelf",function(e){ |
1393 |
e.preventDefault(); |
1394 |
$("#shelfbrowser").toggle(); |
1395 |
}); |
1396 |
$(".main").on("click", "#browser_previous a", function(e){ |
1397 |
e.preventDefault(); |
1398 |
$.ajax({ |
1399 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
1400 |
type: "POST", |
1401 |
data: { |
1402 |
"shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" ) |
1403 |
}, |
1404 |
success: function(data){ |
1405 |
$("#shelfbrowser").replaceWith(data); |
1406 |
[% IF ( GoogleJackets ) %] |
1407 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow %]); |
1408 |
[% END %] |
1409 |
[% IF OpenLibraryCovers %] |
1410 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
1411 |
[% END %] |
1412 |
[% IF OPACLocalCoverImages %] |
1413 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
1414 |
[% END %] |
1415 |
} |
1416 |
}); |
1417 |
}); |
1517 |
|
1418 |
|
|
|
1419 |
$(".main").on("click", "#browser_next a", function(e){ |
1420 |
e.preventDefault(); |
1421 |
$.ajax({ |
1422 |
url: "/cgi-bin/koha/svc/shelfbrowser.pl", |
1423 |
type: "POST", |
1424 |
data: { |
1425 |
"shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" ) |
1426 |
}, |
1427 |
success: function(data){ |
1428 |
$("#shelfbrowser").replaceWith(data); |
1429 |
[% IF ( GoogleJackets ) %] |
1430 |
KOHA.Google.GetCoverFromIsbn([% covernewwindow %]); |
1431 |
[% END %] |
1432 |
[% IF OpenLibraryCovers %] |
1433 |
KOHA.OpenLibrary.GetCoverFromIsbn(); |
1434 |
[% END %] |
1435 |
[% IF OPACLocalCoverImages %] |
1436 |
KOHA.LocalCover.GetCoverFromBibnumber(true); |
1437 |
[% END %] |
1438 |
} |
1439 |
}); |
1440 |
}); |
1441 |
}()); |
1442 |
[% END %] |
1518 |
[% IF ( OpacStarRatings != 'disable' ) %] |
1443 |
[% IF ( OpacStarRatings != 'disable' ) %] |
1519 |
// ----------------------------------------------------- |
1444 |
// ----------------------------------------------------- |
1520 |
// star-ratings code |
1445 |
// star-ratings code |