5 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
13 [% IF Koha.Preference('AmazonAssocTag') %]
14 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
16 [% AmazonAssocTag = '' %]
19 [% ShowCourseReserves = 0 | html %]
20 [% IF UseCourseReserves %]
21 [% FOREACH item IN itemloop %]
22 [% IF item.course_reserves %]
23 [% FOREACH r IN item.course_reserves %]
24 [% IF r.course.enabled == 'yes' %]
25 [% ShowCourseReserves = 1 | html %]
32 [% SET footerjs = 1 %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>Koha › Catalog ›
35 [% IF ( unknownbiblionumber ) %]
38 Details for [% INCLUDE 'biblio-title-head.inc' %]
41 [% INCLUDE 'doc-head-close.inc' %]
44 <body id="catalog_detail" class="catalog">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'cat-search.inc' %]
49 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
50 [% IF ( unknownbiblionumber ) %]
53 Details for <i>[% INCLUDE 'biblio-title.inc' %]</i>
57 <div class="main container-fluid">
59 <div class="col-sm-10 col-sm-push-2">
63 [% IF ( unknownbiblionumber ) %]
64 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
67 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
68 [% CoceProviders = Koha.Preference('CoceProviders') %]
69 [% CoceHost = Koha.Preference('CoceHost') %]
71 [% INCLUDE 'cat-toolbar.inc' %]
72 [% IF decoding_error %]
74 There is an error with this bibliographic record, the view may be degraded.
75 <br/> Error: [% decoding_error | html %]
79 <!-- COinS / OpenURL -->
80 <span class="Z3988" title="[% ocoins | html %]"></span>
83 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
84 [% IF ( XSLTDetailsDisplay ) %]
85 <div id="catalogue_detail_biblio" class="col-xs-9">
87 <div id="catalogue_detail_biblio" class="col-xs-9">
90 <div id="catalogue_detail_biblio" class="col-xs-12">
95 [% IF shelves.count %]
96 <span class="results_summary"><span class="label">Lists that include this title: </span>
97 [% FOREACH s IN shelves %]
98 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
99 [% IF ( loop.last ) %][% ELSE %]|[% END %]
103 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
104 <span class="results_summary"><span class="label">Tags:</span>
105 [% FOREACH TagLoo IN TagLoop %]
106 [% IF ( CAN_user_tools_moderate_tags ) %]
107 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
109 [% TagLoo.term | html %]
111 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
115 <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>
117 [% IF ( holdcount ) %]
118 <span class="results_summary">
119 <span class="label">Holds:</span>
120 <span class="number_box">
121 [% IF CAN_user_reserveforothers_place_holds %]
122 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
124 <span>[% holdcount | html %]</span>
130 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
131 <span class="results_summary">
132 <span class="label">Article requests:</span>
133 <span class="number_box">
134 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
139 [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
140 </div><div class="col-xs-3" id="bookcoverimg">
141 [% IF ( LocalCoverImages ) %]
142 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
144 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
145 <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>
147 [% IF ( AmazonCoverImages ) %]
148 <div id="amazon-bookcoverimg">
149 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
150 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
153 [% IF ( IntranetCoce && CoceProviders ) %]
154 [% coce_id = normalized_ean || normalized_isbn %]
155 <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
157 <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
159 <span class="no-image">No cover image available</span>
164 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
165 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
171 <div id="bibliodetails" class="toptabs">
174 [% IF (SeparateHoldings) %]
176 <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
179 <a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
183 <a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
186 [% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
187 [% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
188 [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
189 [% IF suggestions.count %]<li><a href="#suggestion_details">Suggestion details</a></li>[% END %]
190 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
191 [% IF ( LocalCoverImages ) %]
192 [% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
194 <a href="#images">Images ([% localimages.size() || 0 | html %])</a>
198 [% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %][% END %]
199 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
200 <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
202 [% FOREACH tab IN tabs %]
203 <li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
207 [% items_table_block_iter = 0 %]
208 [% BLOCK items_table %]
209 [% items_table_block_iter = items_table_block_iter + 1 %]
210 <div class="[% tab | html %]_table_table_controls">
211 [% IF (StaffDetailItemSelection) %]
212 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
213 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
214 <span class="itemselection_actions">
216 [% IF CAN_user_tools_items_batchdel %]
217 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
219 [% IF CAN_user_tools_items_batchmod %]
220 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
225 <table class="items_table" id="[% tab | html %]_table">
228 [% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
229 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
230 <th>Current location</th>
231 <th>Home library</th>
232 [% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
235 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
236 <th class="title-string">Serial enumeration / chronology</th>
238 <th>Serial enumeration / chronology</th>
242 <th class="title-string">Last seen</th>
243 <th class="title-string">Date accessioned</th>
245 [% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
246 [% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
247 [% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
248 [% IF materials %]<th>Materials specified</th>[% END %]
249 [% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
250 [% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
251 [% IF ( hostrecords ) %]<th>Host records</th>[% END %]
252 [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
253 [% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
254 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
255 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %]
259 [% FOREACH item IN items %]
261 [% IF (StaffDetailItemSelection) %]
262 <td style="text-align:center;vertical-align:middle">
263 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
266 [% IF ( item_level_itypes ) %]
268 [% IF !noItemTypeImages && item.imageurl %]
269 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
271 [% item.translated_description | html %]
274 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
275 <td class="homebranch">
276 [% Branches.GetName(item.homebranch) | html %]
277 <span class="shelvingloc">
279 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
280 Note that permanent location is a code, and location may be an authval.
282 [% IF item.permanent_location %]
283 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
284 [% permloc_authval | html %]
285 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
286 ([% item.location | html %])
289 [% item.location | html %]
293 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
294 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
296 <td class="enumchron">
297 [% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
298 [% IF ( itemdata_enumchron ) %]
299 [% IF item.enumchron && item.serialseq %]
300 <span class="enum">[% item.enumchron | html %]</span>
301 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
302 <span class="sep"> -- </span>
303 <span class="serialseq">[% item.serialseq | html %]</span>
305 [% ELSIF item.enumchron %]
306 <span class="enum">[% item.enumchron | html %]</span>
307 [% ELSIF item.serialseq %]
308 <span class="serialseq">[% item.serialseq | html %]</span>
310 [% IF ( item.publisheddate ) %]
311 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
319 [% IF item.CheckedOutFor %]
320 [% IF item.onsite_checkout %]
321 <span>Currently in local use
323 <span class="datedue">Checked out
325 [% UNLESS ( item.NOTSAMEBRANCH ) %]
326 [% IF item.onsite_checkout %]
331 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
333 : due [% item.datedue | html %]
335 [% ELSIF ( item.transfertwhen ) %]
336 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
339 [% IF ( item.itemlost ) %]
340 [% IF itemlostloop %]
341 [% FOREACH itemlostloo IN itemlostloop %]
342 [% IF itemlostloo.authorised_value == item.itemlost %]
343 <span class="lost">[% itemlostloo.lib | html %]</span>
347 <span class="lost">Unavailable (lost or missing)</span>
351 [% IF ( item.withdrawn ) %]
352 [% IF itemwithdrawnloop %]
353 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
354 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
355 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
359 <span class="wdn">Withdrawn</span>
363 [% IF ( item.damaged ) %]
364 [% IF itemdamagedloop %]
365 [% FOREACH itemdamagedloo IN itemdamagedloop %]
366 [% IF itemdamagedloo.authorised_value == item.damaged %]
367 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
371 <span class="dmg">Damaged</span>
375 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
377 [% IF ( item.notforloanvalue ) %]
378 ([% item.notforloanvalue | html %])
382 [% SET hold = item.first_hold %]
384 [% IF hold.waitingdate %]
385 Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].
386 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
388 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
391 There is an item level hold on this item (priority = [% hold.priority | html %]).
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 suggestions.count %]
701 <div id="suggestion_details">
702 [% IF nb_archived_suggestions > 0 %]
703 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
705 <table id="suggestions" class="sorted">
708 <th class="NoSort"> </th>
709 <th class="anti-the">Suggestion</th>
710 <th>Suggested by - on</th>
711 <th>Managed by - on</th>
712 <th>Last modification by - on</th>
719 [% FOREACH suggestion IN suggestions %]
721 <td>[% suggestion.suggestionid | html %]</td>
723 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
724 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
726 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
727 [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
728 [% 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="suggestion_note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
731 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
732 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
735 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
736 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
739 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
740 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
743 [% Branches.GetName( suggestion.branchcode ) | html %]
746 [% suggestion.fund.budget_name | html %]
749 [% IF suggestion.STATUS == 'ASKED' %]Pending
750 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
751 [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
752 [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
753 [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
754 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
755 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
756 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
757 [% ELSE %]Status unknown
759 [% IF suggestion.reason %]
760 <br />([% suggestion.reason | html %])
770 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
771 <div id="editions"><h4>Editions</h4>
773 [% 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 %]
774 [% 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 %]
775 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
776 [% IF ( XISBN.publishercode ) %]
777 [% 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 %]
779 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
780 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
784 </table></div>[% END %]
787 [% IF ( LocalCoverImages ) %]
789 [% IF ( localimages.0 ) %]
790 <p>Click on an image to view it in the image viewer</p>
791 <ul class="thumbnails">
792 [% FOREACH image IN localimages %]
794 <li id="imagenumber-[% image | html %]" class="thumbnail">
795 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
796 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" />
798 [% IF CAN_user_tools_upload_local_cover_images %]
799 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
805 [% ELSE # - No image passed JavaScript takes care %]
806 No images have been uploaded for this bibliographic record yet.
808 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
809 <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>
815 [% IF ( HTML5MediaEnabled ) %]
816 <div id="html5media">
817 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
819 <[% HTML5MediaParent | html %] controls preload=none>
820 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
821 [[% HTML5MediaParent | html %] tag not supported by your browser.]
822 </[% HTML5MediaParent | html %]>
829 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
830 <div id="NovelistSelect" class="novelistSelect">
831 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
835 [% FOREACH tab IN tabs %]
836 <div id="[% tab.id | html %]">
837 [% tab.content | $raw %]
841 </div><!-- /bibliodetails -->
843 <div id="export" style="margin-top: 1em;">
844 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
846 <th>Save record</th> </tr>
847 <tr><td> Select download format: <select name="format">
848 <option value="mods">MODS (XML)</option>
849 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
850 <option value="marcxml">MARCXML</option>
851 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
852 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
853 <input type="submit" name="save" value="Download record" /></td>
856 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
862 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
863 <div class="modal-dialog modal-lg">
864 <div class="modal-content">
865 <div class="modal-header">
866 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
867 <h3 id="marcPreviewLabel">MARC preview</h3>
869 <div class="modal-body">
870 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
872 <div class="modal-footer">
873 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
880 </div> <!-- /.col-sm-10.col-sm-push-2 -->
882 <div class="col-sm-2 col-sm-pull-10">
884 [% INCLUDE 'biblio-view-menu.inc' %]
886 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
887 </div> <!-- /.row -->
891 [% MACRO jsinclude BLOCK %]
892 [% INCLUDE 'catalog-strings.inc' %]
893 [% Asset.js("js/catalog.js") | $raw %]
894 [% Asset.js("js/coce.js") | $raw %]
896 var interface = "[% interface | html %]";
897 var theme = "[% theme | html %]";
898 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
899 function verify_images() {
900 $("#bookcoverimg").each(function(i){
901 $(this).find('img').each(function(i){
902 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'))) {
905 if ((w == 1) || (h == 1)) {
906 $("#amazon-bookcoverimg").remove();
907 $("#catalogue_detail_biblio").attr("class","col-xs-12");
908 } else if ((this.complete != null) && (!this.complete)) {
909 $("#amazon-bookcoverimg").remove();
910 $("#catalogue_detail_biblio").attr("class","col-xs-12");
914 if( $(this).find('img').length < 1 ) $(this).remove();
916 $("#editions img").each(function(i){
917 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'))) {
920 if ((w == 1) || (h == 1)) {
921 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
922 } else if ((this.complete != null) && (!this.complete)) {
923 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
929 function removeLocalImage(imagenumber) {
930 var thumbnail = $("#imagenumber-" + imagenumber );
931 var copy = thumbnail.html();
932 thumbnail.find("img").css("opacity", ".2");
933 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
935 url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
936 success: function(data) {
937 $(data).each( function(i) {
938 if ( this.deleted == 1 ) {
941 thumbnail.html( copy );
942 alert(_("An error occurred on deleting this image"));
944 if ( $('ul.thumbnails > li').length == 0 ) {
945 showNoImageMessage();
949 error: function(data) {
950 thumbnail.html( copy );
951 alert(_("An error occurred on deleting this image"));
956 function showNoImageMessage() {
957 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
958 no_images_msg = '<p>' + no_images_msg + '</p>';
959 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
960 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>");
961 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
963 $('#images').html(no_images_msg);
966 [% IF StaffDetailItemSelection %]
967 function itemSelectionBuildDeleteLink(div) {
968 var itemnumbers = new Array();
969 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
970 itemnumbers.push($(this).val());
972 if (itemnumbers.length > 0) {
973 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
974 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
975 url += '&biblionumber=[% biblionumber | uri %]';
976 url += '&src=CATALOGUING';
977 $('a.itemselection_action_delete').attr('href', url);
984 function itemSelectionBuildModifyLink(div) {
985 var itemnumbers = new Array();
986 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
987 itemnumbers.push($(this).val());
989 if (itemnumbers.length > 0) {
990 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
991 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
992 url += '&biblionumber=[% biblionumber | uri %]';
993 url += '&src=CATALOGUING';
994 $('a.itemselection_action_modify').attr('href', url);
1001 function itemSelectionBuildActionLinks(tab) {
1002 var div = $("#" + tab);
1003 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1004 var modify_link_ok = itemSelectionBuildModifyLink(div);
1005 if (modify_link_ok || delete_link_ok) {
1006 $('.itemselection_actions', div).show();
1008 $('.itemselection_actions', div).hide();
1012 $(document).ready(function() {
1013 $('table.items_table').each(function() {
1014 var div = $(this).parent().attr("id");
1015 itemSelectionBuildActionLinks(div);
1018 $("input[name='itemnumber'][type='checkbox']").change(function() {
1019 var div = $(this).parents('table').parent().parent().attr("id");
1020 itemSelectionBuildActionLinks(div);
1023 $(".SelectAll").on("click",function(e){
1025 var tab = $(this).data("tab");
1026 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1027 itemSelectionBuildActionLinks(tab);
1030 $(".ClearAll").on("click",function(e){
1032 var tab = $(this).data("tab");
1033 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1034 itemSelectionBuildActionLinks(tab);
1039 $(document).ready(function() {
1040 $('#bibliodetails').tabs();
1041 [% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
1042 $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
1044 $('#search-form').focus();
1045 $('.thumbnails > li > .remove').click(function() {
1046 var result = confirm(_("Are you sure you want to delete this cover image?"));
1048 if ( result == true ) {
1049 var imagenumber = $(this).parent().attr('id').split('-')[1];
1050 removeLocalImage(imagenumber);
1055 [%# inject no images message %]
1056 [% IF LocalCoverImages %]
1057 KOHA.LocalCover.GetCoverFromBibnumber(true);
1059 [% IF ( IntranetCoce && CoceProviders ) %]
1060 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1063 $("body").on("click",".previewMARC", function(e){
1065 var page = $(this).attr("href");
1066 $("#marcPreview .modal-body").load(page + " table");
1067 $('#marcPreview').modal({show:true});
1069 $("#marcPreview").on("hidden.bs.modal", function(){
1070 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1072 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1073 novSelect.loadContentForQuery({
1074 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1075 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1078 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1079 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1081 if ( d.length > 0 ){ //If no content
1082 $(".NovelistSelect").show();
1086 $(".print-label").on("click", function(e){
1088 link = $(this).attr("href");
1089 openWindow(link,"Print spine label",400,400);
1093 [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
1097 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1098 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1100 [% INCLUDE 'datatables.inc' %]
1101 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1102 [% INCLUDE 'strings.inc' %]
1103 [% INCLUDE 'columns_settings.inc' %]
1104 [% Asset.js("js/browser.js") | $raw %]
1105 [% Asset.js("js/table_filters.js") | $raw %]
1108 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1111 $(document).ready(function() {
1112 var ids = ['holdings_table', 'otherholdings_table'];
1114 for (var i in ids) {
1116 var dt_parameters = {
1119 'bAutoWidth': false,
1121 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1122 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1125 var table = KohaTable(id, dt_parameters, null, 'with_filters');
1128 [% IF Koha.Preference('AcquisitionDetails') %]
1129 var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
1130 var acquisitiondetails_table = KohaTable("orders", {
1131 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1133 'bAutoWidth': false,
1134 "aaSorting": [[ 4, "desc" ]],
1136 { "aTargets": "title-string", "sType": "title-string" }
1138 }, columns_settings);
1141 [% IF suggestions.count %]
1142 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1144 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1145 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1147 "sPaginationType": "full"
1153 [% INCLUDE 'intranet-bottom.inc' %]