5 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
9 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12 [% IF Koha.Preference('AmazonAssocTag') %]
13 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
15 [% AmazonAssocTag = '' %]
18 [% ShowCourseReserves = 0 | html %]
19 [% IF UseCourseReserves %]
20 [% FOREACH item IN itemloop %]
21 [% IF item.course_reserves %]
22 [% FOREACH r IN item.course_reserves %]
23 [% IF r.course.enabled == 'yes' %]
24 [% ShowCourseReserves = 1 | html %]
31 [% SET footerjs = 1 %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>Koha › Catalog ›
34 [% IF ( unknownbiblionumber ) %]
37 Details for [% INCLUDE 'biblio-title-head.inc' %]
40 [% INCLUDE 'doc-head-close.inc' %]
43 <body id="catalog_detail" class="catalog">
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'cat-search.inc' %]
48 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
49 [% IF ( unknownbiblionumber ) %]
52 Details for <i>[% INCLUDE 'biblio-title.inc' %]</i>
56 <div class="main container-fluid">
58 <div class="col-sm-10 col-sm-push-2">
62 [% IF ( unknownbiblionumber ) %]
63 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
66 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
67 [% CoceProviders = Koha.Preference('CoceProviders') %]
68 [% CoceHost = Koha.Preference('CoceHost') %]
70 [% INCLUDE 'cat-toolbar.inc' %]
71 [% IF decoding_error %]
73 There is an error with this bibliographic record, the view may be degraded.
74 <br/> Error: [% decoding_error | html %]
78 <!-- COinS / OpenURL -->
79 <span class="Z3988" title="[% ocoins | html %]"></span>
82 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
83 [% IF ( XSLTDetailsDisplay ) %]
84 <div id="catalogue_detail_biblio" class="col-xs-9">
86 <div id="catalogue_detail_biblio" class="col-xs-9">
89 <div id="catalogue_detail_biblio" class="col-xs-12">
94 [% IF shelves.count %]
95 <span class="results_summary"><span class="label">Lists that include this title: </span>
96 [% FOREACH s IN shelves %]
97 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
98 [% IF ( loop.last ) %][% ELSE %]|[% END %]
102 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
103 <span class="results_summary"><span class="label">Tags:</span>
104 [% FOREACH TagLoo IN TagLoop %]
105 [% IF ( CAN_user_tools_moderate_tags ) %]
106 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
108 [% TagLoo.term | html %]
110 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
114 <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber | uri %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
116 [% IF ( holdcount ) %]
117 <span class="results_summary">
118 <span class="label">Holds:</span>
119 <span class="number_box">
120 [% IF CAN_user_reserveforothers_place_holds %]
121 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
123 <span>[% holdcount | html %]</span>
129 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
130 <span class="results_summary">
131 <span class="label">Article requests:</span>
132 <span class="number_box">
133 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
138 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
139 </div><div class="col-xs-3" id="bookcoverimg">
140 [% IF ( LocalCoverImages ) %]
141 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
143 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
144 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" /></a>
146 [% IF ( AmazonCoverImages ) %]
147 <div id="amazon-bookcoverimg">
148 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
149 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
152 [% IF ( IntranetCoce && CoceProviders ) %]
153 [% coce_id = normalized_ean || normalized_isbn %]
154 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
156 <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
158 <span class="no-image">No cover image available</span>
163 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
164 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
170 <div id="bibliodetails" class="toptabs">
173 [% IF (SeparateHoldings) %]
175 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
178 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
182 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
185 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
186 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
187 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
188 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
189 [% IF ( LocalCoverImages ) %]
190 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
192 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
196 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %][% END %]
197 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
198 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
200 [% FOREACH tab IN tabs %]
201 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
205 [% items_table_block_iter = 0 %]
206 [% BLOCK items_table %]
207 [% items_table_block_iter = items_table_block_iter + 1 %]
208 <div class="[% tab | html %]_table_table_controls">
209 [% IF (StaffDetailItemSelection) %]
210 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
211 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
212 <span class="itemselection_actions">
214 [% IF CAN_user_tools_items_batchdel %]
215 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
217 [% IF CAN_user_tools_items_batchmod %]
218 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
223 <table class="items_table" id="[% tab | html %]_table">
226 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
227 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
228 <th>Current location</th>
229 <th>Home library</th>
230 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
233 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
234 <th class="title-string">Serial enumeration / chronology</th>
236 <th>Serial enumeration / chronology</th>
240 <th class="title-string">Last seen</th>
241 <th class="title-string">Date accessioned</th>
243 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
244 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
245 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
246 [% IF materials %]<th>Materials specified</th>[% END %]
247 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
248 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
249 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
250 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
251 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
252 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
253 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
257 [% FOREACH item IN items %]
259 [% IF (StaffDetailItemSelection) %]
260 <td style="text-align:center;vertical-align:middle">
261 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
264 [% IF ( item_level_itypes ) %]
266 [% IF !noItemTypeImages && item.imageurl %]
267 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
269 [% item.translated_description | html %]
272 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
273 <td class="homebranch">
274 [% Branches.GetName(item.homebranch) | html %]
275 <span class="shelvingloc">
277 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
278 Note that permanent location is a code, and location may be an authval.
280 [% IF item.permanent_location %]
281 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
282 [% permloc_authval | html %]
283 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
284 ([% item.location | html %])
287 [% item.location | html %]
291 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
292 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
294 <td class="enumchron">
295 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
296 [% IF ( itemdata_enumchron ) %]
297 [% IF item.enumchron && item.serialseq %]
298 <span class="enum">[% item.enumchron | html %]</span>
299 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
300 <span class="sep"> -- </span>
301 <span class="serialseq">[% item.serialseq | html %]</span>
303 [% ELSIF item.enumchron %]
304 <span class="enum">[% item.enumchron | html %]</span>
305 [% ELSIF item.serialseq %]
306 <span class="serialseq">[% item.serialseq | html %]</span>
308 [% IF ( item.publisheddate ) %]
309 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
317 [% IF item.CheckedOutFor %]
318 [% IF item.onsite_checkout %]
319 <span>Currently in local use
321 <span class="datedue">Checked out
323 [% UNLESS ( item.NOTSAMEBRANCH ) %]
324 [% IF item.onsite_checkout %]
329 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
331 : due [% item.datedue | html %]
333 [% ELSIF ( item.transfertwhen ) %]
334 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
337 [% IF ( item.itemlost ) %]
338 [% IF itemlostloop %]
339 [% FOREACH itemlostloo IN itemlostloop %]
340 [% IF itemlostloo.authorised_value == item.itemlost %]
341 <span class="lost">[% itemlostloo.lib | html %]</span>
345 <span class="lost">Unavailable (lost or missing)</span>
349 [% IF ( item.withdrawn ) %]
350 [% IF itemwithdrawnloop %]
351 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
352 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
353 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
357 <span class="wdn">Withdrawn</span>
361 [% IF ( item.damaged ) %]
362 [% IF itemdamagedloop %]
363 [% FOREACH itemdamagedloo IN itemdamagedloop %]
364 [% IF itemdamagedloo.authorised_value == item.damaged %]
365 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
369 <span class="dmg">Damaged</span>
373 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
375 [% IF ( item.notforloanvalue ) %]
376 ([% item.notforloanvalue | html %])
380 [% SET hold = item.first_hold %]
382 [% IF hold.waitingdate %]
383 Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].
384 [% ELSIF hold.priority == 1 %]
385 Item-level hold (placed [% hold.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( hold.branchcode ) | html %].
387 There is an item level hold on this item (priority = [% hold.priority | html %]).
389 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
391 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
394 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
398 [% IF ( item.restricted ) %]
399 <span class="restricted">([% item.restrictedvalue | html %])</span>
403 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
404 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
405 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblionumber | uri %]&bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
406 [% IF ( itemdata_uri ) %]
407 [% IF Koha.Preference('URLLinkText') %]
408 <td class="uri"><a href="[% item.uri | url %]">[% Koha.Preference('URLLinkText') | html %]</a></td>
410 <td class="uri"><a href="[% item.uri | url %]">Link to resource</a></td>
415 [% IF ( itemdata_copynumber ) %]
416 <td class="copynumber">[% item.copynumber | html %]</td>
418 [% IF ( itemdata_stocknumber ) %]
419 <td class="stocknumber">[% item.stocknumber | html %]</td>
422 <td class="materials"> [% item.materials | html %] </td>
424 [% IF ( itemdata_itemnotes ) %]
425 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
427 [% IF itemdata_nonpublicnotes %]
428 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
430 [% IF ( hostrecords ) %]
431 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
435 [% IF ( item.countanalytics ) %]
436 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
441 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
444 [% IF ShowCourseReserves %]
446 [% IF item.course_reserves %]
447 [% FOREACH r IN item.course_reserves %]
448 [% IF r.course.enabled == 'yes' %]
450 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
451 [% r.course.course_name | html %]
452 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
453 [% IF r.course.section %] [% r.course.section | html %] [% END %]
454 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
463 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
464 <td><a class="btn btn-default btn-xs print-label" href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% item.barcode | uri %]"><i class="fa fa-print"></i> Print label</a></td>
467 [% IF CAN_user_editcatalogue_edit_items %]
469 [% UNLESS item.cannot_be_edited %]
470 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
478 [% END %][%# end of block items_table %]
482 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
483 <span class="results_summary NovelistSelect" style="display:none;">
484 <span class="label">Novelist Select: </span>
485 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
490 [% IF ( showncount ) %]
491 [% PROCESS items_table tab="holdings" items=itemloop %]
493 [% IF ( hiddencount ) %]
494 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
496 [% IF ( debug_display ) %]
499 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
500 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
501 <tr><td>serial</td><td>[% serial | html %]</td></tr>
505 [% IF ( ALTERNATEHOLDINGS ) %]
506 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
507 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
510 <div id="noitems">No physical items for this record</div>
514 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
515 <span class="results_summary NovelistSelect" style="display:none;">
516 <span class="label">Novelist Select: </span>
517 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
522 [% IF (SeparateHoldings) %]
523 <div id="otherholdings">
524 [% IF (otheritemloop.size) %]
525 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
532 [% IF ( MARCNOTES || notes ) %]
534 <div id="description">
535 <div class="content_set">
537 [% IF ( MARCNOTES ) %]
538 [% FOREACH MARCNOTE IN MARCNOTES %]
540 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
541 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
543 [% MARCNOTE.marcnote | html | html_line_break %]
549 <p>[% notes | html %]</p>
557 [% IF ( subscriptionsnumber ) %]
558 <div id="subscriptions">
559 <div id="catalogue_detail_subscriptions">
560 <h2>This is a serial subscription</h2>
561 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
562 [% FOREACH subscription IN subscriptions %]
563 [% IF subscription.branchcode %]
564 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
566 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
567 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
568 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
569 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
570 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
571 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
572 [% IF ( subscription.latestserials ) %]
573 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
577 <th>Date arrived</th>
578 <th>Date published</th>
582 [% FOREACH latestserial IN subscription.latestserials %]
584 <td>[% latestserial.serialseq | html %]</td>
585 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
586 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
588 [% IF ( latestserial.status1 ) %]Expected[% END %]
589 [% IF ( latestserial.status2 ) %]Arrived[% END %]
590 [% IF ( latestserial.status3 ) %]Late[% END %]
591 [% IF ( latestserial.status4 ) %]Missing[% END %]
592 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
593 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
594 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
595 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
596 [% IF ( latestserial.status5 ) %]Not issued[% END %]
597 [% IF ( latestserial.status6 ) %]Delete[% END %]
598 [% IF ( latestserial.status7 ) %]Claimed[% END %]
599 [% IF ( latestserial.status8 ) %]Stopped[% END %]
601 <td>[% latestserial.notes | html %]</td>
606 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
612 [% IF Koha.Preference('AcquisitionDetails') %]
613 <div id="acq_details">
614 [% IF orders.count %]
620 <th>Basket group</th>
622 <th>Order number</th>
623 <th class="title-string">Creation date</th>
624 <th class="title-string">Receive date</th>
627 <th>Internal note</th>
628 <th>Subscription</th>
629 <th>Subscription callnumber</th>
633 [% FOR order IN orders %]
634 [% SET basket = order.basket %]
635 [% SET vendor = basket.bookseller %]
638 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
641 [% IF order.invoiceid %]
642 [% IF CAN_user_acquisition %]
643 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
644 title="Invoice detail page">
645 [% order.invoice.invoicenumber | html %]</a>
647 [% order.invoice.invoicenumber | html %]
652 [% IF basket.basketgroupid %]
653 [% SET basket_group = basket.basket_group %]
654 [% IF CAN_user_acquisition_group_manage %]
655 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% vendor.id | uri %]&basketgroupid=[% basket_group.id | uri %]">[% basket_group.name | html%] ([% basket_group.id | html %])</a>
657 [% basket_group.name | html %] ([% basket_group.id | html %])
661 <td>[% IF CAN_user_acquisition_order_manage %]
662 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
664 [% basket.basketname | html %] ([% basket.basketno | html %])
666 <td>[% order.ordernumber | html %]</td>
667 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
668 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
670 [% SWITCH order.orderstatus %]
672 [% CASE 'ordered' %]Ordered
673 [% CASE 'partial' %]Partial
674 [% CASE 'complete' %]Complete
675 [% CASE 'cancelled' %]Cancelled
678 <td>[% order.quantity | html %]</td>
679 <td>[% order.order_internalnote | html %]</td>
681 [% IF order.subscriptionid %]
682 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
686 [% IF order.subscriptionid %]
687 [% order.subscription.callnumber | html %]
695 There is no order for this biblio.
700 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
701 <div id="editions"><h4>Editions</h4>
703 [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
704 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
705 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
706 [% IF ( XISBN.publishercode ) %]
707 [% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
709 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
710 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
714 </table></div>[% END %]
717 [% IF ( LocalCoverImages ) %]
719 [% IF ( localimages.0 ) %]
720 <p>Click on an image to view it in the image viewer</p>
721 <ul class="thumbnails">
722 [% FOREACH image IN localimages %]
724 <li id="imagenumber-[% image | html %]" class="thumbnail">
725 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
726 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
728 [% IF CAN_user_tools_upload_local_cover_images %]
729 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
735 [% ELSE # - No image passed JavaScript takes care %]
736 No images have been uploaded for this bibliographic record yet.
738 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
739 <p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
745 [% IF ( HTML5MediaEnabled ) %]
746 <div id="html5media">
747 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
749 <[% HTML5MediaParent | html %] controls preload=none>
750 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
751 [[% HTML5MediaParent | html %] tag not supported by your browser.]
752 </[% HTML5MediaParent | html %]>
759 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
760 <div id="NovelistSelect" class="novelistSelect">
761 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
765 [% FOREACH tab IN tabs %]
766 <div id="[% tab.id | html %]">
767 [% tab.content | $raw %]
771 </div><!-- /bibliodetails -->
773 <div id="export" style="margin-top: 1em;">
774 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
776 <th>Save record</th> </tr>
777 <tr><td> Select download format: <select name="format">
778 <option value="mods">MODS (XML)</option>
779 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
780 <option value="marcxml">MARCXML</option>
781 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
782 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
783 <input type="submit" name="save" value="Download record" /></td>
786 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
792 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
793 <div class="modal-dialog modal-lg">
794 <div class="modal-content">
795 <div class="modal-header">
796 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
797 <h3 id="marcPreviewLabel">MARC preview</h3>
799 <div class="modal-body">
800 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
802 <div class="modal-footer">
803 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
810 </div> <!-- /.col-sm-10.col-sm-push-2 -->
812 <div class="col-sm-2 col-sm-pull-10">
814 [% INCLUDE 'biblio-view-menu.inc' %]
816 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
817 </div> <!-- /.row -->
821 [% MACRO jsinclude BLOCK %]
822 [% INCLUDE 'catalog-strings.inc' %]
823 [% Asset.js("js/catalog.js") | $raw %]
824 [% Asset.js("js/coce.js") | $raw %]
826 var interface = "[% interface | html %]";
827 var theme = "[% theme | html %]";
828 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
829 function verify_images() {
830 $("#bookcoverimg").each(function(i){
831 $(this).find('img').each(function(i){
832 if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
835 if ((w == 1) || (h == 1)) {
836 $("#amazon-bookcoverimg").remove();
837 $("#catalogue_detail_biblio").attr("class","col-xs-12");
838 } else if ((this.complete != null) && (!this.complete)) {
839 $("#amazon-bookcoverimg").remove();
840 $("#catalogue_detail_biblio").attr("class","col-xs-12");
844 if( $(this).find('img').length < 1 ) $(this).remove();
846 $("#editions img").each(function(i){
847 if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
850 if ((w == 1) || (h == 1)) {
851 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
852 } else if ((this.complete != null) && (!this.complete)) {
853 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
859 function removeLocalImage(imagenumber) {
860 var thumbnail = $("#imagenumber-" + imagenumber );
861 var copy = thumbnail.html();
862 thumbnail.find("img").css("opacity", ".2");
863 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
865 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
866 success: function(data) {
867 $(data).each( function(i) {
868 if ( this.deleted == 1 ) {
871 thumbnail.html( copy );
872 alert(_("An error occurred on deleting this image"));
874 if ( $('ul.thumbnails > li').length == 0 ) {
875 showNoImageMessage();
879 error: function(data) {
880 thumbnail.html( copy );
881 alert(_("An error occurred on deleting this image"));
886 function showNoImageMessage() {
887 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
888 no_images_msg = '<p>' + no_images_msg + '</p>';
889 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
890 var please_upload = _("Upload an image file: %sUpload%s").format("<a class='btn btn-default btn-xs' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber + "&filetype=image'><i class='fa fa-upload' aria-hidden='true'></i> ","</a>");
891 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
893 $('#images').html(no_images_msg);
896 [% IF StaffDetailItemSelection %]
897 function itemSelectionBuildDeleteLink(div) {
898 var itemnumbers = new Array();
899 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
900 itemnumbers.push($(this).val());
902 if (itemnumbers.length > 0) {
903 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
904 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
905 url += '&biblionumber=[% biblionumber | uri %]';
906 url += '&src=CATALOGUING';
907 $('a.itemselection_action_delete').attr('href', url);
914 function itemSelectionBuildModifyLink(div) {
915 var itemnumbers = new Array();
916 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
917 itemnumbers.push($(this).val());
919 if (itemnumbers.length > 0) {
920 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
921 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
922 url += '&biblionumber=[% biblionumber | uri %]';
923 url += '&src=CATALOGUING';
924 $('a.itemselection_action_modify').attr('href', url);
931 function itemSelectionBuildActionLinks(tab) {
932 var div = $("#" + tab);
933 var delete_link_ok = itemSelectionBuildDeleteLink(div);
934 var modify_link_ok = itemSelectionBuildModifyLink(div);
935 if (modify_link_ok || delete_link_ok) {
936 $('.itemselection_actions', div).show();
938 $('.itemselection_actions', div).hide();
942 $(document).ready(function() {
943 $('table.items_table').each(function() {
944 var div = $(this).parent().attr("id");
945 itemSelectionBuildActionLinks(div);
948 $("input[name='itemnumber'][type='checkbox']").change(function() {
949 var div = $(this).parents('table').parent().parent().attr("id");
950 itemSelectionBuildActionLinks(div);
953 $(".SelectAll").on("click",function(e){
955 var tab = $(this).data("tab");
956 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
957 itemSelectionBuildActionLinks(tab);
960 $(".ClearAll").on("click",function(e){
962 var tab = $(this).data("tab");
963 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
964 itemSelectionBuildActionLinks(tab);
969 $(document).ready(function() {
970 $('#bibliodetails').tabs();
971 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
972 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
974 $('#search-form').focus();
975 $('.thumbnails > li > .remove').click(function() {
976 var result = confirm(_("Are you sure you want to delete this cover image?"));
978 if ( result == true ) {
979 var imagenumber = $(this).parent().attr('id').split('-')[1];
980 removeLocalImage(imagenumber);
985 [%# inject no images message %]
986 [% IF LocalCoverImages %]
987 KOHA.LocalCover.GetCoverFromBibnumber(true);
989 [% IF ( IntranetCoce && CoceProviders ) %]
990 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
993 $("body").on("click",".previewMARC", function(e){
995 var page = $(this).attr("href");
996 $("#marcPreview .modal-body").load(page + " table");
997 $('#marcPreview').modal({show:true});
999 $("#marcPreview").on("hidden.bs.modal", function(){
1000 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1002 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1003 novSelect.loadContentForQuery({
1004 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1005 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1008 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1009 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1011 if ( d.length > 0 ){ //If no content
1012 $(".NovelistSelect").show();
1016 $(".print-label").on("click", function(e){
1018 link = $(this).attr("href");
1019 openWindow(link,"Print spine label",400,400);
1023 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1027 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1028 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1030 [% INCLUDE 'datatables.inc' %]
1031 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1032 [% INCLUDE 'strings.inc' %]
1033 [% INCLUDE 'columns_settings.inc' %]
1034 [% Asset.js("js/browser.js") | $raw %]
1035 [% Asset.js("js/table_filters.js") | $raw %]
1038 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1041 $(document).ready(function() {
1042 var ids = ['holdings_table', 'otherholdings_table'];
1044 for (var i in ids) {
1046 var dt_parameters = {
1049 'bAutoWidth': false,
1051 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1052 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1055 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1058 [% IF Koha.Preference('AcquisitionDetails') %]
1059 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1060 var acquisitiondetails_table = KohaTable("orders", {
1061 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1063 'bAutoWidth': false,
1064 "aaSorting": [[ 4, "desc" ]],
1066 { "aTargets": "title-string", "sType": "title-string" }
1068 }, columns_settings);
1073 [% INCLUDE 'intranet-bottom.inc' %]