Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1067 lines
52 KiB

[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Biblio %]
[% USE ColumnsSettings %]
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
[% IF Koha.Preference('AmazonAssocTag') %]
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
[% ELSE %]
[% AmazonAssocTag = '' %]
[% END %]
[% ShowCourseReserves = 0 | html %]
[% IF UseCourseReserves %]
[% FOREACH item IN itemloop %]
[% IF item.course_reserves %]
[% FOREACH r IN item.course_reserves %]
[% IF r.course.enabled == 'yes' %]
[% ShowCourseReserves = 1 | html %]
[% END %]
[% END %]
[% END %]
[% END %]
[% END %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo;
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
Details for [% INCLUDE 'biblio-title-head.inc' %]
[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="catalog_detail" class="catalog">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> &rsaquo;
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
Details for <i>[% INCLUDE 'biblio-title.inc' %]</i>
[% END %]
</div>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
<div class="row">
[% IF ( unknownbiblionumber ) %]
<div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
[% ELSE %]
[% IntranetCoce = Koha.Preference('IntranetCoce') %]
[% CoceProviders = Koha.Preference('CoceProviders') %]
[% CoceHost = Koha.Preference('CoceHost') %]
[% INCLUDE 'cat-toolbar.inc' %]
[% IF decoding_error %]
<div>
There is an error with this bibliographic record, the view may be degraded.
<br/> Error: [% decoding_error | html %]
</div>
[% END %]
[% IF ( ocoins ) %]
<!-- COinS / OpenURL -->
<span class="Z3988" title="[% ocoins | html %]"></span>
[% END %]
[% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
[% IF ( XSLTDetailsDisplay ) %]
<div id="catalogue_detail_biblio" class="col-xs-9">
[% ELSE %]
<div id="catalogue_detail_biblio" class="col-xs-9">
[% END %]
[% ELSE %]
<div id="catalogue_detail_biblio" class="col-xs-12">
[% END %]
[% XSLTBloc | $raw %]
[% IF shelves.count %]
<span class="results_summary"><span class="label">Lists that include this title: </span>
[% FOREACH s IN shelves %]
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
[% IF ( loop.last ) %][% ELSE %]|[% END %]
[% END %]
</span>
[% END %]
[% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %]
<span class="results_summary"><span class="label">Tags:</span>
[% FOREACH TagLoo IN TagLoop %]
[% IF ( CAN_user_tools_moderate_tags ) %]
<a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a>
[% ELSE %]
[% TagLoo.term | html %]
[% END %]
<span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
[% END %]
</span>
[% END %]
<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 %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
[% IF ( holdcount ) %]
<span class="results_summary">
<span class="label">Holds:</span>
<span class="number_box">
[% IF CAN_user_reserveforothers_place_holds %]
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber | uri %]">[% holdcount | html %]</a>
[% ELSE %]
<span>[% holdcount | html %]</span>
[% END %]
</span>
</span>
[% END %]
[% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
<span class="results_summary">
<span class="label">Article requests:</span>
<span class="number_box">
<a href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% biblionumber | uri %]">[% article_requests_count | html %]</a>
</span>
</span>
[% END %]
[% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
</div><div class="col-xs-3" id="bookcoverimg">
[% IF ( LocalCoverImages ) %]
<div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
[% END %]
[% IF ( AdlibrisEnabled && normalized_isbn ) %]
<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>
[% END %]
[% IF ( AmazonCoverImages ) %]
<div id="amazon-bookcoverimg">
<a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link">
<img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
</a></div>
[% END %]
[% IF ( IntranetCoce && CoceProviders ) %]
[% coce_id = normalized_ean || normalized_isbn %]
<a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
[% IF ( coce_id ) %]
<span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
[% ELSE %]
<span class="no-image">No cover image available</span>
[% END %]
</a>
[% END %]
[% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
<a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
[% END %]
[% END %]
</div>
</div>
<div id="bibliodetails" class="toptabs">
<ul>
[% IF (SeparateHoldings) %]
<li>
<a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
</li>
<li>
<a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
</li>
[% ELSE %]
<li>
<a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
</li>
[% END %]
[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
[% IF ( subscriptionsnumber ) %]<li><a href="#subscriptions">Subscriptions</a></li>[% END %]
[% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %]
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %]
[% IF ( LocalCoverImages ) %]
[% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]
<li>
<a href="#images">Images ([% localimages.size() || 0 | html %])</a>
</li>
[% END %]
[% END %]
[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% END %][% END %]
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
<li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
[% END %]
[% FOREACH tab IN tabs %]
<li><a href="#[% tab.id | uri %]">[% tab.title | html %]</a></li>
[% END %]
</ul>
[% items_table_block_iter = 0 %]
[% BLOCK items_table %]
[% items_table_block_iter = items_table_block_iter + 1 %]
<div class="[% tab | html %]_table_table_controls">
[% IF (StaffDetailItemSelection) %]
| <a href="#" class="SelectAll" data-tab="[% tab | html %]"><i class="fa fa-check"></i> Select all</a> |
<a href="#" class="ClearAll" data-tab="[% tab | html %]"><i class="fa fa-remove"></i> Clear all</a>
<span class="itemselection_actions">
| Actions:
[% IF CAN_user_tools_items_batchdel %]
<a class="itemselection_action_delete"><i class="fa fa-trash"></i> Delete selected items</a>
[% END %]
[% IF CAN_user_tools_items_batchmod %]
<a class="itemselection_action_modify"><i class="fa fa-pencil"></i> Modify selected items</a>
[% END %]
</span>
[% END %]
</div>
<table class="items_table" id="[% tab | html %]_table">
<thead>
<tr>
[% IF (StaffDetailItemSelection) %]<th class="NoSort"></th>[% END %]
[% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
<th>Current location</th>
<th>Home library</th>
[% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
<th>Call number</th>
[% IF volinfo %]
[% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
<th class="title-string">Serial enumeration / chronology</th>
[% ELSE %]
<th>Serial enumeration / chronology</th>
[% END %]
[% END %]
<th>Status</th>
<th class="title-string">Last seen</th>
<th class="title-string">Date accessioned</th>
<th>Barcode</th>
[% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
[% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
[% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
[% IF materials %]<th>Materials specified</th>[% END %]
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
[% IF ( itemdata_nonpublicnotes ) %]<th>Non-public notes</th>[% END %]
[% IF ( hostrecords ) %]<th>Host records</th>[% END %]
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
[% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th class="NoSort">Spine label</th>[% END %]
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort">&nbsp;</th>[% END %]
</tr>
</thead>
<tbody>
[% FOREACH item IN items %]
<tr>
[% IF (StaffDetailItemSelection) %]
<td style="text-align:center;vertical-align:middle">
<input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
</td>
[% END %]
[% IF ( item_level_itypes ) %]
<td class="itype">
[% IF !noItemTypeImages && item.imageurl %]
<img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
[% END %]
[% item.translated_description | html %]
</td>
[% END %]
<td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) | html %] [% END %]</td>
<td class="homebranch">
[% Branches.GetName(item.homebranch) | html %]
<span class="shelvingloc">
<!--
If permanent location is defined, show description or code and display current location in parentheses. If not, display current location.
Note that permanent location is a code, and location may be an authval.
-->
[% IF item.permanent_location %]
[% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %]
[% permloc_authval | html %]
[% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %]
([% item.location | html %])
[% END %]
[% ELSE %]
[% item.location | html %]
[% END %]
</span>
</td>
[% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
[% IF ( volinfo ) %]
<td class="enumchron">
[% IF itemdata_publisheddate %]<span title="[% item.publisheddate | html %]">[% END %]
[% IF ( itemdata_enumchron ) %]
[% IF item.enumchron && item.serialseq %]
<span class="enum">[% item.enumchron | html %]</span>
[% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
<span class="sep"> -- </span>
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% ELSIF item.enumchron %]
<span class="enum">[% item.enumchron | html %]</span>
[% ELSIF item.serialseq %]
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% IF ( item.publisheddate ) %]
<span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
[% END %]
[% END %]
</span>
</td>
[% END %]
<td class="status">
[% IF item.CheckedOutFor %]
[% IF item.onsite_checkout %]
<span>Currently in local use
[% ELSE %]
<span class="datedue">Checked out
[% END %]
[% UNLESS ( item.NOTSAMEBRANCH ) %]
[% IF item.onsite_checkout %]
by
[% ELSE %]
to
[% END %]
[% INCLUDE 'patron-title.inc' patron=item.CheckedOutFor hide_patron_infos_if_needed=1 %]
[% END %]
: due [% item.datedue | html %]
</span>
[% ELSIF ( item.transfertwhen ) %]
<span class="intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span>
[% END %]
[% IF ( item.itemlost ) %]
[% IF itemlostloop %]
[% FOREACH itemlostloo IN itemlostloop %]
[% IF itemlostloo.authorised_value == item.itemlost %]
<span class="lost">[% itemlostloo.lib | html %]</span>
[% END %]
[% END %]
[% ELSE %]
<span class="lost">Unavailable (lost or missing)</span>
[% END %]
[% END %]
[% IF ( item.withdrawn ) %]
[% IF itemwithdrawnloop %]
[% FOREACH itemwithdrawnloo IN itemwithdrawnloop %]
[% IF itemwithdrawnloo.authorised_value == item.withdrawn %]
<span class="wdn">[% itemwithdrawnloo.lib | html %]</span>
[% END %]
[% END %]
[% ELSE %]
<span class="wdn">Withdrawn</span>
[% END %]
[% END %]
[% IF ( item.damaged ) %]
[% IF itemdamagedloop %]
[% FOREACH itemdamagedloo IN itemdamagedloop %]
[% IF itemdamagedloo.authorised_value == item.damaged %]
<span class="dmg">[% itemdamagedloo.lib | html %]</span>
[% END %]
[% END %]
[% ELSE %]
<span class="dmg">Damaged</span>
[% END %]
[% END %]
[% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
Not for loan
[% IF ( item.notforloanvalue ) %]
([% item.notforloanvalue | html %])
[% END %]
[% END %]
[% SET hold = item.first_hold %]
[% IF hold %]
[% IF hold.waitingdate %]
Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].
[% ELSIF hold.priority == 1 %]
Item-level hold (placed [% hold.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( hold.branchcode ) | html %].
[% ELSE %]
There is an item level hold on this item (priority = [% hold.priority | html %]).
[% END %]
[% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
Hold for:
[% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
[% END %]
[% END %]
[% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
Available
[% END %]
[% IF ( item.restricted ) %]
<span class="restricted">([% item.restrictedvalue | html %])</span>
[% END %]
</td>
<td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
<td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&amp;itemnumber=[% item.itemnumber | uri %]&amp;biblionumber=[% item.biblionumber | uri %]&amp;bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
[% IF ( itemdata_uri ) %]
<td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
[% END %]
[% IF ( itemdata_copynumber ) %]
<td class="copynumber">[% item.copynumber | html %]</td>
[% END %]
[% IF ( itemdata_stocknumber ) %]
<td class="stocknumber">[% item.stocknumber | html %]</td>
[% END %]
[% IF materials %]
<td class="materials"> [% item.materials | html %] </td>
[% END %]
[% IF ( itemdata_itemnotes ) %]
<td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td>
[% END %]
[% IF itemdata_nonpublicnotes %]
<td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td>
[% END %]
[% IF ( hostrecords ) %]
<td>[% IF ( item.hostbiblionumber) %]<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.hostbiblionumber | uri %]" >[% item.hosttitle | html %]</a>[% END %]</td>
[% END %]
[% IF ( analyze ) %]
<td>
[% IF ( item.countanalytics ) %]
<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&amp;q=[% item.itemnumber | uri %]">[% item.countanalytics | html %] analytics</a>
[% END %]
</td>
[% END %]
[% IF ( analyze ) %]
<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=[% item.biblionumber | uri %]&amp;hostitemnumber=[% item.itemnumber | uri %]">Create analytics</a></td>
[% END %]
[% IF ShowCourseReserves %]
<td>
[% IF item.course_reserves %]
[% FOREACH r IN item.course_reserves %]
[% IF r.course.enabled == 'yes' %]
<p>
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id | uri %]">
[% r.course.course_name | html %]
<!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
[% IF r.course.section %] [% r.course.section | html %] [% END %]
[% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) | html %] [% END %]
</a>
</p>
[% END %]
[% END %]
[% END %]
</td>
[% END %]
[% IF ( SpineLabelShowPrintOnBibDetails ) %]
<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>
[% END %]
[% IF CAN_user_editcatalogue_edit_items %]
<td class="actions">
[% UNLESS item.cannot_be_edited %]
<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>
[% END %]
</td>
[% END %]
</tr>
[% END %]
</tbody>
</table>
[% END %][%# end of block items_table %]
<div id="holdings">
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %]
<span class="results_summary NovelistSelect" style="display:none;">
<span class="label">Novelist Select: </span>
<div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
</span>
[% END %]
[% IF ( count ) %]
[% IF ( showncount ) %]
[% PROCESS items_table tab="holdings" items=itemloop %]
[% END %]
[% IF ( hiddencount ) %]
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
[% END %]
[% IF ( debug_display ) %]
<br /><br />
<table>
<tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr>
<tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr>
<tr><td>serial</td><td>[% serial | html %]</td></tr>
</table>
[% END %]
[% ELSE %]
[% IF ( ALTERNATEHOLDINGS ) %]
[% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
<div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
[% END %]
[% ELSE %]
<div id="noitems">No physical items for this record</div>
[% END %]
[% END %]
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %]
<span class="results_summary NovelistSelect" style="display:none;">
<span class="label">Novelist Select: </span>
<div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
</span>
[% END %]
</div>
[% IF (SeparateHoldings) %]
<div id="otherholdings">
[% IF (otheritemloop.size) %]
[% PROCESS items_table tab="otherholdings" items=otheritemloop %]
[% ELSE %]
No other items.
[% END %]
</div>
[% END %]
[% IF ( MARCNOTES || notes ) %]
<div id="description">
<div class="content_set">
[% IF ( MARCNOTES ) %]
[% FOREACH MARCNOTE IN MARCNOTES %]
<p>
[% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
<a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
[% ELSE %]
[% MARCNOTE.marcnote | html | html_line_break %]
[% END %]
</p>
[% END %]
[% ELSE %]
[% IF ( notes ) %]
<p>[% notes | html %]</p>
[% END %]
[% END %]
</div>
</div>
[% END %]
[% IF ( subscriptionsnumber ) %]
<div id="subscriptions">
<div id="catalogue_detail_subscriptions">
<h2>This is a serial subscription</h2>
<p> (There are [% subscriptionsnumber | html %] subscriptions associated with this title).</p>
[% FOREACH subscription IN subscriptions %]
[% IF subscription.branchcode %]
<h3>At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]</h3>
[% END %]
[% IF ( subscription.closed ) %]<p>This subscription is closed.</p>[% END %]
[% IF ( subscription.location ) %]<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location ) | html %]</p>[% END %]
[% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber | html %] </p>[% END %]
[% IF ( subscription.subscriptionnotes ) %]<p>[% subscription.subscriptionnotes | html | html_line_break %] </p>[% END %]
[% IF ( subscription.missinglist ) %]<p>Missing issues: [% subscription.missinglist | html %] </p>[% END %]
[% IF ( subscription.librariannote ) %]<p>([% subscription.librariannote | html %])</p>[% END %]
[% IF ( subscription.latestserials ) %]
<p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p>
<table>
<tr>
<th>Issue #</th>
<th>Date arrived</th>
<th>Date published</th>
<th>Status</th>
<th>Note</th>
</tr>
[% FOREACH latestserial IN subscription.latestserials %]
<tr>
<td>[% latestserial.serialseq | html %]</td>
<td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
<td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
<td>
[% IF ( latestserial.status1 ) %]Expected[% END %]
[% IF ( latestserial.status2 ) %]Arrived[% END %]
[% IF ( latestserial.status3 ) %]Late[% END %]
[% IF ( latestserial.status4 ) %]Missing[% END %]
[% IF ( latestserial.status41 ) %]Missing (never received)[% END %]
[% IF ( latestserial.status42 ) %]Missing (sold out)[% END %]
[% IF ( latestserial.status43 ) %]Missing (damaged)[% END %]
[% IF ( latestserial.status44 ) %]Missing (lost)[% END %]
[% IF ( latestserial.status5 ) %]Not issued[% END %]
[% IF ( latestserial.status6 ) %]Delete[% END %]
[% IF ( latestserial.status7 ) %]Claimed[% END %]
[% IF ( latestserial.status8 ) %]Stopped[% END %]
</td>
<td>[% latestserial.notes | html %]</td>
</tr>
[% END %]
</table>
[% END %]
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">Subscription details</a>
[% END %]
</div>
</div>
[% END %]
[% IF Koha.Preference('AcquisitionDetails') %]
<div id="acq_details">
[% IF orders.count %]
<table id="orders">
<thead>
<tr>
<th>Vendor</th>
<th>Invoice</th>
<th>Basket group</th>
<th>Basket</th>
<th>Order number</th>
<th class="title-string">Creation date</th>
<th class="title-string">Receive date</th>
<th>Status</th>
<th>Quantity</th>
<th>Internal note</th>
<th>Subscription</th>
<th>Subscription callnumber</th>
</tr>
</thead>
<tbody>
[% FOR order IN orders %]
[% SET basket = order.basket %]
[% SET vendor = basket.bookseller %]
<tr>
<td>
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]" title="Vendor detail page">[% vendor.name | html %]</a>
</td>
<td>
[% IF order.invoiceid %]
[% IF CAN_user_acquisition %]
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]"
title="Invoice detail page">
[% order.invoice.invoicenumber | html %]</a>
[% ELSE %]
[% order.invoice.invoicenumber | html %]
[% END %]
[% END %]
</td>
<td>
[% IF basket.basketgroupid %]
[% SET basket_group = basket.basket_group %]
[% IF CAN_user_acquisition_group_manage %]
<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>
[% ELSE %]
[% basket_group.name | html %] ([% basket_group.id | html %])
[% END %]
[% END %]
</td>
<td>[% IF CAN_user_acquisition_order_manage %]
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">[% basket.basketname | html %] ([% basket.basketno | html %])</a>
[% ELSE %]
[% basket.basketname | html %] ([% basket.basketno | html %])
[% END %]</td>
<td>[% order.ordernumber | html %]</td>
<td><span title="[% basket.creationdate | uri %]">[% basket.creationdate | $KohaDates%]</span></td>
<td><span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates%]</span></td>
<td>
[% SWITCH order.orderstatus %]
[% CASE 'new' %]New
[% CASE 'ordered' %]Ordered
[% CASE 'partial' %]Partial
[% CASE 'complete' %]Complete
[% CASE 'cancelled' %]Cancelled
[% END %]
</td>
<td>[% order.quantity | html %]</td>
<td>[% order.order_internalnote | html %]</td>
<td>
[% IF order.subscriptionid %]
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% order.subscriptionid | uri %]">[% order.subscriptionid | html %]</a>
[% END %]
</td>
<td>
[% IF order.subscriptionid %]
[% order.subscription.callnumber | html %]
[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[% ELSE %]
There is no order for this biblio.
[% END %]
</div>
[% END %]
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
<div id="editions"><h4>Editions</h4>
<table>
[% 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 %]
[% 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 %]
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] &copy;[% XISBN.copyrightdate | html %]
[% IF ( XISBN.publishercode ) %]
[% 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 %]
[% END %]
[% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %]
[% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %]
</td>
[% END %]
</table></div>[% END %]
[% END %]
[% IF ( LocalCoverImages ) %]
<div id="images">
[% IF ( localimages.0 ) %]
<p>Click on an image to view it in the image viewer</p>
<ul class="thumbnails">
[% FOREACH image IN localimages %]
[% IF image %]
<li id="imagenumber-[% image | html %]" class="thumbnail">
<a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&amp;imagenumber=[% image | uri %]">
<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image | uri %]" />
</a>
[% IF CAN_user_tools_upload_local_cover_images %]
<a href="#" class="remove"><i class="fa fa-trash"></i> Delete image</a>
[% END %]
</li>
[% END %]
[% END %]
</ul>
[% ELSE # - No image passed JavaScript takes care %]
No images have been uploaded for this bibliographic record yet.
[% END %]
[% IF ( CAN_user_tools_upload_local_cover_images ) %]
<p>Upload an image file: <a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber | uri %]&amp;filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
</p>
[% END %]
</div>
[% END %]
[% IF ( HTML5MediaEnabled ) %]
<div id="html5media">
[% FOREACH HTML5MediaSet IN HTML5MediaSets %]
<p>
<[% HTML5MediaParent | html %] controls preload=none>
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]"[% HTML5MediaSet.typeblock | html %] />
[[% HTML5MediaParent | html %] tag not supported by your browser.]
</[% HTML5MediaParent | html %]>
</p>
[% END %]
</div>
[% END %]
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
<div id="NovelistSelect" class="novelistSelect">
<div data-novelist-novelistselect=[% normalized_isbn | html %]></div>
</div>
[% END %]
[% FOREACH tab IN tabs %]
<div id="[% tab.id | html %]">
[% tab.content | $raw %]
</div>
[% END %]
</div><!-- /bibliodetails -->
<div id="export" style="margin-top: 1em;">
<form method="get" action="/cgi-bin/koha/catalogue/export.pl">
<table> <tr>
<th>Save record</th> </tr>
<tr><td> Select download format: <select name="format">
<option value="mods">MODS (XML)</option>
<option data-toggle="modal" data-target="#exportModal_">Dublin Core</option>
<option value="marcxml">MARCXML</option>
<option value="marc8">MARC (non-Unicode/MARC-8)</option>
<option value="utf8">MARC (Unicode/UTF-8)</option> </select>
<input type="submit" name="save" value="Download record" /></td>
</tr>
<tr><td>
<input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="[% biblionumber | html %]" />
</td></tr>
</table>
</form>
</div>
<div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="marcPreviewLabel">MARC preview</h3>
</div>
<div class="modal-body">
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</div>
</div>
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'biblio-view-menu.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
[% Asset.js("js/catalog.js") | $raw %]
[% Asset.js("js/coce.js") | $raw %]
<script>
var interface = "[% interface | html %]";
var theme = "[% theme | html %]";
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
function verify_images() {
$("#bookcoverimg").each(function(i){
$(this).find('img').each(function(i){
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'))) {
w = this.width;
h = this.height;
if ((w == 1) || (h == 1)) {
$("#amazon-bookcoverimg").remove();
$("#catalogue_detail_biblio").attr("class","col-xs-12");
} else if ((this.complete != null) && (!this.complete)) {
$("#amazon-bookcoverimg").remove();
$("#catalogue_detail_biblio").attr("class","col-xs-12");
}
}
});
if( $(this).find('img').length < 1 ) $(this).remove();
});
$("#editions img").each(function(i){
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'))) {
w = this.width;
h = this.height;
if ((w == 1) || (h == 1)) {
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
} else if ((this.complete != null) && (!this.complete)) {
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
}
}
});
}
function removeLocalImage(imagenumber) {
var thumbnail = $("#imagenumber-" + imagenumber );
var copy = thumbnail.html();
thumbnail.find("img").css("opacity", ".2");
thumbnail.find("a.remove").html("<img style='display:inline-block' src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' />");
$.ajax({
url: "/cgi-bin/koha/svc/cover_images?action=delete&biblionumber=" + biblionumber + "&imagenumber=" + imagenumber,
success: function(data) {
$(data).each( function(i) {
if ( this.deleted == 1 ) {
thumbnail.remove();
} else {
thumbnail.html( copy );
alert(_("An error occurred on deleting this image"));
}
if ( $('ul.thumbnails > li').length == 0 ) {
showNoImageMessage();
}
});
},
error: function(data) {
thumbnail.html( copy );
alert(_("An error occurred on deleting this image"));
}
});
}
function showNoImageMessage() {
var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
no_images_msg = '<p>' + no_images_msg + '</p>';
[% IF ( CAN_user_tools_upload_local_cover_images ) %]
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 + "&amp;filetype=image'><i class='fa fa-upload' aria-hidden='true'></i> ","</a>");
no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
[% END %]
$('#images').html(no_images_msg);
}
[% IF StaffDetailItemSelection %]
function itemSelectionBuildDeleteLink(div) {
var itemnumbers = new Array();
$("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
itemnumbers.push($(this).val());
});
if (itemnumbers.length > 0) {
var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
url += '&biblionumber=[% biblionumber | uri %]';
url += '&src=CATALOGUING';
$('a.itemselection_action_delete').attr('href', url);
} else {
return false;
}
return true
}
function itemSelectionBuildModifyLink(div) {
var itemnumbers = new Array();
$("input[name='itemnumber'][type='checkbox']:checked", div).each(function() {
itemnumbers.push($(this).val());
});
if (itemnumbers.length > 0) {
var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
url += '&biblionumber=[% biblionumber | uri %]';
url += '&src=CATALOGUING';
$('a.itemselection_action_modify').attr('href', url);
} else {
return false;
}
return true;
}
function itemSelectionBuildActionLinks(tab) {
var div = $("#" + tab);
var delete_link_ok = itemSelectionBuildDeleteLink(div);
var modify_link_ok = itemSelectionBuildModifyLink(div);
if (modify_link_ok || delete_link_ok) {
$('.itemselection_actions', div).show();
} else {
$('.itemselection_actions', div).hide();
}
}
$(document).ready(function() {
$('table.items_table').each(function() {
var div = $(this).parent().attr("id");
itemSelectionBuildActionLinks(div);
});
$("input[name='itemnumber'][type='checkbox']").change(function() {
var div = $(this).parents('table').parent().parent().attr("id");
itemSelectionBuildActionLinks(div);
});
$(".SelectAll").on("click",function(e){
e.preventDefault();
var tab = $(this).data("tab");
$("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true);
itemSelectionBuildActionLinks(tab);
});
$(".ClearAll").on("click",function(e){
e.preventDefault();
var tab = $(this).data("tab");
$("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false);
itemSelectionBuildActionLinks(tab);
});
});
[% END %]
$(document).ready(function() {
$('#bibliodetails').tabs();
[% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
$('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
[% END %]
$('#search-form').focus();
$('.thumbnails > li > .remove').click(function() {
var result = confirm(_("Are you sure you want to delete this cover image?"));
if ( result == true ) {
var imagenumber = $(this).parent().attr('id').split('-')[1];
removeLocalImage(imagenumber);
}
return false;
});
[%# inject no images message %]
[% IF LocalCoverImages %]
KOHA.LocalCover.GetCoverFromBibnumber(true);
[% END %]
[% IF ( IntranetCoce && CoceProviders ) %]
KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
[% END %]
$("body").on("click",".previewMARC", function(e){
e.preventDefault();
var page = $(this).attr("href");
$("#marcPreview .modal-body").load(page + " table");
$('#marcPreview').modal({show:true});
});
$("#marcPreview").on("hidden.bs.modal", function(){
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
});
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
novSelect.loadContentForQuery({
ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
version : '2.1'
},
'[% Koha.Preference('NovelistSelectStaffProfile') | html %]',
'[% Koha.Preference('NovelistSelectPassword') | html %]',
function(d){
if ( d.length > 0 ){ //If no content
$(".NovelistSelect").show();
}
});
[% END %]
$(".print-label").on("click", function(e){
e.preventDefault();
link = $(this).attr("href");
openWindow(link,"Print spine label",400,400);
});
});
[% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
verify_images();
});[% END %]
</script>
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %]
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
[% END %]
[% INCLUDE 'datatables.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
[% INCLUDE 'strings.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% Asset.js("js/browser.js") | $raw %]
[% Asset.js("js/table_filters.js") | $raw %]
<script>
var browser;
browser = KOHA.browser('[% searchid | html %]', parseInt(biblionumber, 10));
browser.show();
$(document).ready(function() {
var ids = ['holdings_table', 'otherholdings_table'];
for (var i in ids) {
var id = ids[i];
var dt_parameters = {
'sDom': 't',
'bPaginate': false,
'bAutoWidth': false,
"aoColumnDefs": [
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
]
};
var table = KohaTable(id, dt_parameters, null, 'with_filters');
}
[% IF Koha.Preference('AcquisitionDetails') %]
var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
var acquisitiondetails_table = KohaTable("orders", {
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
'bPaginate': false,
'bAutoWidth': false,
"aaSorting": [[ 4, "desc" ]],
"aoColumnDefs": [
{ "aTargets": "title-string", "sType": "title-string" }
]
}, columns_settings);
[% END %]
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]