6 [% USE AuthorisedValues %]
10 [% USE TablesSettings %]
11 [% PROCESS 'i18n.inc' %]
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 plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio, biblio_id => biblionumber }) %]
34 [% SET footerjs = 1 %]
35 [% INCLUDE 'doc-head-open.inc' %]
37 [% IF ( unknownbiblionumber ) %]
40 Details for [% INCLUDE 'biblio-title-head.inc' %]
41 [% END %] › Catalog › Koha
43 [% INCLUDE 'doc-head-close.inc' %]
44 [% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
47 <body id="catalog_detail" class="catalog">
49 [% INCLUDE 'header.inc' %]
50 [% INCLUDE 'cat-search.inc' %]
52 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
55 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
58 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
61 [% IF ( unknownbiblionumber ) %]
63 <a href="#" aria-current="page">
69 [% INCLUDE 'biblio-title.inc' link = 1 %]
72 <a href="#" aria-current="page">
80 <div class="main container-fluid">
82 <div class="col-sm-10 col-sm-push-2">
86 [% IF ( unknownbiblionumber ) %]
87 <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
90 [% IntranetCoce = Koha.Preference('IntranetCoce') %]
91 [% CoceProviders = Koha.Preference('CoceProviders') %]
92 [% CoceHost = Koha.Preference('CoceHost') %]
93 [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %]
95 [% INCLUDE 'cat-toolbar.inc' %]
96 [% IF decoding_error %]
98 <span class="biberror">
99 There is an error with this bibliographic record, the view may be degraded.</span>
100 <span class="error"><br/> Error: [% decoding_error | html %]</span>
103 [% IF analytics_error %]
105 <span class="analytics_error">
106 There was an error searching for analytic records, please see the logs for details.</span>
110 <!-- COinS / OpenURL -->
111 <span class="Z3988" title="[% ocoins | html %]"></span>
114 [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
115 <div id="catalogue_detail_biblio" class="col-xs-9">
117 <div id="catalogue_detail_biblio" class="col-xs-12">
120 [% XSLTBloc | $raw %]
122 [% IF shelves.count %]
123 <span class="results_summary"><span class="label">Lists that include this title: </span>
124 [% FOREACH s IN shelves %]
125 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
126 [% IF ( loop.last ) %][% ELSE %]|[% END %]
130 [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
131 <span class="results_summary"><span class="label">Tags:</span>
132 [% FOREACH TagLoo IN TagLoop %]
133 [% IF ( CAN_user_tools_moderate_tags ) %]
134 <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
136 [% TagLoo.term | html %]
138 <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
142 <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>
143 [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
144 <span class="results_summary itemtype"><span class="label">Itemtype:</span>
145 [% IF ( !noItemTypeImages && imageurl ) %]
146 <img src="[% imageurl | html %]" alt="" />
148 [% IF ( description ) %]
149 [% description | html %]
151 [% itemtype | html %]
156 [% IF ( holdcount ) %]
157 <span class="results_summary">
158 <span class="label">Holds:</span>
159 <span class="number_box">
160 [% IF CAN_user_reserveforothers_place_holds %]
161 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
163 <span>[% holdcount | html %]</span>
169 [% IF illrequests.count %]
170 <span class="results_summary">
171 <span class="label">ILL requests:</span>
172 [% IF CAN_user_ill %]
173 [% FOREACH ill IN illrequests %]
174 <a href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% ill.illrequest_id | uri %]">Request [% ill.illrequest_id | html %]</a>[% IF ! loop.last %], [% END %]
177 [% FOREACH ill IN illrequests %]
178 <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
184 [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
185 <span class="results_summary">
186 <span class="label">Article requests:</span>
187 <span class="number_box">
188 <a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
193 [% IF course_reserves %]
194 <span class="results_summary"><span class="label">Courses that have reserved this title: </span>
195 [% FOREACH c IN course_reserves %]
196 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% c.course_id | uri %]">[% c.course.course_name | html %]</a>
197 [% IF ( loop.last ) %][% ELSE %]|[% END %]
202 [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
204 <div class="col-xs-3 bookcoverimg">
205 <div id="biblio-cover-slider" class="cover-slider">
206 [% IF ( LocalCoverImages ) %]
207 [% IF localimages.count %]
208 [% FOREACH image IN localimages %]
209 <div class="cover-image local-coverimg">
210 <a href="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
211 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
213 <div class="hint">Local cover image</div>
219 [% IF ( AmazonCoverImages && normalized_isbn) %]
220 <div class="cover-image" id="amazon-bookcoverimg">
221 <a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
222 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.MZZZZZZZ.jpg" alt="Amazon cover image" data-link="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"/>
224 <div class="hint">Image from Amazon.com</div>
228 [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
229 [% coce_id = normalized_ean || normalized_isbn %]
230 <div class="cover-image" id="coce-coverimg">
232 <a title="Image from Coce" class="[% coce_id | html %]" id="coce-thumbnail-preview"></a>
234 <span class="no-image">No cover image available</span>
236 <div class="hint">Image from Coce</div>
240 [% IF ( SyndeticsCovers ) %]
241 [% IF ( content_identifier_exists ) %]
242 <div class="cover-image" id="syndetics-bookcoverimg">
243 <a href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | url %]/LC.GIF&client=[% Koha.Preference('SyndeticsClientCode') | url %]&type=xw10&upc=[% normalized_upc | url %]&oclc=[% normalized_oclc | url %]" title="Syndetics cover image">
244 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | url %]/[% Koha.Preference('SyndeticsCoverImageSize') | url %].GIF&client=[% Koha.Preference('SyndeticsClientCode') | url %]&type=xw10&upc=[% normalized_upc | url %]&oclc=[% normalized_oclc | url %]" alt="" class="thumbnail" />
246 <div class="hint">Image from Syndetics</div>
249 <span class="no-image">No cover image available</span>
253 [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
254 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
255 [% IF custom_cover_image_url %]
256 <div class="cover-image" id="custom-coverimg">
257 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]" title="Custom cover image">
258 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
260 <div class="hint">Custom cover image</div>
264 </div> <!-- /.cover-slider -->
265 </div> <!-- /.bookcoverimg.col-xs-3 -->
267 </div> <!-- /.col-xs-* -->
268 [% END # /IF ( AmazonCoverImages, etc ) %]
271 <div id="bibliodetails" class="toptabs">
273 <ul class="nav nav-tabs" role="tablist">
274 [% IF (SeparateHoldings) %]
275 <li role="presentation">
276 <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
278 <li role="presentation">
279 <a href="#otherholdings" aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
282 <li role="presentation">
283 <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% itemloop.size() || 0 | html %])</a>
286 [% IF ( MARCNOTES ) %]<li role="presentation"><a href="#description" aria-controls="description" role="tab" data-toggle="tab">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</a></li>[% END %]
287 [% IF ComponentParts && ComponentParts.size %]<li id="components_tab" role="presentation"><a href="#components" aria-controls="components" role="tab" data-toggle="tab">Components ([% ComponentParts.size | html %])</a></li>[% END %]
288 [% IF ( subscriptionsnumber ) %]<li role="presentation"><a href="#subscriptions" aria-controls="subscriptions" role="tab" data-toggle="tab">Subscriptions</a></li>[% END %]
289 [% IF Koha.Preference('AcquisitionDetails') %]<li role="presentation"><a href="#acq_details" aria-controls="acq_details" role="tab" data-toggle="tab">Acquisition details</a></li>[% END %]
290 [% IF suggestions.count %]<li role="presentation"><a href="#suggestion_details" aria-controls="suggestion_details" role="tab" data-toggle="tab">Suggestion details</a></li>[% END %]
291 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li role="presentation"><a href="#editions" aria-controls="editions" role="tab" data-toggle="tab">Editions</a></li>[% END %][% END %]
292 [% IF ( LocalCoverImages ) %]
293 <li role="presentation">
294 <a href="#images" aria-controls="images" role="tab" data-toggle="tab">Images ([% localimages.count || 0 | html %])</a>
297 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
298 <li id="media_tab" role="presentation"><a href="#html5media" aria-controls="html5media" role="tab" data-toggle="tab">Play media</a></li>
300 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
301 <li class="NovelistSelect" style="display:none;" role="presentation"><a href="#NovelistSelect" aria-controls="NovelistSelect" role="tab" data-toggle="tab">NoveList Select</a></li>
303 [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
304 <li role="presentation"><a href="#[% plugins_intranet_catalog_biblio_tab.id | uri %]" aria-controls="[% plugins_intranet_catalog_biblio_tab.id | uri %]" role="tab" data-toggle="tab">[% plugins_intranet_catalog_biblio_tab.title | html %]</a></li>
308 <div class="tab-content">
309 [% items_table_block_iter = 0 %]
310 [% BLOCK items_table %]
311 [% items_table_block_iter = items_table_block_iter + 1 %]
312 <div class="[% tab | html %]_table_table_controls">
313 [% IF (StaffDetailItemSelection) %]
314 | <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
315 <a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
316 <span class="itemselection_actions">
318 [% IF CAN_user_tools_items_batchdel %]
319 <a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
321 [% IF CAN_user_tools_items_batchmod %]
322 <a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
327 <table class="items_table" id="[% tab | html %]_table">
330 [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
331 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
332 <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th>
334 [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
335 <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th>
336 <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
337 [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
338 <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
340 <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
342 <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
343 <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th>
344 <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned">Date accessioned</th>
345 <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed">Date last borrowed</th>
346 <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
347 [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
348 [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
349 [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
350 [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
351 [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
352 [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
353 [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
354 [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
355 [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
356 [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
357 [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
361 [% FOREACH item IN items %]
363 [% IF (StaffDetailItemSelection) %]
364 <td style="text-align:center;vertical-align:middle">
365 <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
368 [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
370 <div class="bookcoverimg">
371 <div class="cover-slider">
372 [% FOREACH image IN item.cover_images %]
373 <div class="cover-image local-coverimg">
374 <a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
375 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
384 [% IF ( item_level_itypes ) %]
386 [% IF !noItemTypeImages && item.imageurl %]
387 <img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
389 <span class="itypedesc">[% item.translated_description | html %]</span>
392 <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
393 <td class="homebranch">
394 <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
395 <span class="shelvingloc">
397 If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
398 Note that permanent location is a code, and location may be an authval.
400 [% IF item.permanent_location %]
401 [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
402 [% permloc_authval | html %]
403 [% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
404 ([% item.location | html %])
407 [% item.location | html %]
411 [% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
412 <td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
414 [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %]
415 <td class="enumchron" data-order="[% item.publisheddate | html %]">
417 <td class="enumchron">
419 [% IF ( itemdata_enumchron ) %]
420 [% IF item.enumchron && item.serialseq %]
421 <span class="enum">[% item.enumchron | html %]</span>
422 [% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
423 <span class="sep"> -- </span>
424 <span class="serialseq">[% item.serialseq | html %]</span>
426 [% ELSIF item.enumchron %]
427 <span class="enum">[% item.enumchron | html %]</span>
428 [% ELSIF item.serialseq %]
429 <span class="serialseq">[% item.serialseq | html %]</span>
431 [% IF ( item.publisheddate ) %]
432 <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
440 [% IF item.CheckedOutFor %]
441 [% IF item.onsite_checkout %]
442 <span>Currently in local use
444 <span class="datedue">Checked out
446 [% UNLESS ( item.NOTSAMEBRANCH ) %]
447 [% IF item.onsite_checkout %]
452 [% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
454 : due [% item.datedue | html %]
456 [% ELSIF ( item.transfertwhen ) %]
457 <span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
460 [% IF ( item.itemlost ) %]
461 [% IF itemlostloop %]
462 [% FOREACH itemlostloo IN itemlostloop %]
463 [% IF itemlostloo.authorised_value == item.itemlost %]
464 <span class="lost">[% itemlostloo.lib | html %]</span>
468 <span class="lost">Unavailable (lost or missing)</span>
472 [% IF ( item.withdrawn ) %]
473 [% IF itemwithdrawnloop %]
474 [% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
475 [% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
476 <span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
480 <span class="wdn">Withdrawn</span>
484 [% IF ( item.damaged ) %]
485 [% IF itemdamagedloop %]
486 [% FOREACH itemdamagedloo IN itemdamagedloop %]
487 [% IF itemdamagedloo.authorised_value == item.damaged %]
488 <span class="dmg">[% itemdamagedloo.lib | html %]</span>
492 <span class="dmg">Damaged</span>
496 [% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
497 <span class="notforloan">Not for loan
498 [% IF ( item.notforloanvalue ) %]
499 <span class="reason">([% item.notforloanvalue | html %])</span>
504 [% SET hold = item.first_hold %]
506 [% IF hold.waitingdate %]
507 <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].</span>
508 [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
509 <span class="heldfor">Hold for:</span>
510 [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
513 <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
517 [% IF item.recalled %]
518 [% IF item.recall.waiting_date %]
519 <span>Waiting at [% Branches.GetName( item.recall.pickup_library_id ) | html %] since [% item.recall.waiting_date | $KohaDates %]</span>
521 [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.recall.patron_id | uri %]">[% item.recall.patron.firstname | html %] [% item.recall.patron.surname | html %] ([% item.recall.patron.cardnumber | html %])</a>[% END %]
522 <span>Item recalled by [% patron_link| $raw %] on [% item.recall.created_date | $KohaDates %]</span>
526 [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold || item.recalled ) %]
527 <span>Available</span>
530 [% IF ( item.restricted ) %]
531 <span class="restricted">([% item.restrictedvalue | html %])</span>
534 <td class="datelastseen" data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</td>
535 <td class="dateaccessioned" data-order="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</td>
536 <td class="datelastborrowed" data-order="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</td>
537 <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>
538 [% IF ( itemdata_uri ) %]
539 [% IF item.uri.split(' \| ').size > 1 %]
541 [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
546 <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
551 [% IF ( itemdata_copynumber ) %]
552 <td class="copynumber">[% item.copynumber | html %]</td>
554 [% IF ( itemdata_stocknumber ) %]
555 <td class="stocknumber">[% item.stocknumber | html %]</td>
558 <td class="materials"> [% item.materials | html %] </td>
560 [% IF ( itemdata_itemnotes ) %]
561 <td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
563 [% IF itemdata_nonpublicnotes %]
564 <td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
566 [% IF ( hostrecords ) %]
567 <td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
571 [% IF ( item.countanalytics ) %]
572 <a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
577 <td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
580 [% IF ShowCourseReserves %]
582 [% IF item.course_reserves %]
583 [% FOREACH r IN item.course_reserves %]
584 [% IF r.course.enabled == 'yes' %]
586 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
587 [% r.course.course_name | html %]
588 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
589 [% IF r.course.section %] [% r.course.section | html %] [% END %]
590 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
599 [% IF ( SpineLabelShowPrintOnBibDetails ) %]
600 <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>
603 [% IF CAN_user_editcatalogue_edit_items %]
605 [% UNLESS item.cannot_be_edited %]
606 [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
607 <div class="btn-group">
608 <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><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
609 <ul class="dropdown-menu pull-right">
610 <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
614 <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>
624 [% END %][%# end of block items_table %]
626 <div role="tabpanel" class="tab-pane" id="holdings">
628 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
629 <span class="results_summary NovelistSelect" style="display:none;">
630 <span class="label">Novelist Select: </span>
631 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
636 [% IF ( showncount ) %]
637 [% PROCESS items_table tab="holdings" items=itemloop %]
639 [% IF ( hiddencount ) %]
640 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
642 [% IF ( debug_display ) %]
645 <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
646 <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
647 <tr><td>serial</td><td>[% serial | html %]</td></tr>
651 [% IF ( ALTERNATEHOLDINGS ) %]
652 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
653 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
656 <div id="noitems">No physical items for this record</div>
660 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
661 <span class="results_summary NovelistSelect" style="display:none;">
662 <span class="label">Novelist Select: </span>
663 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
668 [% IF (SeparateHoldings) %]
669 <div role="tabpanel" class="tab-pane" id="otherholdings">
670 [% IF (otheritemloop.size) %]
671 [% PROCESS items_table tab="otherholdings" items=otheritemloop %]
673 <span class="nootheritems">No other items.</span>
678 [% IF ( MARCNOTES ) %]
680 <div role="tabpanel" class="tab-pane" id="description">
681 <div class="content_set">
683 [% FOREACH MARCNOTE IN MARCNOTES %]
685 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
686 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
688 [% MARCNOTE.marcnote | html | html_line_break %]
697 [% IF ComponentParts && ComponentParts.size %]
698 <div role="tabpanel" class="tab-pane" id="components">
699 <div class="content_set">
701 [% FOR PART IN ComponentParts %]
709 [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
710 <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/catalogue/search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
712 </div> <!-- /.content_set -->
713 </div> <!-- /#components -->
717 [% IF ( subscriptionsnumber ) %]
718 <div role="tabpanel" class="tab-pane" id="subscriptions">
719 <div id="catalogue_detail_subscriptions">
720 <h2>This is a serial subscription</h2>
721 <p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
722 [% FOREACH subscription IN subscriptions %]
723 [% IF subscription.branchcode %]
724 <h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
726 [% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
727 [% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</p>[% END %]
728 [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
729 [% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
730 [% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
731 [% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
732 [% IF ( subscription.latestserials ) %]
733 <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
737 <th>Date arrived</th>
738 <th>Date published</th>
742 [% FOREACH latestserial IN subscription.latestserials %]
744 <td>[% latestserial.serialseq | html %]</td>
745 <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
746 <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
748 [% IF ( latestserial.status1 ) %]<span>Expected</span>[% END %]
749 [% IF ( latestserial.status2 ) %]<span>Arrived</span>[% END %]
750 [% IF ( latestserial.status3 ) %]<span>Late</span>[% END %]
751 [% IF ( latestserial.status4 ) %]<span>Missing</span>[% END %]
752 [% IF ( latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
753 [% IF ( latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
754 [% IF ( latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
755 [% IF ( latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
756 [% IF ( latestserial.status5 ) %]<span>Not issued</span>[% END %]
757 [% IF ( latestserial.status6 ) %]<span>Delete</span>[% END %]
758 [% IF ( latestserial.status7 ) %]<span>Claimed</span>[% END %]
759 [% IF ( latestserial.status8 ) %]<span>Stopped</span>[% END %]
761 <td>[% latestserial.notes | html %]</td>
766 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
772 [% IF Koha.Preference('AcquisitionDetails') %]
773 <div role="tabpanel" class="tab-pane" id="acq_details">
774 [% IF orders.count %]
780 <th>Basket group</th>
782 <th>Order number</th>
783 <th>Creation date</th>
784 <th>Receive date</th>
787 <th title="Estimated cost tax incl. while pending, actual cost tax incl. once received">Price</th>
788 <th>Internal note</th>
789 <th>Subscription</th>
790 <th>Subscription call number</th>
794 [% FOR order IN orders %]
795 [% SET basket = order.basket %]
796 [% SET vendor = basket.bookseller %]
799 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
802 [% IF order.invoiceid %]
803 [% IF CAN_user_acquisition %]
804 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
805 title="Invoice detail page">
806 [% order.invoice.invoicenumber | html %]</a>
808 [% order.invoice.invoicenumber | html %]
813 [% IF basket.basketgroupid %]
814 [% SET basket_group = basket.basket_group %]
815 [% IF CAN_user_acquisition_group_manage %]
816 <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>
818 [% basket_group.name | html %] ([% basket_group.id | html %])
822 <td>[% IF CAN_user_acquisition_order_manage %]
823 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
825 [% basket.basketname | html %] ([% basket.basketno | html %])
827 <td>[% order.ordernumber | html %]</td>
828 <td data-order="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</td>
829 <td data-order="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</td>
831 [% SWITCH order.orderstatus %]
832 [% CASE 'new' %]<span>New</span>
833 [% CASE 'ordered' %]<span>Ordered</span>
834 [% CASE 'partial' %]<span>Partial</span>
835 [% CASE 'complete' %]<span>Complete</span>
836 [% CASE 'cancelled' %]<span>Cancelled</span>
839 <td>[% order.quantity | html %]</td>
840 <td>[% IF ( order.unitprice_tax_included > 0 ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %]
841 <td>[% order.order_internalnote | html %]</td>
843 [% IF order.subscriptionid %]
844 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
848 [% IF order.subscriptionid %]
849 [% order.subscription.callnumber | html %]
857 <span class="noorder">There is no order for this bibliographic record.</span>
862 [% IF suggestions.count %]
863 <div role="tabpanel" class="tab-pane" id="suggestion_details">
864 [% IF nb_archived_suggestions > 0 %]
865 <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
867 <table id="suggestions" class="sorted">
870 <th class="NoSort"> </th>
871 <th class="anti-the">Suggestion</th>
872 <th>Suggested by - on</th>
873 <th>Managed by - on</th>
874 <th>Last modification by - on</th>
881 [% FOREACH suggestion IN suggestions %]
883 <td>[% suggestion.suggestionid | html %]</td>
885 <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
886 [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
888 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
889 [% IF ( suggestion.volumedesc ) %]; Volume:<em>[% suggestion.volumedesc | html %]</em> [% END %]
890 [% IF ( suggestion.isbn ) %]; ISBN:<em>[% suggestion.isbn | html %]</em> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %][% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% 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 %]
893 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
894 [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
897 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
898 [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
901 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
902 [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
905 [% Branches.GetName( suggestion.branchcode ) | html %]
908 [% suggestion.fund.budget_name | html %]
911 [% IF suggestion.STATUS == 'ASKED' %]<span>Pending</span>
912 [% ELSIF suggestion.STATUS == 'ACCEPTED' %]<span>Accepted</span>
913 [% ELSIF suggestion.STATUS == 'ORDERED' %]<span>Ordered</span>
914 [% ELSIF suggestion.STATUS == 'REJECTED' %]<span>Rejected</span>
915 [% ELSIF suggestion.STATUS == 'CHECKED' %]<span>Checked</span>
916 [% ELSIF suggestion.STATUS == 'AVAILABLE' %]<span>Available</span>
917 [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
918 [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
919 [% ELSE %]<span>Status unknown</span>
921 [% IF suggestion.reason %]
922 <br />([% suggestion.reason | html %])
932 [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
933 <div role="tabpanel" class="tab-pane" id="editions"><h4>Editions</h4>
935 [% 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 %]
936 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
937 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> <span>by</span> [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
938 [% IF ( XISBN.publishercode ) %]
939 [% 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 %]
941 [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
942 [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
946 </table></div>[% END %]
949 [% IF ( LocalCoverImages ) %]
950 <div role="tabpanel" class="tab-pane" id="images">
951 [% IF localimages.count %]
952 <p>Click on an image to view it in the image viewer</p>
953 <ul class="thumbnails">
954 [% FOREACH image IN localimages %]
956 <li id="imagenumber-[% image.imagenumber | html %]" class="thumbnail">
957 <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]">
958 <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" />
960 [% IF CAN_user_tools_upload_local_cover_images %]
961 <a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
967 [% ELSE # - No image passed JavaScript takes care %]
968 <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
970 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
971 <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>
977 [% IF ( HTML5MediaEnabled ) %]
978 <div role="tabpanel" class="tab-pane" id="html5media">
979 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
981 [% IF HTML5MediaSet.is_youtube %]
982 <iframe id="player" width="640" height="360" src="[% HTML5MediaSet.srcblock | url %]"></iframe>
984 <[% HTML5MediaParent | html %] controls preload=none>
985 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
986 [[% HTML5MediaParent | html %] tag not supported by your browser.]
987 </[% HTML5MediaParent | html %]>
995 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
996 <div role="tabpanel" class="tab-pane" id="NovelistSelect" class="novelistSelect">
997 <div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
1001 [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %]
1002 <div role="tabpanel" class="tab-pane" id="[% plugins_intranet_catalog_biblio_tab.id | html %]">
1003 [% plugins_intranet_catalog_biblio_tab.content | $raw %]
1007 </div><!-- /tab-content -->
1008 </div><!-- /bibliodetails -->
1010 <div id="export" style="margin-top: 1em;">
1011 <form method="get" action="/cgi-bin/koha/catalogue/export.pl">
1013 <th>Save record</th> </tr>
1014 <tr><td> Select download format: <select name="format">
1015 <option value="mods">MODS (XML)</option>
1016 <option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
1017 <option value="marcxml">MARCXML</option>
1018 <option value="marc8">MARC (non-Unicode/MARC-8)</option>
1019 <option value="utf8">MARC (Unicode/UTF-8)</option> </select>
1020 <input type="submit" name="save" value="Download record" /></td>
1023 <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
1029 <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
1030 <div class="modal-dialog modal-lg">
1031 <div class="modal-content">
1032 <div class="modal-header">
1033 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
1034 <h3 id="marcPreviewLabel">MARC preview</h3>
1036 <div class="modal-body">
1037 <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
1039 <div class="modal-footer">
1040 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
1047 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1049 <div class="col-sm-2 col-sm-pull-10">
1051 [% INCLUDE 'biblio-view-menu.inc' %]
1053 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1054 </div> <!-- /.row -->
1058 [% MACRO jsinclude BLOCK %]
1059 [% INCLUDE 'catalog-strings.inc' %]
1060 [% Asset.js("js/catalog.js") | $raw %]
1061 [% Asset.js("js/recalls.js") | $raw %]
1062 [% Asset.js("js/coce.js") | $raw %]
1063 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1065 var interface = "[% interface | html %]";
1066 var theme = "[% theme | html %]";
1067 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
1068 function verify_cover_images() {
1069 // Loop over each container in the template which contains covers
1070 $(".cover-slider").each(function(){
1071 var lightbox_descriptions = [];
1072 $(this).find(".cover-image").each( function( index ){
1074 // Find the image in the container
1075 var img = div.find("img")[0];
1076 if( $(img).length > 0 ){
1077 var description = "";
1078 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
1079 // No image loaded in the container. Remove the slide
1082 // All slides start hidden. If this is the first one, show it.
1086 // Check if Amazon image is present
1087 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1090 if ((w == 1) || (h == 1)) {
1091 // Amazon returned single-pixel placeholder
1092 // Remove the container
1095 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1097 } else if( div.attr("id") == "custom-coverimg" ){
1098 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1099 // No image was loaded via the CustomCoverImages system preference
1100 // Remove the container
1103 lightbox_descriptions.push("Custom cover image");
1105 } else if ( div.attr("id") == "syndetics-bookcoverimg" ){
1106 lightbox_descriptions.push(_("Syndetics cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1108 else if( div.attr("id") == "coce-coverimg" ){
1109 // Identify which service's image is being loaded by Coce
1110 var coce_description;
1111 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1112 coce_description = ("Coce image from Amazon.com");
1113 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1114 coce_description = _("Coce image from Google Books");
1115 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1116 coce_description = _("Coce image from Open Library");
1118 div.find(".hint").html(coce_description);
1119 lightbox_descriptions.push(coce_description);
1120 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1121 lightbox_descriptions.push(_("Local cover image (<a href='%s'>edit</a>)").format($(img).data('link')));
1123 lightbox_descriptions.push(_("Cover image source unknown"));
1129 // Lightbox for cover images
1130 Chocolat(this.querySelectorAll('.cover-image a'), {
1131 description: function(){
1132 return lightbox_descriptions[this.settings.currentImageIndex];
1138 $(".cover-slider").each(function(){
1139 var coverSlide = this;
1140 var coverImages = $(this).find(".cover-image");
1141 if( coverImages.length > 1 ){
1142 coverImages.each(function( index ){
1143 // If more that one image is present, add a navigation link
1144 // for activating the slide
1145 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1147 // Set the first navigation link as active
1148 $(covernav).addClass("nav-active");
1150 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1151 $(coverSlide).append( covernav );
1155 if( $(coverSlide).attr('id') == 'biblio-cover-slider' // Hide if not visible, but only for the biblio images. Images for items are only local cover images
1156 && $(coverSlide).find(".cover-image:visible").length < 1 ){
1157 $(coverSlide).remove();
1159 $(coverSlide).addClass("cover-slides");
1163 $("#editions img").each(function(i){
1164 if ( this.src.indexOf('amazon.com') >= 0 ) {
1167 if ((w == 1) || (h == 1)) {
1168 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1169 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1170 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1176 function removeLocalImage(imagenumber) {
1177 var thumbnail = $("#imagenumber-" + imagenumber );
1178 var copy = thumbnail.html();
1179 thumbnail.find("img").css("opacity", ".2");
1180 thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
1182 url: "/cgi-bin/koha/svc/cover_images?action=delete&imagenumber=" + imagenumber,
1183 success: function(data) {
1184 $(data).each( function(i) {
1185 if ( this.deleted == 1 ) {
1188 thumbnail.html( copy );
1189 alert(_("An error occurred on deleting this image"));
1191 if ( $('ul.thumbnails > li').length == 0 ) {
1192 showNoImageMessage();
1196 error: function(data) {
1197 thumbnail.html( copy );
1198 alert(_("An error occurred on deleting this image"));
1203 function showNoImageMessage() {
1204 var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
1205 no_images_msg = '<p>' + no_images_msg + '</p>';
1206 [% IF ( CAN_user_tools_upload_local_cover_images ) %]
1207 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>");
1208 no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
1210 $('#images').html(no_images_msg);
1213 [% IF StaffDetailItemSelection %]
1214 function itemSelectionBuildDeleteLink(div) {
1215 var itemnumbers = new Array();
1216 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1217 itemnumbers.push($(this).val());
1219 if (itemnumbers.length > 0) {
1220 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
1221 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1222 url += '&biblionumber=[% biblionumber | uri %]';
1223 url += '&src=CATALOGUING';
1224 $('a.itemselection_action_delete').attr('href', url);
1231 function itemSelectionBuildModifyLink(div) {
1232 var itemnumbers = new Array();
1233 $("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
1234 itemnumbers.push($(this).val());
1236 if (itemnumbers.length > 0) {
1237 var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
1238 url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
1239 url += '&biblionumber=[% biblionumber | uri %]';
1240 url += '&src=CATALOGUING';
1241 $('a.itemselection_action_modify').attr('href', url);
1248 function itemSelectionBuildActionLinks(tab) {
1249 var div = $("#" + tab);
1250 var delete_link_ok = itemSelectionBuildDeleteLink(div);
1251 var modify_link_ok = itemSelectionBuildModifyLink(div);
1252 if (modify_link_ok || delete_link_ok) {
1253 $('.itemselection_actions', div).show();
1255 $('.itemselection_actions', div).hide();
1259 $(document).ready(function() {
1260 $('table.items_table').each(function() {
1261 var div = $(this).parent().attr("id");
1262 itemSelectionBuildActionLinks(div);
1265 $("input[name='itemnumber'][type='checkbox']").change(function() {
1266 var div = $(this).parents('table').parent().parent().attr("id");
1267 itemSelectionBuildActionLinks(div);
1270 $(".SelectAll").on("click",function(e){
1272 var tab = $(this).data("tab");
1273 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
1274 itemSelectionBuildActionLinks(tab);
1277 $(".ClearAll").on("click",function(e){
1279 var tab = $(this).data("tab");
1280 $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
1281 itemSelectionBuildActionLinks(tab);
1286 $(document).ready(function() {
1287 // Pick details tab to display by default
1289 [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %]
1290 $(".nav-tabs a[href='#html5media']").tab("show");
1291 [% ELSIF ComponentParts && ComponentParts.size %]
1292 $(".nav-tabs a[href='#components']").tab("show");
1294 $(".nav-tabs a[href='#holdings']").tab("show");
1297 $(".nav-tabs a[href='#holdings']").tab("show");
1299 $('#search-form').focus();
1300 $('.thumbnails > li > .remove').click(function() {
1301 var result = confirm(_("Are you sure you want to delete this cover image?"));
1303 if ( result == true ) {
1304 var imagenumber = $(this).parent().attr('id').split('-')[1];
1305 removeLocalImage(imagenumber);
1310 [% IF ( IntranetCoce && CoceProviders ) %]
1311 KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
1314 $("body").on("click",".previewMARC", function(e){
1316 var page = $(this).attr("href");
1317 $("#marcPreview .modal-body").load(page + " table");
1318 $('#marcPreview').modal({show:true});
1320 $("#marcPreview").on("hidden.bs.modal", function(){
1321 $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
1323 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1324 novSelect.loadContentForQuery({
1325 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1326 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1329 '[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
1330 '[% Koha.Preference('NovelistSelectPassword') | html %]',
1332 if ( d.length > 0 ){ //If no content
1333 $(".NovelistSelect").show();
1337 $(".print-label").on("click", function(e){
1339 link = $(this).attr("href");
1340 openWindow(link,"Print spine label",400,400);
1342 $(".cover-slider").on("click",".cover-nav", function(e){
1344 var cover_slider = $(this).parent();
1345 // Adding click handler for cover image navigation links
1346 var num = $(this).data("num");
1347 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1348 $(this).addClass("nav-active");
1349 $(cover_slider).find(".cover-image").hide();
1350 $(cover_slider).find(".cover-image").eq( num ).show();
1354 $(window).load(function() {
1355 verify_cover_images();
1358 [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
1359 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1361 [% INCLUDE 'datatables.inc' %]
1362 [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
1363 [% INCLUDE 'columns_settings.inc' %]
1364 [% Asset.js("js/browser.js") | $raw %]
1365 [% Asset.js("js/table_filters.js") | $raw %]
1368 browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
1371 $(document).ready(function() {
1372 var table_names = [ 'holdings_table', 'otherholdings_table' ];
1373 var table_settings = [ [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
1374 var has_images = [ "[% itemloop_has_images | html %]", "[% otheritemloop_has_images | html %]" ];
1375 table_names.forEach( function( table_name, index ) {
1376 if ( !has_images[index] ) {
1377 table_settings[index].columns.splice(1,1);
1379 var dt_parameters = {
1382 'bAutoWidth': false,
1383 "bKohaColumnsUseNames": true,
1384 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1386 var table = KohaTable( table_name, dt_parameters, table_settings[index], 'with_filters' );
1389 [% IF Koha.Preference('AcquisitionDetails') %]
1390 var table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail', 'acquisitiondetails-table', 'json') | $raw %];
1391 var acquisitiondetails_table = KohaTable("orders", {
1392 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
1394 'bAutoWidth': false,
1395 "aaSorting": [[ 4, "desc" ]],
1399 [% IF suggestions.count %]
1400 $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
1402 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
1403 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
1405 "sPaginationType": "full"
1411 $(document).ready(function() {
1412 var search_index = localStorage.getItem("cat_search_pulldown_selection");
1413 var search_value = localStorage.getItem("searchbox_value");
1414 if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
1415 if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
1420 [% INCLUDE 'intranet-bottom.inc' %]