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 suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
189 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
190 [% IF ( LocalCoverImages ) %]
191 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
193 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
197 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %][% END %]
198 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
199 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
201 [% FOREACH tab IN tabs %]
202 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
206 [% items_table_block_iter = 0 %]
207 [% BLOCK items_table %]
208 [% items_table_block_iter = items_table_block_iter + 1 %]
209 <div class="[% tab | html %]_table_table_controls">
210 [% IF (StaffDetailItemSelection) %]
211 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
212 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
213 <span class="itemselection_actions">
215 [% IF CAN_user_tools_items_batchdel %]
216 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
218 [% IF CAN_user_tools_items_batchmod %]
219 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
224 <table class="items_table" id="[% tab | html %]_table">
227 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
228 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
229 <th>Current location</th>
230 <th>Home library</th>
231 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
234 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
235 <th class="title-string">Serial enumeration / chronology</th>
237 <th>Serial enumeration / chronology</th>
241 <th class="title-string">Last seen</th>
242 <th class="title-string">Date accessioned</th>
244 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
245 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
246 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
247 [% IF materials %]<th>Materials specified</th>[% END %]
248 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
249 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
250 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
251 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
252 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
253 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
254 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
258 [% FOREACH item IN items %]
260 [% IF (StaffDetailItemSelection) %]
261 <td style="text-align:center;vertical-align:middle">
262 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
265 [% IF ( item_level_itypes ) %]
267 [% IF !noItemTypeImages && item.imageurl %]
268 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
270 [% item.translated_description | html %]
273 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
274 <td class="homebranch">
275 [% Branches.GetName(item.homebranch) | html %]
276 <span class="shelvingloc">
278 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
279 Note that permanent location is a code, and location may be an authval.
281 [% IF item.permanent_location %]
282 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
283 [% permloc_authval | html %]
284 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
285 ([% item.location | html %])
288 [% item.location | html %]
292 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
293 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
295 <td class="enumchron">
296 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
297 [% IF ( itemdata_enumchron ) %]
298 [% IF item.enumchron && item.serialseq %]
299 <span class="enum">[% item.enumchron | html %]</span>
300 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
301 <span class="sep"> -- </span>
302 <span class="serialseq">[% item.serialseq | html %]</span>
304 [% ELSIF item.enumchron %]
305 <span class="enum">[% item.enumchron | html %]</span>
306 [% ELSIF item.serialseq %]
307 <span class="serialseq">[% item.serialseq | html %]</span>
309 [% IF ( item.publisheddate ) %]
310 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
318 [% IF item.CheckedOutFor %]
319 [% IF item.onsite_checkout %]
320 <span>Currently in local use
322 <span class="datedue">Checked out
324 [% UNLESS ( item.NOTSAMEBRANCH ) %]
325 [% IF item.onsite_checkout %]
330 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
332 : due [% item.datedue | html %]
334 [% ELSIF ( item.transfertwhen ) %]
335 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
338 [% IF ( item.itemlost ) %]
339 [% IF itemlostloop %]
340 [% FOREACH itemlostloo IN itemlostloop %]
341 [% IF itemlostloo.authorised_value == item.itemlost %]
342 <span class="lost">[% itemlostloo.lib | html %]</span>
346 <span class="lost">Unavailable (lost or missing)</span>
350 [% IF ( item.withdrawn ) %]
351 [% IF itemwithdrawnloop %]
352 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
353 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
354 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
358 <span class="wdn">Withdrawn</span>
362 [% IF ( item.damaged ) %]
363 [% IF itemdamagedloop %]
364 [% FOREACH itemdamagedloo IN itemdamagedloop %]
365 [% IF itemdamagedloo.authorised_value == item.damaged %]
366 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
370 <span class="dmg">Damaged</span>
374 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
376 [% IF ( item.notforloanvalue ) %]
377 ([% item.notforloanvalue | html %])
381 [% SET hold = item.first_hold %]
383 [% IF hold.waitingdate %]
384 Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].
385 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
387 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
390 There is an item level hold on this item (priority = [% hold.priority | html %]).
393 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
397 [% IF ( item.restricted ) %]
398 <span class="restricted">([% item.restrictedvalue | html %])</span>
402 <td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
403 <td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
404 <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>
405 [% IF ( itemdata_uri ) %]
406 [% IF Koha.Preference('URLLinkText') %]
407 <td class="uri"><a href="[% item.uri | url %]">[% Koha.Preference('URLLinkText') | html %]</a></td>
409 <td class="uri"><a href="[% item.uri | url %]">Link to resource</a></td>
414 [% IF ( itemdata_copynumber ) %]
415 <td class="copynumber">[% item.copynumber | html %]</td>
417 [% IF ( itemdata_stocknumber ) %]
418 <td class="stocknumber">[% item.stocknumber | html %]</td>
421 <td class="materials"> [% item.materials | html %] </td>
423 [% IF ( itemdata_itemnotes ) %]
424 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
426 [% IF itemdata_nonpublicnotes %]
427 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
429 [% IF ( hostrecords ) %]
430 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
434 [% IF ( item.countanalytics ) %]
435 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
440 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
443 [% IF ShowCourseReserves %]
445 [% IF item.course_reserves %]
446 [% FOREACH r IN item.course_reserves %]
447 [% IF r.course.enabled == 'yes' %]
449 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
450 [% r.course.course_name | html %]
451 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
452 [% IF r.course.section %] [% r.course.section | html %] [% END %]
453 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
462 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
463 <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>
466 [% IF CAN_user_editcatalogue_edit_items %]
468 [% UNLESS item.cannot_be_edited %]
469 <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>
477 [% END %][%# end of block items_table %]
481 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
482 <span class="results_summary NovelistSelect" style="display:none;">
483 <span class="label">Novelist Select: </span>
484 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
489 [% IF ( showncount ) %]
490 [% PROCESS items_table tab="holdings" items=itemloop %]
492 [% IF ( hiddencount ) %]
493 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
495 [% IF ( debug_display ) %]
498 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
499 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
500 <tr><td>serial</td><td>[% serial | html %]</td></tr>
504 [% IF ( ALTERNATEHOLDINGS ) %]
505 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
506 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
509 <div id="noitems">No physical items for this record</div>
513 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
514 <span class="results_summary NovelistSelect" style="display:none;">
515 <span class="label">Novelist Select: </span>
516 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
521 [% IF (SeparateHoldings) %]
522 <div id="otherholdings">
523 [% IF (otheritemloop.size) %]
524 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
531 [% IF ( MARCNOTES || notes ) %]
533 <div id="description">
534 <div class="content_set">
536 [% IF ( MARCNOTES ) %]
537 [% FOREACH MARCNOTE IN MARCNOTES %]
539 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
540 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
542 [% MARCNOTE.marcnote | html | html_line_break %]
548 <p>[% notes | html %]</p>
556 [% IF ( subscriptionsnumber ) %]
557 <div id="subscriptions">
558 <div id="catalogue_detail_subscriptions">
559 <h2>This is a serial subscription</h2>
560 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
561 [% FOREACH subscription IN subscriptions %]
562 [% IF subscription.branchcode %]
563 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
565 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
566 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
567 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
568 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
569 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
570 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
571 [% IF ( subscription.latestserials ) %]
572 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
576 <th>Date arrived</th>
577 <th>Date published</th>
581 [% FOREACH latestserial IN subscription.latestserials %]
583 <td>[% latestserial.serialseq | html %]</td>
584 <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
585 <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
587 [% IF ( latestserial.status1 ) %]Expected[% END %]
588 [% IF ( latestserial.status2 ) %]Arrived[% END %]
589 [% IF ( latestserial.status3 ) %]Late[% END %]
590 [% IF ( latestserial.status4 ) %]Missing[% END %]
591 [% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
592 [% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
593 [% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
594 [% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
595 [% IF ( latestserial.status5 ) %]Not issued[% END %]
596 [% IF ( latestserial.status6 ) %]Delete[% END %]
597 [% IF ( latestserial.status7 ) %]Claimed[% END %]
598 [% IF ( latestserial.status8 ) %]Stopped[% END %]
600 <td>[% latestserial.notes | html %]</td>
605 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
611 [% IF Koha.Preference('AcquisitionDetails') %]
612 <div id="acq_details">
613 [% IF orders.count %]
619 <th>Basket group</th>
621 <th>Order number</th>
622 <th class="title-string">Creation date</th>
623 <th class="title-string">Receive date</th>
626 <th>Internal note</th>
627 <th>Subscription</th>
628 <th>Subscription callnumber</th>
632 [% FOR order IN orders %]
633 [% SET basket = order.basket %]
634 [% SET vendor = basket.bookseller %]
637 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
640 [% IF order.invoiceid %]
641 [% IF CAN_user_acquisition %]
642 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
643 title="Invoice detail page">
644 [% order.invoice.invoicenumber | html %]</a>
646 [% order.invoice.invoicenumber | html %]
651 [% IF basket.basketgroupid %]
652 [% SET basket_group = basket.basket_group %]
653 [% IF CAN_user_acquisition_group_manage %]
654 <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>
656 [% basket_group.name | html %] ([% basket_group.id | html %])
660 <td>[% IF CAN_user_acquisition_order_manage %]
661 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
663 [% basket.basketname | html %] ([% basket.basketno | html %])
665 <td>[% order.ordernumber | html %]</td>
666 <td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
667 <td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
669 [% SWITCH order.orderstatus %]
671 [% CASE 'ordered' %]Ordered
672 [% CASE 'partial' %]Partial
673 [% CASE 'complete' %]Complete
674 [% CASE 'cancelled' %]Cancelled
677 <td>[% order.quantity | html %]</td>
678 <td>[% order.order_internalnote | html %]</td>
680 [% IF order.subscriptionid %]
681 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
685 [% IF order.subscriptionid %]
686 [% order.subscription.callnumber | html %]
694 There is no order for this biblio.
699 [% IF suggestions.count %]
700 <div id="suggestion_details">
701 <table id="suggestions" class="sorted">
704 <th class="NoSort"> </th>
705 <th class="anti-the">Suggestion</th>
706 <th>Suggested by - on</th>
707 <th>Managed by - on</th>
708 <th>Last modification by - on</th>
715 [% FOREACH suggestion IN suggestions %]
717 <td>[% suggestion.suggestionid | html %]</td>
719 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
720 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
722 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
723 [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
724 [% IF ( suggestion.isbn ) %]; ISBN:<i>[% suggestion.isbn | html %]</i> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <i>[% suggestion.publicationyear | html %]</i> [% END %][% IF ( suggestion.place ) %] in <i>[% suggestion.place | html %]</i> [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestion.note ) %]<div class="note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
725 [% IF suggestion.archived %]<br /><i class="fa fa-archive"> Archived[% END %]
728 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
729 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
732 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
733 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
736 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
737 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
740 [% Branches.GetName( suggestion.branchcode ) | html %]
743 [% suggestion.fund.budget_name | html %]
746 [% IF suggestion.STATUS == 'ASKED' %]Pending
747 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
748 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
749 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
750 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
751 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
752 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
753 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
754 [% ELSE %]Status unknown
756 [% IF suggestion.reason %]
757 <br />([% suggestion.reason | html %])
767 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
768 <div id="editions"><h4>Editions</h4>
770 [% 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 %]
771 [% 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 %]
772 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
773 [% IF ( XISBN.publishercode ) %]
774 [% 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 %]
776 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
777 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
781 </table></div>[% END %]
784 [% IF ( LocalCoverImages ) %]
786 [% IF ( localimages.0 ) %]
787 <p>Click on an image to view it in the image viewer</p>
788 <ul class="thumbnails">
789 [% FOREACH image IN localimages %]
791 <li id="imagenumber-[% image | html %]" class="thumbnail">
792 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
793 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
795 [% IF CAN_user_tools_upload_local_cover_images %]
796 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
802 [% ELSE # - No image passed JavaScript takes care %]
803 No images have been uploaded for this bibliographic record yet.
805 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
806 <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>
812 [% IF ( HTML5MediaEnabled ) %]
813 <div id="html5media">
814 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
816 <[% HTML5MediaParent | html %] controls preload=none>
817 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
818 [[% HTML5MediaParent | html %] tag not supported by your browser.]
819 </[% HTML5MediaParent | html %]>
826 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
827 <div id="NovelistSelect" class="novelistSelect">
828 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
832 [% FOREACH tab IN tabs %]
833 <div id="[% tab.id | html %]">
834 [% tab.content | $raw %]
838 </div><!-- /bibliodetails -->
840 <div id="export" style="margin-top: 1em;">
841 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
843 <th>Save record</th> </tr>
844 <tr><td> Select download format: <select name="format">
845 <option value="mods">MODS (XML)</option>
846 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
847 <option value="marcxml">MARCXML</option>
848 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
849 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
850 <input type="submit" name="save" value="Download record" /></td>
853 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
859 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
860 <div class="modal-dialog modal-lg">
861 <div class="modal-content">
862 <div class="modal-header">
863 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
864 <h3 id="marcPreviewLabel">MARC preview</h3>
866 <div class="modal-body">
867 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
869 <div class="modal-footer">
870 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
877 </div> <!-- /.col-sm-10.col-sm-push-2 -->
879 <div class="col-sm-2 col-sm-pull-10">
881 [% INCLUDE 'biblio-view-menu.inc' %]
883 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
884 </div> <!-- /.row -->
888 [% MACRO jsinclude BLOCK %]
889 [% INCLUDE 'catalog-strings.inc' %]
890 [% Asset.js("js/catalog.js") | $raw %]
891 [% Asset.js("js/coce.js") | $raw %]
893 var interface = "[% interface | html %]";
894 var theme = "[% theme | html %]";
895 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
896 function verify_images() {
897 $("#bookcoverimg").each(function(i){
898 $(this).find('img').each(function(i){
899 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'))) {
902 if ((w == 1) || (h == 1)) {
903 $("#amazon-bookcoverimg").remove();
904 $("#catalogue_detail_biblio").attr("class","col-xs-12");
905 } else if ((this.complete != null) && (!this.complete)) {
906 $("#amazon-bookcoverimg").remove();
907 $("#catalogue_detail_biblio").attr("class","col-xs-12");
911 if( $(this).find('img').length < 1 ) $(this).remove();
913 $("#editions img").each(function(i){
914 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'))) {
917 if ((w == 1) || (h == 1)) {
918 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
919 } else if ((this.complete != null) && (!this.complete)) {
920 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
926 function removeLocalImage(imagenumber) {
927 var thumbnail = $("#imagenumber-" + imagenumber );
928 var copy = thumbnail.html();
929 thumbnail.find("img").css("opacity", ".2");
930 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
932 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
933 success: function(data) {
934 $(data).each( function(i) {
935 if ( this.deleted == 1 ) {
938 thumbnail.html( copy );
939 alert(_("An error occurred on deleting this image"));
941 if ( $('ul.thumbnails > li').length == 0 ) {
942 showNoImageMessage();
946 error: function(data) {
947 thumbnail.html( copy );
948 alert(_("An error occurred on deleting this image"));
953 function showNoImageMessage() {
954 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
955 no_images_msg = '<p>' + no_images_msg + '</p>';
956 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
957 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>");
958 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
960 $('#images').html(no_images_msg);
963 [% IF StaffDetailItemSelection %]
964 function itemSelectionBuildDeleteLink(div) {
965 var itemnumbers = new Array();
966 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
967 itemnumbers.push($(this).val());
969 if (itemnumbers.length > 0) {
970 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
971 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
972 url += '&biblionumber=[% biblionumber | uri %]';
973 url += '&src=CATALOGUING';
974 $('a.itemselection_action_delete').attr('href', url);
981 function itemSelectionBuildModifyLink(div) {
982 var itemnumbers = new Array();
983 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
984 itemnumbers.push($(this).val());
986 if (itemnumbers.length > 0) {
987 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
988 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
989 url += '&biblionumber=[% biblionumber | uri %]';
990 url += '&src=CATALOGUING';
991 $('a.itemselection_action_modify').attr('href', url);
998 function itemSelectionBuildActionLinks(tab) {
999 var div = $("#" + tab);
1000 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1001 var modify_link_ok = itemSelectionBuildModifyLink(div);
1002 if (modify_link_ok || delete_link_ok) {
1003 $('.itemselection_actions', div).show();
1005 $('.itemselection_actions', div).hide();
1009 $(document).ready(function() {
1010 $('table.items_table').each(function() {
1011 var div = $(this).parent().attr("id");
1012 itemSelectionBuildActionLinks(div);
1015 $("input[name='itemnumber'][type='checkbox']").change(function() {
1016 var div = $(this).parents('table').parent().parent().attr("id");
1017 itemSelectionBuildActionLinks(div);
1020 $(".SelectAll").on("click",function(e){
1022 var tab = $(this).data("tab");
1023 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1024 itemSelectionBuildActionLinks(tab);
1027 $(".ClearAll").on("click",function(e){
1029 var tab = $(this).data("tab");
1030 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1031 itemSelectionBuildActionLinks(tab);
1036 $(document).ready(function() {
1037 $('#bibliodetails').tabs();
1038 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1039 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1041 $('#search-form').focus();
1042 $('.thumbnails > li > .remove').click(function() {
1043 var result = confirm(_("Are you sure you want to delete this cover image?"));
1045 if ( result == true ) {
1046 var imagenumber = $(this).parent().attr('id').split('-')[1];
1047 removeLocalImage(imagenumber);
1052 [%# inject no images message %]
1053 [% IF LocalCoverImages %]
1054 KOHA.LocalCover.GetCoverFromBibnumber(true);
1056 [% IF ( IntranetCoce && CoceProviders ) %]
1057 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1060 $("body").on("click",".previewMARC", function(e){
1062 var page = $(this).attr("href");
1063 $("#marcPreview .modal-body").load(page + " table");
1064 $('#marcPreview').modal({show:true});
1066 $("#marcPreview").on("hidden.bs.modal", function(){
1067 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1069 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1070 novSelect.loadContentForQuery({
1071 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1072 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1075 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1076 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1078 if ( d.length > 0 ){ //If no content
1079 $(".NovelistSelect").show();
1083 $(".print-label").on("click", function(e){
1085 link = $(this).attr("href");
1086 openWindow(link,"Print spine label",400,400);
1090 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1094 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1095 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1097 [% INCLUDE 'datatables.inc' %]
1098 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1099 [% INCLUDE 'strings.inc' %]
1100 [% INCLUDE 'columns_settings.inc' %]
1101 [% Asset.js("js/browser.js") | $raw %]
1102 [% Asset.js("js/table_filters.js") | $raw %]
1105 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1108 $(document).ready(function() {
1109 var ids = ['holdings_table', 'otherholdings_table'];
1111 for (var i in ids) {
1113 var dt_parameters = {
1116 'bAutoWidth': false,
1118 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1119 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1122 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1125 [% IF Koha.Preference('AcquisitionDetails') %]
1126 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1127 var acquisitiondetails_table = KohaTable("orders", {
1128 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1130 'bAutoWidth': false,
1131 "aaSorting": [[ 4, "desc" ]],
1133 { "aTargets": "title-string", "sType": "title-string" }
1135 }, columns_settings);
1138 [% IF suggestions.count %]
1139 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1141 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1142 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1144 "sPaginationType": "full"
1150 [% INCLUDE 'intranet-bottom.inc' %]