|
Lines 255-272
function verify_images() {
Link Here
|
| 255 |
</div> |
255 |
</div> |
| 256 |
<div id="bibliodetails" class="toptabs"> |
256 |
<div id="bibliodetails" class="toptabs"> |
| 257 |
|
257 |
|
| 258 |
<ul> |
258 |
<ul> |
| 259 |
<li><a href="#holdings">Holdings</a></li> |
259 |
[% IF (SeparateHoldings) %] |
|
|
260 |
<li><a href="#holdings">[% LoginBranchname %] holdings</a></li> |
| 261 |
<li><a href="#otherholdings">Other holdings</a></li> |
| 262 |
[% ELSE %] |
| 263 |
<li><a href="#holdings">Holdings</a></li> |
| 264 |
[% END %] |
| 260 |
<li><a href="#description">Descriptions</a></li> |
265 |
<li><a href="#description">Descriptions</a></li> |
| 261 |
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %] |
266 |
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %] |
| 262 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %] |
267 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %] |
| 263 |
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %] |
268 |
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %] |
| 264 |
</ul> |
269 |
</ul> |
| 265 |
|
270 |
|
| 266 |
<div id="holdings"> |
271 |
[% BLOCK items_table %] |
| 267 |
[% IF ( count ) %] |
272 |
<table> |
| 268 |
[% IF ( showncount ) %] |
273 |
<thead> |
| 269 |
<table> |
|
|
| 270 |
<tr> |
274 |
<tr> |
| 271 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
275 |
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %] |
| 272 |
<th>Current location</th> |
276 |
<th>Current location</th> |
|
Lines 281-428
function verify_images() {
Link Here
|
| 281 |
[% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %] |
285 |
[% IF ( itemdata_copynumber ) %]<th>Copy no.</th>[% END %] |
| 282 |
[% IF materials %]<th>Materials specified</th>[% END %] |
286 |
[% IF materials %]<th>Materials specified</th>[% END %] |
| 283 |
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %] |
287 |
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %] |
| 284 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %] |
288 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine label</th>[% END %] |
| 285 |
[% IF ( hostrecords ) %]<th>Host records</th>[% END %] |
289 |
[% IF ( hostrecords ) %]<th>Host records</th>[% END %] |
| 286 |
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %] |
290 |
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %] |
| 287 |
</tr> |
291 |
</tr> |
| 288 |
[% FOREACH itemloo IN itemloop %] |
292 |
</thead> |
|
|
293 |
<tbody> |
| 294 |
[% FOREACH item IN items %] |
| 289 |
<tr> |
295 |
<tr> |
| 290 |
[% IF ( item_level_itypes ) %] |
296 |
[% IF ( item_level_itypes ) %] |
| 291 |
<td class="itype"> |
297 |
<td class="itype"> |
| 292 |
[% IF !noItemTypeImages && itemloo.imageurl %] |
298 |
[% IF !noItemTypeImages && item.imageurl %] |
| 293 |
<img src="[% itemloo.imageurl %]" alt="[% itemloo.description %]" title="[% itemloo.description %]" /> |
299 |
<img src="[% item.imageurl %]" alt="[% item.description %]" title="[% item.description %]" /> |
| 294 |
[% END %] |
300 |
[% END %] |
| 295 |
[% itemloo.description %] |
301 |
[% item.description %] |
| 296 |
</td> |
302 |
</td> |
| 297 |
[% END %] |
303 |
[% END %] |
| 298 |
<td class="location">[% UNLESS ( singlebranchmode ) %][% itemloo.branchname %] [% END %]</td> |
304 |
<td class="location">[% UNLESS ( singlebranchmode ) %][% item.branchname %] [% END %]</td> |
| 299 |
<td class="homebranch">[% itemloo.homebranch %]<span class="shelvingloc">[% itemloo.location %]</span> </td> |
305 |
<td class="homebranch">[% item.homebranch %]<span class="shelvingloc">[% item.location %]</span> </td> |
| 300 |
[% IF ( itemdata_ccode ) %]<td>[% itemloo.ccode %]</td>[% END %] |
306 |
[% IF ( itemdata_ccode ) %]<td>[% item.ccode %]</td>[% END %] |
| 301 |
<td class="itemcallnumber">[% IF ( itemloo.itemcallnumber ) %] [% itemloo.itemcallnumber %][% END %]</td> |
307 |
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %]</td> |
| 302 |
<td class="status"> |
308 |
<td class="status"> |
| 303 |
|
309 |
|
| 304 |
[% IF ( itemloo.datedue ) %] |
310 |
[% IF ( item.datedue ) %] |
| 305 |
<span class="datedue">Checked out |
311 |
<span class="datedue">Checked out |
| 306 |
[% UNLESS ( itemloo.NOTSAMEBRANCH ) %] |
312 |
[% UNLESS ( item.NOTSAMEBRANCH ) %] |
| 307 |
to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.borrowernumber %]"> |
313 |
to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]"> |
| 308 |
[% IF ( itemloo.hidepatronname ) %] |
314 |
[% IF ( item.hidepatronname ) %] |
| 309 |
[% itemloo.cardnumber %] |
315 |
[% item.cardnumber %] |
| 310 |
[% ELSE %] |
316 |
[% ELSE %] |
| 311 |
[% itemloo.firstname %] [% itemloo.surname %] |
317 |
[% item.firstname %] [% item.surname %] |
| 312 |
[% END %] |
318 |
[% END %] |
| 313 |
</a> |
319 |
</a> |
| 314 |
[% END %] |
320 |
[% END %] |
| 315 |
: due [% itemloo.datedue %] |
321 |
: due [% item.datedue %] |
| 316 |
</span> |
322 |
</span> |
| 317 |
[% ELSIF ( itemloo.transfertwhen ) %] |
323 |
[% ELSIF ( item.transfertwhen ) %] |
| 318 |
In transit from [% itemloo.transfertfrom %], |
324 |
In transit from [% item.transfertfrom %], |
| 319 |
to [% itemloo.transfertto %], since [% itemloo.transfertwhen %] |
325 |
to [% item.transfertto %], since [% item.transfertwhen %] |
| 320 |
<!-- FIXME: the "since" clause is redundant w/ lastseen field --> |
326 |
<!-- FIXME: the "since" clause is redundant w/ lastseen field --> |
| 321 |
[% END %] |
327 |
[% END %] |
| 322 |
|
328 |
|
| 323 |
[% IF ( itemloo.itemlost ) %] |
329 |
[% IF ( item.itemlost ) %] |
| 324 |
[% IF ( itemloo.itemlostloop ) %] |
330 |
[% IF ( item.itemlostloop ) %] |
| 325 |
[% FOREACH itemlostloo IN itemloo.itemlostloop %] |
331 |
[% FOREACH itemlostloo IN item.itemlostloop %] |
| 326 |
[% IF ( itemlostloo.selected ) %] |
332 |
[% IF ( itemlostloo.selected ) %] |
| 327 |
<span class="lost">[% itemlostloo.lib %]</span> |
333 |
<span class="lost">[% itemlostloo.lib %]</span> |
|
|
334 |
[% END %] |
| 335 |
[% END %] |
| 336 |
[% ELSE %] |
| 337 |
<span class="lost">Unavailable (lost or missing)</span> |
| 338 |
[% END %] |
| 328 |
[% END %] |
339 |
[% END %] |
| 329 |
[% END %] |
|
|
| 330 |
[% ELSE %] |
| 331 |
<span class="lost">Unavailable (lost or missing)</span> |
| 332 |
[% END %] |
| 333 |
[% END %] |
| 334 |
|
340 |
|
| 335 |
[% IF ( itemloo.wthdrawn ) %] |
341 |
[% IF ( item.wthdrawn ) %] |
| 336 |
<span class="wdn">Withdrawn</span> |
342 |
<span class="wdn">Withdrawn</span> |
| 337 |
[% END %] |
343 |
[% END %] |
| 338 |
|
344 |
|
| 339 |
[% IF ( itemloo.damaged ) %] |
345 |
[% IF ( item.damaged ) %] |
| 340 |
[% IF ( itemloo.itemdamagedloop ) %] |
346 |
[% IF ( item.itemdamagedloop ) %] |
| 341 |
[% FOREACH itemdamagedloo IN itemloo.itemdamagedloop %] |
347 |
[% FOREACH itemdamagedloo IN item.itemdamagedloop %] |
| 342 |
[% IF ( itemdamagedloo.selected ) %] |
348 |
[% IF ( itemdamagedloo.selected ) %] |
| 343 |
<span class="dmg">[% itemdamagedloo.lib %]</span> |
349 |
<span class="dmg">[% itemdamagedloo.lib %]</span> |
|
|
350 |
[% END %] |
| 351 |
[% END %] |
| 352 |
[% ELSE %] |
| 353 |
<span class="dmg">Damaged</span> |
| 354 |
[% END %] |
| 344 |
[% END %] |
355 |
[% END %] |
|
|
356 |
|
| 357 |
[% IF ( item.itemnotforloan ) %] |
| 358 |
Not for loan |
| 359 |
[% IF ( item.notforloanvalue ) %] |
| 360 |
([% item.notforloanvalue %]) |
| 361 |
[% END %] |
| 345 |
[% END %] |
362 |
[% END %] |
| 346 |
[% ELSE %] |
|
|
| 347 |
<span class="dmg">Damaged</span> |
| 348 |
[% END %] |
| 349 |
[% END %] |
| 350 |
|
363 |
|
| 351 |
[% IF ( itemloo.itemnotforloan ) %] |
364 |
[% IF ( item.reservedate ) %] |
| 352 |
Not for loan |
365 |
[% IF ( item.waitingdate ) %] |
| 353 |
[% IF ( itemloo.notforloanvalue ) %] |
366 |
Waiting |
| 354 |
([% itemloo.notforloanvalue %]) |
367 |
[% ELSE %] |
| 355 |
[% END %] |
368 |
Item-level hold |
| 356 |
[% END %] |
369 |
[% END %] |
|
|
370 |
[% IF ( canreservefromotherbranches ) %] |
| 371 |
for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.ReservedForBorrowernumber %]"> |
| 372 |
[% IF ( item.hidepatronname ) %] |
| 373 |
[% item.Reservedcardnumber %] |
| 374 |
[% ELSE %] |
| 375 |
[% item.ReservedForFirstname %] [% item.ReservedForSurname %] |
| 376 |
[% END %] |
| 377 |
</a> |
| 378 |
[% END %] |
| 379 |
[% IF ( item.waitingdate ) %] |
| 380 |
at[% ELSE %]for delivery at |
| 381 |
[% END %] |
| 382 |
[% item.ExpectedAtLibrary %] |
| 383 |
[% IF ( item.waitingdate ) %] |
| 384 |
since [% item.waitingdate %] |
| 385 |
[% ELSE %] |
| 386 |
[% IF ( item.reservedate ) %] |
| 387 |
(placed [% item.reservedate %]) |
| 388 |
[% END %] |
| 389 |
[% END %] |
| 390 |
[% END %] |
| 391 |
[% UNLESS ( item.itemnotforloan or item.onloan or item.itemlost or item.wthdrawn or item.damaged or item.transfertwhen or item.reservedate ) %] |
| 392 |
Available |
| 393 |
[% END %] |
| 357 |
|
394 |
|
| 358 |
|
395 |
[% IF ( item.restricted ) %] |
| 359 |
[% IF ( itemloo.reservedate ) %] |
396 |
<span class="restricted">([% item.restricted %])</span> |
| 360 |
[% IF ( itemloo.waitingdate ) %] |
397 |
[% END %] |
| 361 |
Waiting |
|
|
| 362 |
[% ELSE %] |
| 363 |
Item-level hold |
| 364 |
[% END %] |
| 365 |
[% IF ( canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]"> |
| 366 |
[% IF ( itemloo.hidepatronname ) %] |
| 367 |
[% itemloo.Reservedcardnumber %] |
| 368 |
[% ELSE %] |
| 369 |
[% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %] |
| 370 |
[% END %] |
| 371 |
</a>[% END %] |
| 372 |
[% IF ( itemloo.waitingdate ) %] |
| 373 |
at[% ELSE %]for delivery at |
| 374 |
[% END %] [% itemloo.ExpectedAtLibrary %] |
| 375 |
[% IF ( itemloo.waitingdate ) %] |
| 376 |
since [% itemloo.waitingdate %] |
| 377 |
[% ELSE %] |
| 378 |
[% IF ( itemloo.reservedate ) %](placed [% itemloo.reservedate %])[% END %] |
| 379 |
[% END %] |
| 380 |
[% END %] |
| 381 |
[% UNLESS ( itemloo.itemnotforloan ) %][% UNLESS ( itemloo.onloan ) %][% UNLESS ( itemloo.itemlost ) %][% UNLESS ( itemloo.wthdrawn ) %][% UNLESS ( itemloo.damaged ) %][% UNLESS ( itemloo.transfertwhen ) %][% UNLESS ( itemloo.reservedate ) %] |
| 382 |
Available |
| 383 |
[% END %][% END %][% END %][% END %][% END %][% END %][% END %] |
| 384 |
|
398 |
|
| 385 |
[% IF ( itemloo.restricted ) %]<span class="restricted">([% itemloo.restricted %])</span>[% END %] |
|
|
| 386 |
|
| 387 |
</td> |
399 |
</td> |
| 388 |
<td class="datelastseen">[% itemloo.datelastseen %]</td> |
400 |
<td class="datelastseen">[% item.datelastseen %]</td> |
| 389 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% itemloo.type %]&itemnumber=[% itemloo.itemnumber %]&biblionumber=[% itemloo.biblionumber %]&bi=[% itemloo.biblioitemnumber %]#item[% itemloo.itemnumber %]">[% itemloo.barcode %]</a></td> |
401 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type %]&itemnumber=[% item.itemnumber %]&biblionumber=[% item.biblionumber %]&bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a></td> |
| 390 |
[% IF ( volinfo ) %] <td class="enumchron"> |
402 |
[% IF ( volinfo ) %] |
| 391 |
[% IF ( itemdata_enumchron ) %] |
403 |
<td class="enumchron"> |
| 392 |
[% IF ( itemloo.enumchron ) %] |
404 |
[% IF ( itemdata_enumchron ) %] |
| 393 |
[% itemloo.enumchron %][% IF ( itemloo.serialseq ) %] -- [% END %] |
405 |
[% IF ( item.enumchron ) %] |
| 394 |
[% END %] |
406 |
[% item.enumchron %] |
| 395 |
[% itemloo.serialseq %][% IF ( itemloo.publisheddate ) %] ([% itemloo.publisheddate %])[% END %] |
407 |
[% IF ( item.serialseq ) %] -- [% END %] |
| 396 |
[% END %] |
408 |
[% END %] |
| 397 |
</td>[% END %] |
409 |
[% item.serialseq %] |
| 398 |
[% IF ( itemdata_uri ) %] |
410 |
[% IF ( item.publisheddate ) %] ([% item.publisheddate %])[% END %] |
| 399 |
<td class="uri"><a href="[% itemloo.uri %]">[% itemloo.uri %]</a></td> |
411 |
[% END %] |
| 400 |
[% END %] |
412 |
</td> |
| 401 |
[% IF ( itemdata_copynumber ) %] |
413 |
[% END %] |
| 402 |
<td class="copynumber">[% itemloo.copynumber %]</td> |
414 |
[% IF ( itemdata_uri ) %] |
| 403 |
[% END %] |
415 |
<td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td> |
| 404 |
[% IF materials %] |
416 |
[% END %] |
| 405 |
<td class="materials"> [% itemloo.materials %] </td> |
417 |
[% IF ( itemdata_copynumber ) %] |
| 406 |
[% END %] |
418 |
<td class="copynumber">[% item.copynumber %]</td> |
| 407 |
[% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %] |
419 |
[% END %] |
| 408 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %] |
420 |
[% IF materials %] |
| 409 |
<td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print label</a></td> |
421 |
<td class="materials"> [% item.materials %] </td> |
| 410 |
[% END %] |
422 |
[% END %] |
| 411 |
[% IF ( hostrecords ) %] |
423 |
[% IF ( itemdata_itemnotes ) %] |
| 412 |
<td>[% IF ( itemloo.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemloo.hostbiblionumber %]" >[% itemloo.hosttitle %]</a>[% END %]</td> |
424 |
<td><div class="itemnotes">[% item.itemnotes %]</div></td> |
| 413 |
[% END %] |
425 |
[% END %] |
| 414 |
[% IF ( analyze ) %]<td> |
426 |
[% IF ( SpineLabelShowPrintOnBibDetails ) %] |
| 415 |
[% IF ( itemloo.countanalytics ) %] |
427 |
<td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode %]" >Print label</a></td> |
| 416 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% itemloo.itemnumber %]">[% itemloo.countanalytics %] analytics</a> |
428 |
[% END %] |
| 417 |
[% END %]</td> |
429 |
[% IF ( hostrecords ) %] |
| 418 |
[% END %] |
430 |
<td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber %]" >[% item.hosttitle %]</a>[% END %]</td> |
| 419 |
[% IF ( analyze ) %] |
431 |
[% END %] |
| 420 |
<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% itemloo.biblionumber %]&hostitemnumber=[% itemloo.itemnumber %]">Create analytics</a></td> |
432 |
[% IF ( analyze ) %] |
| 421 |
[% END %] |
433 |
<td> |
|
|
434 |
[% IF ( item.countanalytics ) %] |
| 435 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber %]">[% item.countanalytics %] analytics</a> |
| 436 |
[% END %] |
| 437 |
</td> |
| 438 |
[% END %] |
| 439 |
[% IF ( analyze ) %] |
| 440 |
<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber %]&hostitemnumber=[% item.itemnumber %]">Create analytics</a></td> |
| 441 |
[% END %] |
| 422 |
|
442 |
|
| 423 |
</tr> |
443 |
</tr> |
| 424 |
[% END %] |
444 |
[% END %] |
| 425 |
</table> |
445 |
</tbody> |
|
|
446 |
</table> |
| 447 |
[% END %][%# end of block items_table %] |
| 448 |
|
| 449 |
<div id="holdings"> |
| 450 |
[% IF ( count ) %] |
| 451 |
[% IF ( showncount ) %] |
| 452 |
[% PROCESS items_table items=itemloop %] |
| 426 |
[% END %] |
453 |
[% END %] |
| 427 |
[% IF ( hiddencount ) %] |
454 |
[% IF ( hiddencount ) %] |
| 428 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a> |
455 |
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items ([% hiddencount %] hidden)</a> |
|
Lines 445-450
function verify_images() {
Link Here
|
| 445 |
[% END %] |
472 |
[% END %] |
| 446 |
[% END %] |
473 |
[% END %] |
| 447 |
</div> |
474 |
</div> |
|
|
475 |
|
| 476 |
[% IF (SeparateHoldings) %] |
| 477 |
<div id="otherholdings"> |
| 478 |
[% IF (otheritemloop.size) %] |
| 479 |
[% PROCESS items_table items=otheritemloop %] |
| 480 |
[% ELSE %] |
| 481 |
No other items. |
| 482 |
[% END %] |
| 483 |
</div> |
| 484 |
[% END %] |
| 448 |
|
485 |
|
| 449 |
<div id="description"> |
486 |
<div id="description"> |
| 450 |
<div class="content_set"> |
487 |
<div class="content_set"> |