[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Biblio %]
-[% USE ColumnsSettings %]
+[% USE TablesSettings %]
+[% PROCESS 'i18n.inc' %]
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> ›
[% IF ( unknownbiblionumber ) %]
- Unknown record
+ <span class="unknownrecord">Unknown record</span>
[% ELSE %]
- Details for <i>[% INCLUDE 'biblio-title.inc' %]</i>
+ <span class="titledetails">Details for <i>[% INCLUDE 'biblio-title.inc' %]</i></span>
[% END %]
</div>
[% 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 %]
+ <span class="biberror">
+ There is an error with this bibliographic record, the view may be degraded.</span>
+ <span class="error"><br/> Error: [% decoding_error | html %]</span>
</div>
[% END %]
[% IF ( ocoins ) %]
[% 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 %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
+ <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>
[% IF ( holdcount ) %]
<span class="results_summary">
</span>
[% END %]
+ [% IF illrequests.count %]
+ <span class="results_summary">
+ <span class="label">ILL requests:</span>
+ [% IF CAN_user_ill %]
+ [% FOREACH ill IN illrequests %]
+ <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 %]
+ [% END %]
+ [% ELSE %]
+ [% FOREACH ill IN illrequests %]
+ <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
+ [% END %]
+ [% END %]
+ </span>
+ [% END %]
+
[% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
<span class="results_summary">
<span class="label">Article requests:</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 %]
+ </div>
+ <div class="col-xs-3" id="bookcoverimg">
+ <div id="cover-slides">
+ [% IF ( LocalCoverImages ) %]
+ [% IF ( localimages.0 ) %]
+ [% FOREACH image IN localimages %]
+ [% IF image %]
+ <div class="cover-image local-coverimg">
+ <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image | uri %]">
+ <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image | uri %]" alt="Local cover image" />
+ </a>
+ <div class="hint">Local cover image</div>
+ </div>
+ [% END %]
+ [% END %]
+ [% END %]
+ [% 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 %]
+ [% IF ( AdlibrisEnabled && normalized_isbn ) %]
+ <div class="cover-image" id="adlibris-coverimg">
+ <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>
+ <div class="hint">Image from Adlibris</div>
+ </div>
+ [% END %]
-</div>
+ [% IF ( AmazonCoverImages && normalized_isbn) %]
+ <div class="cover-image" 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="Amazon cover image" />
+ </a>
+ <div class="hint">Image from Amazon.com</div>
+ </div>
+ [% END %]
+
+ [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %]
+ [% coce_id = normalized_ean || normalized_isbn %]
+ <div class="cover-image" id="coce-coverimg">
+ [% IF ( coce_id ) %]
+ <span title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span>
+ [% ELSE %]
+ <span class="no-image">No cover image available</span>
+ [% END %]
+ <div class="hint">Image from Coce</div>
+ </div>
+ [% END %]
+
+ [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
+ <div class="cover-image" id="custom-coverimg">
+ <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]">
+ <img id="custom-img" alt="Custom cover image" src="[% biblio.custom_cover_image_url | url %]" />
+ </a>
+ <div class="hint">Custom cover image</div>
+ </div>
+ [% END %]
+ </div> <!-- /#cover-slides -->
+ </div> <!-- /#bookcoverimg.col-xs-3 -->
+ [% ELSE %]
+ </div> <!-- /.col-xs-* -->
+ [% END # /IF ( AmazonCoverImages, etc ) %]
</div>
<div id="bibliodetails" class="toptabs">
<ul>
[% IF (SeparateHoldings) %]
<li>
- <a href="#holdings">[% LoginBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
+ <a href="#holdings">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a>
</li>
<li>
<a href="#otherholdings">Other holdings ([% otheritemloop.size() || 0 | html %])</a>
<a href="#holdings">Holdings ([% itemloop.size() || 0 | html %])</a>
</li>
[% END %]
-[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions</a></li>[% END %]
+[% IF ( MARCNOTES || notes ) %]<li><a href="#description">Descriptions ([% ( MARCNOTES.size || 1 ) | html %])</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 suggestions.count %]<li><a href="#suggestion_details">Suggestion 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>
[% END %]
[% END %]
-[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %]
+[% IF HTML5MediaEnabled && HTML5MediaSets.size %]<li id="media_tab"><a href="#html5media">Play media</a></li>[% 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 %]
<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 ) %]<th>Serial enumeration / chronology</th>[% 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"> </th>[% END %]
+ [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
+ [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
+ <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current location</th>
+ <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th>
+ [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %]
+ <th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th>
+ [% IF volinfo %]
+ [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting%]
+ <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron" class="title-string">Serial enumeration / chronology</th>
+ [% ELSE %]
+ <th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th>
+ [% END %]
+ [% END %]
+ <th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th>
+ <th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen" class="title-string">Last seen</th>
+ <th id="[% tab | html %]_dateaccessioned" data-colname="[% tab | html %]_dateaccessioned" class="title-string">Date accessioned</th>
+ <th id="[% tab | html %]_datelastborrowed" data-colname="[% tab | html %]_datelastborrowed" class="title-string">Date last borrowed</th>
+ <th id="[% tab | html %]_barcode" data-colname="[% tab | html %]_barcode">Barcode</th>
+ [% IF ( itemdata_uri ) %]<th id="[% tab | html %]_uri" data-colname="[% tab | html %]_uri">URL</th>[% END %]
+ [% IF ( itemdata_copynumber ) %]<th id="[% tab | html %]_copynumber" data-colname="[% tab | html %]_copynumber">Copy number</th>[% END %]
+ [% IF ( itemdata_stocknumber ) %]<th id="[% tab | html %]_stocknumber" data-colname="[% tab | html %]_stocknumber">Inventory number</th>[% END %]
+ [% IF materials %]<th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>[% END %]
+ [% IF ( itemdata_itemnotes ) %]<th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>[% END %]
+ [% IF ( itemdata_nonpublicnotes ) %]<th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>[% END %]
+ [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
+ [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
+ [% IF ( ShowCourseReserves ) %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
+ [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
+ [% IF ( CAN_user_editcatalogue_edit_items ) %]<th id="[% tab | html %]_actions" data-colname="[% tab | html %]_actions"class="NoSort"> </th>[% END %]
</tr>
</thead>
<tbody>
[% IF !noItemTypeImages && item.imageurl %]
<img src="[% item.imageurl | html %]" alt="[% item.translated_description | html %]" title="[% item.translated_description | html %]" />
[% END %]
- [% item.translated_description | html %]
+ <span class="itypedesc">[% item.translated_description | html %]</span>
</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">[% item.location | html %]</span>
+ <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span>
+ <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>
<span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
[% END %]
[% END %]
+ </span>
</td>
[% END %]
<td class="status">
[% END %]
[% IF ( item.itemnotforloan || item.notforloan_per_itemtype ) %]
- Not for loan
+ <span class="notforloan">Not for loan
[% IF ( item.notforloanvalue ) %]
- ([% item.notforloanvalue | html %])
+ <span class="reason">([% item.notforloanvalue | html %])</span>
[% END %]
+ </span>
[% END %]
- [% IF ( item.reservedate ) %]
- [% IF ( item.waitingdate ) %]
- Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) | html %] since [% item.waitingdate | $KohaDates %].
+ [% SET hold = item.first_hold %]
+ [% IF hold %]
+ [% IF hold.waitingdate %]
+ <span class="waitingat">Waiting at [% Branches.GetName( hold.branchcode ) | html %] since [% hold.waitingdate | $KohaDates %].</span>
+ [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
+ <span class="heldfor">Hold for:</span>
+ [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
+ [% END %]
[% ELSE %]
- Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) | html %].
- [% END %]
- [% IF ( canreservefromotherbranches ) %]
- Hold for:
- [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
+ <span class="holdonitem">There is an item level hold on this item (priority = [% hold.priority | html %]).</span>
[% END %]
[% END %]
- [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
- Available
+ [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold ) %]
+ <span class="available">Available</span>
[% END %]
[% IF ( item.restricted ) %]
</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 class="datelastborrowed"><span title="[% item.datelastborrowed | html %]">[% item.datelastborrowed | $KohaDates %]</span></td>
<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>
[% IF ( itemdata_uri ) %]
- <td class="uri"><a href="[% item.uri | url %]">[% item.uri | html %]</a></td>
+ [% IF item.uri.split(' \| ').size > 1 %]
+ <td class="uri">
+ [% FOREACH uri IN item.uri.split(' \| ') %]<a href="[% uri | url %]">[% uri | html %]</a><br>[% END %]
+ </td>
+ [% ELSE %]
+ <td class="uri">
+ [% IF item.uri %]
+ <a href="[% item.uri | url %]">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
+ [% END %]
+ </td>
+ [% END %]
[% END %]
[% IF ( itemdata_copynumber ) %]
<td class="copynumber">[% item.copynumber | html %]</td>
[% IF (otheritemloop.size) %]
[% PROCESS items_table tab="otherholdings" items=otheritemloop %]
[% ELSE %]
- No other items.
+ <span class="nootheritems">No other items.</span>
[% END %]
</div>
[% END %]
</tbody>
</table>
[% ELSE %]
- There is no order for this biblio.
+ <span class="noorder">There is no order for this bibliographic record.</span>
[% END %]
</div>
[% END %]
+[% IF suggestions.count %]
+ <div id="suggestion_details">
+ [% IF nb_archived_suggestions > 0 %]
+ <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %]
+ [% END %]
+ <table id="suggestions" class="sorted">
+ <thead>
+ <tr>
+ <th class="NoSort"> </th>
+ <th class="anti-the">Suggestion</th>
+ <th>Suggested by - on</th>
+ <th>Managed by - on</th>
+ <th>Last modification by - on</th>
+ <th>Library</th>
+ <th>Fund</th>
+ <th>Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH suggestion IN suggestions %]
+ <tr>
+ <td>[% suggestion.suggestionid | html %]</td>
+ <td>
+ <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestion.suggestionid | uri %]&op=show" title="suggestion" >
+ [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %]</a>
+ <br />
+ [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
+ [% IF ( suggestion.volumedesc ) %]; Volume:<i>[% suggestion.volumedesc | html %]</i> [% END %]
+ [% IF ( suggestion.isbn ) %]; ISBN:<i>[% suggestion.isbn | html %]</i> [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in <i>[% suggestion.publicationyear | html %]</i> [% END %][% IF ( suggestion.place ) %] in <i>[% suggestion.place | html %]</i> [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]<br />[% IF ( suggestion.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestion.note | html %]</div>[% END %]
+ </td>
+ <td>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.suggestedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</a>
+ [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %]
+ </td>
+ <td>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.managedby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</a>
+ [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %]
+ </td>
+ <td>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestion.lastmodificationby | uri %]">[% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %]</a>
+ [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %]
+ </td>
+ <td>
+ [% Branches.GetName( suggestion.branchcode ) | html %]
+ </td>
+ <td>
+ [% suggestion.fund.budget_name | html %]
+ </td>
+ <td>
+ [% IF suggestion.STATUS == 'ASKED' %]Pending
+ [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted
+ [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered
+ [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected
+ [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked
+ [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available
+ [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %]
+ [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %]
+ [% ELSE %]Status unknown
+ [% END %]
+ [% IF suggestion.reason %]
+ <br />([% suggestion.reason | html %])
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+[% END %]
+
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
<div id="editions"><h4>Editions</h4>
<table>
[% END %]
</ul>
[% ELSE # - No image passed JavaScript takes care %]
- No images have been uploaded for this bibliographic record yet.
+ <span class="noimagesuploaded">No images have been uploaded for this bibliographic record yet.</span>
[% 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 %]&filetype=image"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
<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 %]>
+ [% IF HTML5MediaSet.is_youtube %]
+ <iframe id="player" type="text/html" width="640" height="360"
+ src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
+ [% ELSE %]
+ <[% HTML5MediaParent | html %] controls preload=none>
+ <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] />
+ [[% HTML5MediaParent | html %] tag not supported by your browser.]
+ </[% HTML5MediaParent | html %]>
+ [% END %]
</p>
[% END %]
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
[% Asset.js("js/catalog.js") | $raw %]
- [% INCLUDE 'greybox.inc' %]
[% 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");
+ // Loop over each container in the template which contains covers
+ $(".cover-image").each( function( index ){
+ var div = $(this);
+ // Find the image in the container
+ var img = div.find("img")[0];
+ if( $(img).length > 0 ){
+ if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
+ // No image loaded in the container. Remove the slide
+ div.remove();
+ } else {
+ // All slides start hidden. If this is the first one, show it.
+ if( index == 0 ){
+ div.show();
+ }
+ // Check if Amazon image is present
+ if ( div.attr("id") == "amazon-bookcoverimg" ) {
+ w = img.width;
+ h = img.height;
+ if ((w == 1) || (h == 1)) {
+ // Amazon returned single-pixel placeholder
+ // Remove the container
+ div.remove();
+ }
+ }
+ if( div.attr("id") == "custom-img" ){
+ if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
+ // No image was loaded via the CustomCoverImages system preference
+ // Remove the container
+ div.remove();
+ }
+ }
+ if( div.attr("id") == "coce-coverimg" ){
+ // Identify which service's image is being loaded by Coce
+ if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
+ div.find(".hint").html(_("Coce image from Amazon.com"));
+ } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
+ div.find(".hint").html(_("Coce image from Google Books"));
+ } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
+ div.find(".hint").html(_("Coce image from Open Library"));
+ }
}
}
- });
- if( $(this).find('img').length < 1 ) $(this).remove();
+ }
});
+
+ var coverSlides = $(".cover-image");
+ if( coverSlides.length > 1 ){
+ coverSlides.each(function( index ){
+ // If more that one slide is present, add a navigation link
+ // for activating the slide
+ var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
+ if( index == 0 ){
+ // Set the first navigation link as active
+ $(covernav).addClass("nav-active");
+ }
+ $(covernav).html("<i class=\"fa fa-circle\"></i>");
+ $("#cover-slides").append( covernav );
+
+ });
+ }
+
+ if( $(".cover-image:visible").length < 1 ){
+ $("#cover-slides").remove();
+ } else {
+ $("#cover-slides").addClass("cover-slides");
+ }
+
$("#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'))) {
+ if ( this.src.indexOf('amazon.com') >= 0 ) {
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)) {
+ } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
}
}
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 {
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 {
$(document).ready(function() {
$('#bibliodetails').tabs();
[% IF count == 0 and ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
- $('#bibliodetails').tabs("option", "active", 3);
+ $('#bibliodetails').tabs("option", "active", $('#media_tab').index() );
[% END %]
$('#search-form').focus();
$('.thumbnails > li > .remove').click(function() {
return false;
});
- [%# inject no images message %]
- [% IF LocalCoverImages %]
- KOHA.LocalCover.GetCoverFromBibnumber(true);
- [% END %]
[% IF ( IntranetCoce && CoceProviders ) %]
KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]');
[% END %]
link = $(this).attr("href");
openWindow(link,"Print spine label",400,400);
});
+ $("#cover-slides").on("click",".cover-nav", function(e){
+ e.preventDefault();
+ // Adding click handler for cover image navigation links
+ var num = $(this).data("num");
+ $(".cover-nav").removeClass("nav-active");
+ $(this).addClass("nav-active");
+ $(".cover-image").hide();
+ $(".cover-image").eq( num ).show();
+ });
});
- [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
+ $(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 'browser-strings.inc' %]
+ [% INCLUDE 'strings.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% Asset.js("js/browser.js") | $raw %]
[% Asset.js("js/table_filters.js") | $raw %]
$(document).ready(function() {
var ids = ['holdings_table', 'otherholdings_table'];
-
+ var columns_settings = [ [% TablesSettings.GetColumns('catalogue', 'detail','holdings_table','json') | $raw %], [% TablesSettings.GetColumns('catalogue', 'detail','otherholdings_table','json') | $raw %] ];
for (var i in ids) {
var id = ids[i];
var dt_parameters = {
"aoColumnDefs": [
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
- ]
+ ],
+ "bKohaColumnsUseNames": true,
+ "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
};
- var table = KohaTable(id, dt_parameters, null, 'with_filters');
+ var table = KohaTable(id, dt_parameters, columns_settings[i], 'with_filters');
}
[% IF Koha.Preference('AcquisitionDetails') %]
- var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
+ var columns_settings = [% TablesSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
var acquisitiondetails_table = KohaTable("orders", {
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
'bPaginate': false,
]
}, columns_settings);
[% END %]
+
+ [% IF suggestions.count %]
+ $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "aoColumnDefs": [
+ { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
+ ],
+ "sPaginationType": "full"
+ }));
+ [% END %]
});
</script>
[% END %]