Bugzilla – Attachment 104301 Details for
Bug 25302
The indentations should be in accordance with the Coding guidelines and whitespaces/linebreaks should be consistent.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25302: The indentations should be in accordance with the Coding guidelines and whitespaces/linebreaks should be consistent.
Bug-25302-The-indentations-should-be-in-accordance.patch (text/plain), 120.48 KB, created by
Timothy Alexis Vass
on 2020-05-04 15:00:10 UTC
(
hide
)
Description:
Bug 25302: The indentations should be in accordance with the Coding guidelines and whitespaces/linebreaks should be consistent.
Filename:
MIME Type:
Creator:
Timothy Alexis Vass
Created:
2020-05-04 15:00:10 UTC
Size:
120.48 KB
patch
obsolete
>From d813cfeb359cb71e7c721be0613a9af5affc95a9 Mon Sep 17 00:00:00 2001 >From: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> >Date: Mon, 4 May 2020 16:58:02 +0200 >Subject: [PATCH] Bug 25302: The indentations should be in accordance with the > Coding guidelines and whitespaces/linebreaks should be consistent. > > To test: > 1) Open an item in OPAC and see if it works. >--- > .../bootstrap/en/modules/opac-detail.tt | 1350 +++++++++-------- > 1 file changed, 730 insertions(+), 620 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index f4bcefcbe8..a177fdea16 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -19,19 +19,21 @@ > [% ShowCourseReservesHeader = 0 %] > [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %] > [% FOREACH ITEM_RESULT IN itemloop %] >- [% IF ITEM_RESULT.course_reserves %] >- [% FOREACH r IN ITEM_RESULT.course_reserves %] >- [% IF r.course.enabled == 'yes' %] >- [% ShowCourseReservesHeader = 1 %] >- [% END %] >- [% END %] >+ [% IF ITEM_RESULT.course_reserves %] >+ [% FOREACH r IN ITEM_RESULT.course_reserves %] >+ [% IF r.course.enabled == 'yes' %] >+ [% ShowCourseReservesHeader = 1 %] >+ [% END %] >+ [% END %] > [% END %] > [% END %] > [% END %] > > [% INCLUDE 'doc-head-open.inc' %] >-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %]</title> >-[% INCLUDE 'doc-head-close.inc' %] >+ <title> >+ [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %] >+ </title> >+ [% INCLUDE 'doc-head-close.inc' %] > [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %] > [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] > [% Asset.css("lib/verovio/midiplayer.css") | $raw %] >@@ -43,7 +45,7 @@ > > <div class="main"> > <ul class="breadcrumb"> >- <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> >+ <li><a href="/cgi-bin/koha/opac-main.pl">Home</a><span class="divider">›</span></li> > <li><a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a></li> > </ul> > >@@ -51,7 +53,6 @@ > <div class="row-fluid"> > <div class="span9"> > <div id="catalogue_detail_biblio" class="maincontent"> >- > <div id="bookcover"> > [% IF ( biblio.title ) %] > [% img_title = biblio.title %] >@@ -87,14 +88,18 @@ > [% IF ( GoogleJackets ) %] > <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div> > [% END %] >+ > [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >- [% coce_id = normalized_ean || normalized_isbn | html %] >- <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div> >+ [% coce_id = normalized_ean || normalized_isbn | html %] >+ <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div> > [% END %] >+ > [% IF OpenLibraryCovers %] > <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div> > [% END %] >+ > [% bt_id = ( normalized_upc || normalized_isbn ) %] >+ > [% IF ( BakerTaylorEnabled && bt_id ) %] > [% IF BakerTaylorBookstoreURL %] > [% IF ( OPACURLOpenInNewWindow ) %] >@@ -106,6 +111,7 @@ > <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /> > [% END %] > [% END %] >+ > [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] > [% IF ( OPACURLOpenInNewWindow ) %] > <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a> >@@ -133,14 +139,17 @@ > <h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1> > [% IF ( author ) %]<h5 class="author">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %] > >- <span class="results_summary">[% UNLESS ( item_level_itypes ) %] >- [ >- [% IF ( description ) %] >- [% description | html %] >- [% ELSE %] >- [% itemtype | html %] >+ <span class="results_summary"> >+ [% UNLESS ( item_level_itypes ) %] >+ [ >+ [% IF ( description ) %] >+ [% description | html %] >+ [% ELSE %] >+ [% itemtype | html %] >+ [% END %] >+ ] > [% END %] >- ] [% END %] >+ > [% IF ( unititle ) %], [% unititle | html %][% END %] > </span> > >@@ -151,20 +160,22 @@ > [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %] > [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %] > [% IF ( MARCAUTHOR.authoritylink ) %] >- <a title="â¡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors authority_link" data-authid="[% MARCAUTHOR.authoritylink | html %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> >+ <a title="â¡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %][% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors authority_link" data-authid="[% MARCAUTHOR.authoritylink | html %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> > [% ELSE %] >- <a title="â¡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> >+ <a title="â¡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %][% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]"> > [% END %] > [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a> > [% END %] > [% IF (MARCAUTHOR.authoritylink) %] > <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> > [% END %] >+ > [% IF IDREF and MARCAUTHOR.unimarc3 %] >- <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a> >+ <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600, 500]">IdRef</a> > [% END %] >+ > [% UNLESS ( loop.last ) %]|[% END %] >- [% END # /FOREACH MARCAUTHORS %] >+ [% END # / FOREACH MARCAUTHORS %] > </div> > [% END # IF MARCAUTHORS %] > >@@ -175,6 +186,7 @@ > [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %] > <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a> > [% END %] >+ > [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %] > . [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %] > [% END %] >@@ -182,21 +194,24 @@ > [% UNLESS ( loop.last ) %]|[% END %] > [% END # / FOREACH MARCSERIES %] > </span> >- [% END # /MARCSERIES %] >+ [% END # / MARCSERIES %] > > [% IF ( editionstatement ) %] > <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span> > [% END %] >+ > [% IF ( publishercode ) %] > <span class="results_summary publisher"><span class="label">Published by :</span> > <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] "> > [% publishercode | html %] >- </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] >+ </a> >+ [% IF ( place ) %]([% place | html %])[% END %] >+ [% IF ( publicationyear ) %], [% publicationyear | html %][% END %] > </span> > [% END %] > > [% IF ( pages ) %] >- <span class="results_summary physical"><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]</span> >+ <span class="results_summary physical"><span class="label">Physical details:</span>[% pages | html %][% illus | html %][% size | html %]</span> > [% END %] > > [% IF ( MARCISBNS ) %] >@@ -214,8 +229,9 @@ > [% IF ( collectiontitle ) %] > <span class="results_summary collection"><span class="label">Collection: </span> > [% collectiontitle | html %] >- [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn | html %][% END %] >- [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume | html %] [% END %] >+ [% IF ( collectionissn ) %][% ', ISSN ' _ collectionissn | html %][% END %] >+ >+ [% IF ( collectionvolume ) %][% ' ; ' _ collectionvolume | html %][% END %] > > </span> > [% END %] >@@ -231,21 +247,22 @@ > [% IF ( MARCSUBJCTS ) %] > <div class="results_summary subjects"> > <span class="label">Subject(s):</span> >- > [% FOREACH MARCSUBJCT IN MARCSUBJCTS %] > [% subjectsloop = loop %] > [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] > [% SUBFIELD.separator | html %] > <a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" class="subject" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value | html %]</a> > [% END %] >+ > [% IF (MARCSUBJCT.authoritylink) %] > <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a> > [% END %] >+ > [% UNLESS ( loop.last ) %] | [% END %] > [% END # / FOREACH MARCSUBJCTS %] > </div> >- [% ELSE # /IF MARCSUBJCTS %] >- [% IF ( subjects ) %]<span class="results_summary subjects"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a class="subject" href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject | html %]</a> | [% END %]</span>[% END %] >+ [% ELSE # / IF MARCSUBJCTS %] >+ [% IF ( subjects ) %]<span class="results_summary subjects"><span class="label">Subject(s):</span>[% FOREACH subject IN subjects %]<a class="subject" href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject | html %]</a> | [% END %]</span>[% END %] > [% END %] > > [% IF ( copyrightdate ) %] >@@ -269,31 +286,32 @@ > <div class="results_summary online_resources"><span class="label">Online resources:</span> > <ul> > [% FOREACH MARCurl IN MARCURLS %] >- <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %] >+ <li> >+ [% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %] > >- [% IF ( OPACURLOpenInNewWindow ) %] >- [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >- <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> >- [% ELSE %] >- <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> >- [% END %] >- [% ELSE %] >- [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >- <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]"> >+ [% IF ( OPACURLOpenInNewWindow ) %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> >+ [% ELSE %] >+ <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer"> >+ [% END %] > [% ELSE %] >- <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]"> >- [% END %] >- [% END %] >- [% MARCurl.linktext | html %]</a> >- [% IF ( MARCurl.notes ) %] >- <ul> >- [% FOREACH note IN MARCurl.notes %] >- <li>[% note.note | html %]</li> >- [% END %] >- </ul> >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %] >+ <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]"> >+ [% ELSE %] >+ <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]"> >+ [% END %] > [% END %] >+ [% MARCurl.linktext | html %]</a> >+ [% IF ( MARCurl.notes ) %] >+ <ul> >+ [% FOREACH note IN MARCurl.notes %] >+ <li>[% note.note | html %]</li> >+ [% END %] >+ </ul> >+ [% END %] > </li> >- [% END # /FOREACH MARCURLS %] >+ [% END # / FOREACH MARCURLS %] > </ul> > </div> > [% END # / IF MARCURLS %] >@@ -328,14 +346,15 @@ > <span class="label">Tags from this library:</span> > <ul id="tagslist"> > [% FOREACH TagLoo IN TagLoop %] >- <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span> >+ <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a><span class="weight">([% TagLoo.weight_total | html %])</span> > [% IF ( loop.last ) %][% ELSE %], [% END %] > </li> > [% END %] > </ul> > [% ELSE %] >- <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span> >+ <span class="label">Tags from this library:</span><span class="notags">No tags from this library for this title.</span> > [% END %] >+ > [% IF ( TagsInputEnabled ) %] > [% IF ( loggedinusername ) %] > <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;"> >@@ -369,7 +388,7 @@ > [% END %] > [% END # / IF TagsInputEnabled %] > </div> >- [% END # /IF TagsShowEnabled %] >+ [% END # / IF TagsShowEnabled %] > > [% IF ( SyndeticsEnabled ) %] > [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %] >@@ -377,7 +396,7 @@ > <span class="label">Series information:</span> > <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | html %]&type=series&num=1&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> > </span> >- [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%] >+ [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists %] > [% IF ( SyndeticsAVPROFILEExists ) %] > <span class="results_summary"> > <span class="label">Audiovisual profile:</span> >@@ -398,7 +417,7 @@ > <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | html %]&type=awards&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a> > </span> > [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %] >- [% END # / IF SyndeticsEnabled%] >+ [% END # / IF SyndeticsEnabled %] > > [% IF ( OpacStarRatings != 'disable' ) %] > <form method="post" action="/cgi-bin/koha/opac-ratings.pl"> >@@ -412,6 +431,7 @@ > [% ELSE %] > <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off"> > [% END %] >+ > [% IF ( rating_avg_int == 0 ) %] > <option value="" selected="selected"></option> > [% END %] >@@ -468,9 +488,9 @@ > <div id="BW_critiques"></div> > <div id="BW_critiques_pro"></div> > <div id="BW_citations"></div> >- [% END # / IF Babeltheque%] >+ [% END # / IF Babeltheque %] > >- </div> <!-- / #catalogue_detail_biblio --> >+ </div><!-- / #catalogue_detail_biblio --> > > <div id="bibliodescriptions" class="toptabs"> > <ul> >@@ -479,12 +499,13 @@ > [% ELSE %] > <li id="tab_holdings"> > [% END %] >- [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %] >- <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a> >+ [% BLOCK holding_tab_title %][% IF ( SeparateHoldings ) %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %] >+ <a href="#holdings">[% PROCESS holding_tab_title %][% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a> > </li> >- [% IF (SeparateHoldings) %] >+ [% IF ( SeparateHoldings ) %] > <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li> > [% END %] >+ > [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] > [% SET title_notes_count = 0 %] > [% IF MARCNOTES %] >@@ -492,18 +513,22 @@ > [% ELSIF notes %] > [% SET title_notes_count = 1 %] > [% END %] >+ > [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %] >- <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li> >+ <li id="tab_descriptions"><a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li> > [% END %] >+ > [% IF ( SYNDETICS_TOC ) %] >- <li id="tab_toc"> <a href="#toc">TOC</a></li> >+ <li id="tab_toc"><a href="#toc">TOC</a></li> > [% END %] >+ > [% IF ( SyndeticsEnabled ) %] > [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %] >- <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li> >+ <li id="tab_excerpt"><a href="#excerpt">Excerpt</a></li> > [% END %] >+ > [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %] >- <li id="tab_reviews"> <a href="#reviews">Reviews</a></li> >+ <li id="tab_reviews"><a href="#reviews">Reviews</a></li> > [% IF ( LibraryThingForLibrariesID ) %] > <li id="tab_LTFLreviews"> > <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script> >@@ -511,14 +536,15 @@ > </li> > [% END %] > [% END %] >+ > [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %] >- <li id="tab_anotes"> <a href="#anotes">About the author</a></li> >+ <li id="tab_anotes"><a href="#anotes">About the author</a></li> > [% END %] > [% END # / IF SyndeticsEnabled %] > > [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] >- <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li> >- <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li> >+ <li id="tab_LFTLSimilarItems"><a href="#LFTLSimilarItems">Similar items</a></li> >+ <li id="tab_LTFLTagBrowse"><a href="#LTFLTagBrowse">Tag browser</a></li> > [% END %] > > [% IF ( subscriptionsnumber ) %] >@@ -533,7 +559,7 @@ > > [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %] > [% IF ( NovelistSelectView == 'tab') %] >- <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li> >+ <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">Novelist Select</a></li> > [% END %] > [% END %] > >@@ -580,7 +606,6 @@ > </div> > [% END # / IF serialcollection %] > >- > <div id="holdings"> > [% IF too_many_items %] > <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">Click here to view them all.</a></p> >@@ -593,11 +618,13 @@ > <span>[% acquisition_details.total_quantity | html %] items are on order.</span> > [% END %] > [% END %] >+ > [% IF holds_count.defined || priority %] > <div id="bib_holds"> > [% IF holds_count.defined %] > <span>Total holds: [% holds_count | html %]</span> > [% END %] >+ > [% IF priority %] > [% IF holds_count.defined %] > <span>(priority [% priority | html %])</span> >@@ -610,7 +637,7 @@ > [% ELSE %] > [% IF ( ALTERNATEHOLDINGS ) %] > [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %] >- <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div> >+ <div id="alternateholdings"><span class="holdings_label">Holdings:</span>[% ALTERNATEHOLDING.holding | html %]</div> > [% END %] > [% ELSE %] > [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %] >@@ -627,11 +654,11 @@ > [% PROCESS 'shelfbrowser.inc' %] > [% INCLUDE shelfbrowser tab='holdings' %] > <br style="clear:both;" /> >- </div> <!-- / #holdings --> >+ </div><!-- / #holdings --> > >- [% IF (SeparateHoldings) %] >+ [% IF ( SeparateHoldings ) %] > <div id="otherholdings"> >- [% IF (otheritemloop.size) %] >+ [% IF ( otheritemloop.size ) %] > [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %] > [% ELSE %] > <span>No other items.</span> >@@ -643,32 +670,30 @@ > [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] > <div id="descriptions"> > <div class="content_set"> >+ [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %] >+ <h4>Enhanced descriptions from Syndetics:</h4> >+ <p>[% SYNDETICS_SUMMARY | html %]</p> >+ [% END %] > >- [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %] >- <h4>Enhanced descriptions from Syndetics:</h4> >- <p>[% SYNDETICS_SUMMARY | html %]</p> >- [% END %] >- >- [% IF ( MARCNOTES ) %] >- <div id="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 %] >+ [% IF ( MARCNOTES ) %] >+ <div id="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 %] >+ </div> >+ [% ELSE %] >+ [% IF ( notes ) %] >+ <p>[% notes | html %]</p> > [% END %] >- </p> >- [% END %] >- </div> >- [% ELSE %] >- [% IF ( notes ) %] >- <p>[% notes | html %]</p> > [% END %] >- [% END %] >- > </div> >- </div> <!-- / #descriptions --> >+ </div><!-- / #descriptions --> > [% END # / IF MARCNOTES || notes %] > > [% IF ( SyndeticsEnabled ) %] >@@ -676,11 +701,11 @@ > <div id="toc"> > <div class="content_set"> > <h3>Table of contents provided by Syndetics</h3> >- <ul> >- [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] >- <li><b>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li> >- [% END %] >- </ul> >+ <ul> >+ [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %] >+ <li><b>[% SYNDETICS_TO.l | html %][% SYNDETICS_TO.t | html %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li> >+ [% END %] >+ </ul> > </div> > </div> > [% END # / IF SyndeticsTOC && SYNDETICS_TOC %] >@@ -701,13 +726,11 @@ > [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %] > [% IF ( SYNDETICS_REVIEW.title ) %] > <h4>[% SYNDETICS_REVIEW.title | html %]</h4> >- [% FOREACH review IN SYNDETICS_REVIEW.reviews %] >- >- [% IF ( review.content ) %] >- [% review.content | html %] >- [% END %] >- >+ [% FOREACH review IN SYNDETICS_REVIEW.reviews %] >+ [% IF ( review.content ) %] >+ [% review.content | html %] > [% END %] >+ [% END %] > [% END %] > [% END %] > </div> >@@ -746,38 +769,50 @@ > <h3>At library: [% subscription.branchcode | html %]</h3> > [% END %] > [% END %] >+ > [% IF ( subscription.closed ) %] > <p class="subscription_closed">This subscription is closed.</p> > [% END %] >+ > [% IF ( subscription.location ) %] > <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %] > [% END %] >+ > [% IF ( subscription.callnumber ) %] > <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p> > [% END %] >+ > [% IF ( subscription.subscriptionnotes ) %] >- <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p> >+ <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %]</p> > [% END %] >- <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p> >- [% IF ( subscription.letter ) %]<span class="email_notifications"> >- [% IF ( loggedinusername ) %] >- [% IF ( subscription.hasalert ) %] >- <span>You have subscribed to email notification on new issues. </span><a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a> >+ <p class="subscription_dates"> >+ Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %][% subscription.histenddate | $KohaDates %][% ELSE %] now (current)[% END %] >+ </p> >+ [% IF ( subscription.letter ) %] >+ <span class="email_notifications"> >+ [% IF ( loggedinusername ) %] >+ [% IF ( subscription.hasalert ) %] >+ <span>You have subscribed to email notification on new issues. </span> >+ <a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a> >+ [% ELSE %] >+ <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a> >+ [% END %] > [% ELSE %] >- <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a> >+ <span>You must log in if you want to subscribe to email notification on new issues</span> > [% END %] >- [% ELSE %] >- <span>You must log in if you want to subscribe to email notification on new issues</span> >- [% END %] >- </span>[% END %] >+ </span> >+ [% END %] >+ > [% IF ( subscription.missinglist ) %] >- <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p> >+ <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %]</p> > [% END %] >+ > [% IF ( subscription.opacnote ) %] > <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p> > [% END %] >+ > [% IF ( subscription.latestserials ) %] >- <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p> >+ <p class="subscription_latestissues">The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p> > <table class="table table-bordered table-striped" id="subscriptionst"> > <thead> > <tr> >@@ -789,34 +824,34 @@ > </tr> > </thead> > <tbody> >- [% FOREACH latestserial IN subscription.latestserials %] >- <tr> >- <td class="serialseq">[% latestserial.serialseq | html %]</td> >- <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> >- <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> >- <td class="serial_status"> >- [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %] >- [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %] >- [% IF (latestserial.status3 ) %]<span>Late</span>[% END %] >- [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %] >- [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %] >- [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %] >- [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %] >- [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %] >- [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %] >- [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %] >- [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %] >- [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %] >- </td> >- <td class="serial_notes">[% latestserial.notes | html %]</td> >- </tr> >- [% END # / FOREACH latestserials %] >+ [% FOREACH latestserial IN subscription.latestserials %] >+ <tr> >+ <td class="serialseq">[% latestserial.serialseq | html %]</td> >+ <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> >+ <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> >+ <td class="serial_status"> >+ [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %] >+ [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %] >+ [% IF (latestserial.status3 ) %]<span>Late</span>[% END %] >+ [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %] >+ [% IF ( latestserial.status41 ) %]<span>Missing (never received )</span>[% END %] >+ [% IF ( latestserial.status42 ) %]<span>Missing (sold out )</span>[% END %] >+ [% IF ( latestserial.status43 ) %]<span>Missing (damaged )</span>[% END %] >+ [% IF ( latestserial.status44 ) %]<span>Missing (lost )</span>[% END %] >+ [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %] >+ [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %] >+ [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %] >+ [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %] >+ </td> >+ <td class="serial_notes">[% latestserial.notes | html %]</td> >+ </tr> >+ [% END # / FOREACH latestserials %] > </tbody> > </table> > [% END # / IF subscription.latestserials %] > [% END # / FOREACH subscriptions %] > <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p> >- </div> <!-- / #subscriptions --> >+ </div><!-- / #subscriptions --> > [% END # IF subscriptionsnumber %] > > [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %] >@@ -825,158 +860,164 @@ > <div class="content_set"> > <!-- Uncommenting this span makes the font smaller in the tab for LTFL --> > <!-- but breaks Xhtml validation --> >- <!-- <span class="results_summary">--> >+ <!-- <span class="results_summary"> --> > <div id="ltfl_related"></div> > <div id="ltfl_similars"></div> >- <!-- </span>--> >- </div> >- </div> >- <div id="LTFLTagBrowse"> >- <div class="content_set"> >- <!-- <span class="results_summary"> --> >- <div id="ltfl_tagbrowse" class="ltfl"></div> >- <!-- </span> --> >- </div> >- </div> >+ <!-- </span>--> >+ </div> >+ </div> >+ <div id="LTFLTagBrowse"> >+ <div class="content_set"> >+ <!-- <span class="results_summary"> --> >+ <div id="ltfl_tagbrowse" class="ltfl"></div> >+ <!-- </span> --> >+ </div> >+ </div> > [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %] > > [% IF Koha.Preference( 'reviewson' ) == 1 %] > <div id="comments"> > <div id="newcomment"></div> >- [% IF ( reviews ) %] >- [% FOREACH review IN reviews %] >- [% IF borrowernumber && review.borrowernumber == borrowernumber %] >- <div class="commentline yours" id="c[% review.reviewid | html %]"> >+ [% IF ( reviews ) %] >+ [% FOREACH review IN reviews %] >+ [% IF borrowernumber && review.borrowernumber == borrowernumber %] >+ <div class="commentline yours" id="c[% review.reviewid | html %]"> >+ [% IF ( review.avatarurl ) %] >+ <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> >+ [% END %] >+ >+ [% IF review.approved %] >+ <h5>Your comment</h5> >+ [% ELSE %] >+ <h5>Your comment (preview, pending approval)</h5> >+ [% END %] >+ <small>[% review.datereviewed | $KohaDates %]</small> >+ <p> >+ [% FILTER html_break %] >+ [% review.review | html %] >+ [% END %] >+ <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a> >+ </p> >+ </div> >+ [% ELSE %] >+ <div class="commentline"> >+ [% IF ( ShowReviewer != "none" && review.patron) %] > [% IF ( review.avatarurl ) %] > <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> > [% END %] >- [% IF review.approved %] >- <h5>Your comment</h5> >- [% ELSE %] >- <h5>Your comment (preview, pending approval)</h5> >+ >+ [% SWITCH ShowReviewer %] >+ [% CASE 'full' %] >+ <h5>Comment by [% review.patron.title | html %][% review.patron.firstname | html %][% review.patron.surname | html %]</h5> >+ [% CASE 'first' %] >+ <h5>Comment by [% review.patron.firstname | html %]</h5> >+ [% CASE 'surname' %] >+ <h5>Comment by [% review.patron.surname | html %]</h5> >+ [% CASE 'firstandinitial' %] >+ <h5>Comment by [% review.patron.firstname | html %][% review.patron.surname|truncate(2, '.') | html %]</h5> >+ [% CASE 'username' %] >+ <h5>Comment by [% review.patron.userid | html %]</h5> > [% END %] >+ > <small>[% review.datereviewed | $KohaDates %]</small> >- <p> >- [% FILTER html_break %] >- [% review.review | html %] >- [% END %] >- <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a> >- </p> >- </div> >- [% ELSE %] >- <div class="commentline"> >- [% IF ( ShowReviewer != "none" && review.patron) %] >- >- [% IF ( review.avatarurl ) %] >- <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" /> >- [% END %] >- [% SWITCH ShowReviewer %] >- [% CASE 'full' %] >- <h5>Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h5> >- [% CASE 'first' %] >- <h5>Comment by [% review.patron.firstname | html %]</h5> >- [% CASE 'surname' %] >- <h5>Comment by [% review.patron.surname | html %]</h5> >- [% CASE 'firstandinitial' %] >- <h5>Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h5> >- [% CASE 'username' %] >- <h5>Comment by [% review.patron.userid | html %]</h5> >- [% END %] >- >- <small>[% review.datereviewed | $KohaDates %]</small> >- [% ELSE %] >- <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> >- [% END # / IF ShowReviewer != "none" && review.patron %] >- <p> >- [% FILTER html_break %] >- [% review.review | html %] >- [% END %] >- </p> >- </div> <!-- / .commentline --> >+ [% ELSE %] >+ <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5> >+ [% END # / IF ShowReviewer != "none" && review.patron %] >+ <p> >+ [% FILTER html_break %] >+ [% review.review | html %] >+ [% END %] >+ </p> >+ </div><!-- / .commentline --> >+ [% END %] >+ [% END # / FOREACH reviews %] >+ [% ELSE %] >+ <p>There are no comments for this item.</p> >+ [% END # / IF reviews %] >+ >+ [% IF ( loggedinusername ) %] >+ [% UNLESS ( loggedincommenter ) %] >+ <div id="addcomment"> >+ <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">Post your comments on this item.</a> >+ </div> >+ [% END %] >+ [% ELSE %] >+ <div id="addcomment"> >+ <a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment. >+ </div> >+ [% END # / IF loggedinusername %] >+ </div><!-- / #comments --> >+ [% END # / IF reviewson %] >+ >+ [% IF ( OPACFRBRizeEditions && XISBNS ) %] >+ <div id="editions"> >+ <h4>Other editions of this work</h4> >+ <table class="table table-bordered table-striped"> >+ [% FOREACH XISBN IN XISBNS %] >+ <tr> >+ <td> >+ [% IF ( OPACAmazonCoverImages ) %] >+ <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" /> > [% END %] >- [% END # / FOREACH reviews %] >- [% ELSE %] >- <p>There are no comments for this item.</p> >- [% END # / IF reviews %] > >- [% IF ( loggedinusername ) %] >- [% UNLESS ( loggedincommenter ) %] >- <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;"> >- Post your comments on this item. >- </a></div> >- [% END %] >- [% ELSE %] >- <div id="addcomment"><a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div> >- [% END # / IF loggedinusername %] >- </div> <!-- / #comments --> >- [% END # / IF reviewson %] >+ [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] >+ [% IF ( XISBN.content_identifier_exists ) %] >+ <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" /> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END # / IF XISBN.content_identifier_exists %] >+ [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %] >+ </td> > >- [% IF ( OPACFRBRizeEditions && XISBNS ) %] >- <div id="editions"> >- <h4>Other editions of this work</h4> >- <table class="table table-bordered table-striped"> >- [% FOREACH XISBN IN XISBNS %] >- <tr> >- <td> >- [% IF ( OPACAmazonCoverImages ) %] >- <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" /> >- [% END %] >+ [% UNLESS ( item_level_itypes ) %] >+ <td>[% XISBN.description | html %]</td> >+ [% END %] >+ <td> >+ <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> >+ [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %] >+ [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %] > >- [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] >- [% IF ( XISBN.content_identifier_exists ) %] >- <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" /> >- [% ELSE %] >- <span class="no-image">No cover image available</span> >- [% END # / IF XISBN.content_identifier_exists %] >- [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %] >- </td> >+ [% IF ( XISBN.publishercode ) %] >+ <p>[% XISBN.publishercode | html %] >+ [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] >+ >+ [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %] > >- [% UNLESS ( item_level_itypes ) %] >- <td>[% XISBN.description | html %]</td> >+ [% IF ( XISBN.pages ) %][% XISBN.pages | html %][% XISBN.illus | html %][% XISBN.size | html %][% END %] >+ </p> > [% END %] >- <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> >- [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %] >- [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %] >- [% IF ( XISBN.publishercode ) %] >- <p>[% XISBN.publishercode | html %] >- [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] >- [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %] >- [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %] >- </p> >- [% END %] >- </td> >- </tr> >- [% END # / FOREACH XISBNS %] >- </table> >- </div> <!-- / #editions --> >- [% END # / IF OPACFRBRizeEditions && XISBNS %] >- >- [% IF ( HTML5MediaEnabled ) %] >- <div id="html5media"> >- [% FOREACH HTML5MediaSet IN HTML5MediaSets %] >+ </td> >+ </tr> >+ [% END # / FOREACH XISBNS %] >+ </table> >+ </div><!-- / #editions --> >+ [% END # / IF OPACFRBRizeEditions && XISBNS %] >+ >+ [% IF ( HTML5MediaEnabled ) %] >+ <div id="html5media"> >+ [% FOREACH HTML5MediaSet IN HTML5MediaSets %] > <p> >- [% SET ctrl_preload = ' controls preload=none' #translatability %] >- <[% HTML5MediaParent _ ctrl_preload | html %] > >- <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> >- <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span> >- </[% HTML5MediaParent | html %]> >+ [% SET ctrl_preload = ' controls preload=none' #translatability %] >+ <[% HTML5MediaParent _ ctrl_preload | html %] > >+ <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> >+ <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span> >+ </[% HTML5MediaParent | html %]> > </p> >- [% END %] >- </div> >- [% END # / IF HTML5MediaEnabled %] >- >- [% IF ( OPACLocalCoverImages && localimages.size ) %] >- <div id="images"> >- <p>Click on an image to view it in the image viewer</p> >- [% FOREACH image IN localimages %] >- [% IF image %] >- <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a> >- [% END %] >+ [% END %] >+ </div> >+ [% END # / IF HTML5MediaEnabled %] >+ >+ [% IF ( OPACLocalCoverImages && localimages.size ) %] >+ <div id="images"> >+ <p>Click on an image to view it in the image viewer</p> >+ [% FOREACH image IN localimages %] >+ [% IF image %] >+ <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a> > [% END %] >- </div><!-- / #images --> >- [% END # / IF OPACLocalCoverImages && localimages.size %] >- >- </div> <!-- / #bibliodescriptions --> >+ [% END %] >+ </div><!-- / #images --> >+ [% END # / IF OPACLocalCoverImages && localimages.size %] >+ </div><!-- / #bibliodescriptions --> > > [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %] > <div id="NovelistSelect"> >@@ -1000,14 +1041,12 @@ > </div> > [% END # / IF Babeltheque %] > >- [%# Following on one line due to translation issues %] >- [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %] >- >- </div> <!-- /.span9 --> >- >- <div class="span3"> >- <div id="ulactioncontainer"> >+ [% # Following on one line due to translation issues %] >+ [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn, lccn => lccn, normalized_oclc => normalized_oclc } %] > >+ </div><!-- /.span9 --> >+ <div class="span3"> >+ <div id="ulactioncontainer"> > [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] > <div class="nav_results"> > <div class="l_Results" style="display:none;"> >@@ -1023,7 +1062,7 @@ > [% IF ( previousBiblionumber ) %] > <a href="opac-detail.pl?biblionumber=[% previousBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle | html %][% ELSE %]previous biblio[% END %]"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Previous</a> > [% ELSE %] >- <span>Previous</span> >+ <span><i class="fa fa-bars"></i> Browse results</span> > [% END %] > </li> > [%# busc is already URI encoded %] >@@ -1059,7 +1098,46 @@ > <li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li> > [% END %] > [% END %] >- </ul> >+ </li> >+ [%# busc is already URI encoded %] >+ <li class="back_results"><a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a></li> >+ <li class="right_results"> >+ [% IF ( nextBiblionumber ) %] >+ <a href="opac-detail.pl?biblionumber=[% nextBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle | html %][% ELSE %]next biblio[% END %]">Next <i class="fa fa-angle-double-right"></i></a> >+ [% ELSE %] >+ <span>Next</span> >+ [% END %] >+ </li> >+ </ul> >+ [% IF ( listResults ) %] >+ <div class="results-pagination"> >+ <div class="nav_pages"> >+ <ul id="listResults"> >+ [% FOREACH listitem IN listResults %] >+ [% IF ( listitem.biblionumber == biblionumber ) %] >+ <li class="li_pag_[% loop.count | html %] highlight"> >+ [% ELSE %] >+ <li class="li_pag_[% loop.count | html %]"> >+ [% END %] >+ <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[% listitem.title | html %]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a></li> >+ [% END %] >+ </ul> >+ </div> >+ <div class="pagination_list"> >+ <ul id="ul_pagination_lists"> >+ [% FOREACH listitem IN listResults %] >+ [% IF ( listitem.biblionumber == biblionumber ) %] >+ <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail"><span class="li_pag_index"><i class="fa fa-arrow-left"></i>[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br>[% IF ( author ) %]by [% author | html %][% END %]</li> >+ [% ELSE %] >+ <li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br>[% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li> >+ [% END %] >+ [% END %] >+ </ul> >+ </div> >+ </div> >+ [% END %] >+ <div class="pagination_footer"> >+ <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a> > </div> > </div> > [% END %] >@@ -1069,21 +1147,21 @@ > </div> > [% END # / IF OpacBrowseResults && busc %] > >- [% INCLUDE 'opac-detail-sidebar.inc' %] >+ [% INCLUDE 'opac-detail-sidebar.inc' %] > >- [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %] >- <div id="NovelistSelect"> >- <h4>Novelist Select</h4> >- <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div> >- </div> >- [% END %] >+ [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %] >+ <div id="NovelistSelect"> >+ <h4>Novelist Select</h4> >+ <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div> >+ </div> >+ [% END %] > >- [% IF ( Babeltheque ) %] >- <div class="babeltheque_adds"> >- <div id="BW_critiques_aj"></div> >- <div id="BW_citations_aj"></div> >- </div> >- [% END %] >+ [% IF ( Babeltheque ) %] >+ <div class="babeltheque_adds"> >+ <div id="BW_critiques_aj"></div> >+ <div id="BW_citations_aj"></div> >+ </div> >+ [% END %] > > [% IF ( Koha.Preference('SocialNetworks') ) %] > <div id="social_networks" class="clearfix"> >@@ -1113,16 +1191,16 @@ > <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript> > [% END %] > >- [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] >- <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> >- [% END %] >+ [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] >+ <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script> >+ [% END %] > >- [% IF ( Babeltheque ) %] >- <script src="[% Babeltheque_url_js | html %]"></script> >- [% END %] >- </div> <!-- / .row-fluid --> >-</div> <!-- / .container-fluid --> >-</div> <!-- / .main --> >+ [% IF ( Babeltheque ) %] >+ <script src="[% Babeltheque_url_js | html %]"></script> >+ [% END %] >+ </div><!-- / .row-fluid --> >+ </div><!-- / .container-fluid --> >+</div><!-- / .main --> > > [% INCLUDE 'opac-bottom.inc' %] > >@@ -1132,35 +1210,52 @@ > <table class="table table-bordered table-striped" id="[% table_id | html %]"> > <thead> > <tr> >- [% IF ( item_level_itypes ) %] >- <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %] >- [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >- <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %] >- [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >- <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %] >- [% IF ( itemdata_ccode ) %] >- <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %] >- [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %] >- <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %] >- <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th> >- [% IF ( itemdata_enumchron ) %] >- <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %] >- [% IF ( itemdata_uri ) %] >- <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %] >- [% IF ( itemdata_copynumber ) %] >- <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %] >- <th id="item_status" data-colname="item_status" class="status">Status</th> >- [% IF ( itemdata_itemnotes ) %] >- <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %] >- <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th> >- <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th> >- [% IF holds_count.defined %] >- <th id="item_holds" data-colname="item_holds">Item holds</th> >- [% ELSIF show_priority %] >- <th id="item_priority" data-colname="item_priority">Item hold queue priority</th> >- [% END %] >- [% IF ( ShowCourseReservesHeader ) %] >- <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %] >+ [% IF ( item_level_itypes ) %] >+ <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th> >+ [% END %] >+ >+ [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >+ <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th> >+ [% END %] >+ >+ [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] >+ <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th> >+ [% END %] >+ >+ [% IF ( itemdata_ccode ) %] >+ <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th> >+ [% END %] >+ >+ [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %] >+ <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th> >+ [% END %] >+ <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th> >+ [% IF ( itemdata_enumchron ) %] >+ <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th> >+ [% END %] >+ >+ [% IF ( itemdata_uri ) %] >+ <th id="item_url" data-colname="item_url" class="url">URL</th> >+ [% END %] >+ >+ [% IF ( itemdata_copynumber ) %] >+ <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th> >+ [% END %] >+ <th id="item_status" data-colname="item_status" class="status">Status</th> >+ [% IF ( itemdata_itemnotes ) %] >+ <th id="item_notes" data-colname="item_notes" class="notes">Notes</th> >+ [% END %] >+ <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th> >+ <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th> >+ [% IF holds_count.defined %] >+ <th id="item_holds" data-colname="item_holds">Item holds</th> >+ [% ELSIF show_priority %] >+ <th id="item_priority" data-colname="item_priority">Item hold queue priority</th> >+ [% END %] >+ >+ [% IF ( ShowCourseReservesHeader ) %] >+ <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th> >+ [% END %] > </tr> > </thead> > <tbody> >@@ -1170,6 +1265,7 @@ > [% ELSE %] > <tr vocab="http://schema.org/" typeof="Offer"> > [% END %] >+ > [% IF ( item_level_itypes ) %] > <td class="itype"> > [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] >@@ -1180,6 +1276,7 @@ > [% ITEM_RESULT.description | html %] > </td> > [% END %] >+ > [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] > <td class="location" property="seller"> > <link property="itemOffered" href="#record" /> >@@ -1192,11 +1289,9 @@ > [% END %] > </span> > <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div> >- > [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] > <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> > [% END %] >- > </td> > [% END %] > >@@ -1217,11 +1312,9 @@ > [% END %] > </span> > <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div> >- > [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %] > <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span> > [% END %] >- > </td> > [% END %] > >@@ -1256,33 +1349,36 @@ > [% ELSIF ITEM_RESULT.enumchron %] > <span class="enum">[% ITEM_RESULT.enumchron | html %]</span> > [% ELSIF ITEM_RESULT.serialseq %] >- <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span> >+ <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span> > [% END %] >+ > [% IF ( ITEM_RESULT.publisheddate ) %] > <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span> > [% END %] > </td> > [% END %] >+ > [% IF ( itemdata_uri ) %] > <td class="url"> >- [% IF ITEM_RESULT.uri %] >- [%# Initialize three helper vars %] >- [% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %] >- [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %] >- >- [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %] >- [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %] >- [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %] >- [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = uri %][% END %] >- <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br> >+ [% IF ITEM_RESULT.uri %] >+ [%# Initialize three helper vars %] >+ [% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %] >+ [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %] >+ >+ [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %] >+ [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %] >+ [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %][% ELSE %][% SET href_attr = uri %][% END %] >+ <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br> >+ [% END %] >+ [% ELSE %] >+ [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ ITEM_RESULT.uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %][% ELSE %][% SET href_attr = ITEM_RESULT.uri %][% END %] >+ <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> > [% END %] >- [% ELSE %] >- [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ ITEM_RESULT.uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = ITEM_RESULT.uri %][% END %] >- <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a> > [% END %] >- [% END %] > </td> > [% END %] >+ > [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %] > <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> > [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %] >@@ -1290,7 +1386,8 @@ > <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td> > [% IF holds_count.defined || show_priority %] > <td class="holds_count"> >- [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %] >+ [% IF holds_count.defined %][% ITEM_RESULT.holds_count | html %][% END %] >+ > [% IF ITEM_RESULT.priority %] > [% IF holds_count.defined %] > <span>(priority [% ITEM_RESULT.priority | html %])</span> >@@ -1300,6 +1397,7 @@ > [% END %] > </td> > [% END %] >+ > [% IF ShowCourseReservesHeader %] > <td> > [% IF ITEM_RESULT.course_reserves %] >@@ -1308,16 +1406,17 @@ > <p> > <a href="opac-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, 1 ) | html %] [% END %] >+ <!--[% 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, 1 ) | html %][% END %] > </a> > </p> > [% END %] > [% END %] > [% END %] > </td> >- [% END # /IF ShowCourseReservesHeader %] >+ [% END # / IF ShowCourseReservesHeader %] > </tr> > [% END %] > </tbody> >@@ -1343,26 +1442,28 @@ > <a id="validMultiSearch" href="#" class="btn btn-primary">Search</a> > <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> > </div> >- </div> <!-- /.modal-content --> >- </div> <!-- /.modal-dialog --> >- </div> <!-- /#myModal --> >+ </div><!-- /.modal-content --> >+ </div><!-- /.modal-dialog --> >+ </div><!-- /#myModal --> > [% END %] > > [% BLOCK jsinclude %] >-[% INCLUDE 'datatables.inc' %] >-[% INCLUDE 'columns_settings.inc' %] >-[% INCLUDE greybox.inc %] >-[% IF ( SocialNetworks ) %] >- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> >-[% END %] >-[% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %] >+ [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] >+ [% INCLUDE greybox.inc %] >+ [% IF ( SocialNetworks ) %]<script>!function(d, s, id){var js, fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js, fjs);}}(document, "script", "twitter-wjs");</script>[% END %] >+ [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %] >+ [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %] >+ [% IF ( Koha.Preference('OPACDetailQRCode') ) %][% Asset.js("lib/kjua/kjua.min.js") | $raw %][% END %] > >-[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %] >-[% IF ( Koha.Preference('OPACDetailQRCode') ) %] >- [% Asset.js("lib/kjua/kjua.min.js") | $raw %] >-[% END %] >+ [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] >+ <script> >+ var interface = "[% interface | html %]"; >+ var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]"; >+ </script> >+ [% Asset.js("js/verovio.js") | $raw %] >+ [% END %] > >-[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] > <script> > var interface = "[% interface | html %]"; > var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]"; >@@ -1382,147 +1483,142 @@ > [% IF ( OpacHighlightedWords ) %] > var q_array = new Array(); // holds search terms if available > >- function highlightOff() { >- $("#catalogue_detail_biblio").removeHighlight(); >- $(".highlight_toggle").toggle(); >- } >- function highlightOn() { >- var x; >- for (x in q_array) { >- if ( q_array[x].length > 0 ) { >- q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); >- q_array[x] = q_array[x].toLowerCase(); >- var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|'); >- if( $.inArray(q_array[x], myStopwords) == -1 ) { >- $(".title").highlight(q_array[x]); >- $(".author").highlight(q_array[x]); >- $(".results_summary").highlight(q_array[x]); >+ function highlightOn() { >+ var x; >+ for (x in q_array) { >+ if ( q_array[x].length > 0 ) { >+ q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1"); >+ q_array[x] = q_array[x].toLowerCase(); >+ var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|'); >+ if( $.inArray(q_array[x], myStopwords) == -1 ) { >+ $(".title").highlight(q_array[x]); >+ $(".author").highlight(q_array[x]); >+ $(".results_summary").highlight(q_array[x]); >+ } > } > } >+ $(".highlight_toggle").toggle(); > } >- $(".highlight_toggle").toggle(); >- } >- [% END %] >+ [% END %] > >- $(document).ready(function() { >+ $(document).ready(function() { >+ [% IF ( Koha.Preference('OPACDetailQRCode') ) %] >+ var qrcode = kjua({ >+ ecLevel: "H", >+ render: "canvas", >+ rounded: 100, >+ size: 150, >+ text: location.href, >+ }); > >- [% IF ( Koha.Preference('OPACDetailQRCode') ) %] >+ if (qrcode) { >+ document.getElementById("qrcode").appendChild( qrcode ); >+ } > >- var qrcode = kjua({ >- ecLevel: "H", >- render: "canvas", >- rounded: 100, >- size: 150, >- text: location.href, >- }); >- if (qrcode) { >- document.getElementById("qrcode").appendChild( qrcode ); >- } >+ $(".show_qrcode").on("click", function(){ >+ var qrcodeImg = $("#qrcode"); >+ if( qrcodeImg.hasClass("hidden") ){ >+ qrcodeImg.removeClass("hidden"); >+ } else { >+ qrcodeImg.addClass("hidden"); >+ } >+ }); >+ [% END %] > >- $(".show_qrcode").on("click", function(){ >- var qrcodeImg = $("#qrcode"); >- if( qrcodeImg.hasClass("hidden") ){ >- qrcodeImg.removeClass("hidden"); >- } else { >- qrcodeImg.addClass("hidden"); >+ $('#bibliodescriptions').tabs(); >+ $(".branch-info-tooltip-trigger").uitooltip({ >+ position: { my: "left+15 center", at: "right center" }, >+ show: 50, >+ hide: 50, >+ content: function(){ >+ var element = $(this).next("div"); >+ return element.html(); > } > }); >- [% END %] > >- $('#bibliodescriptions').tabs(); >- $(".branch-info-tooltip-trigger").uitooltip({ >- position: { my: "left+15 center", at: "right center" }, >- show: 50, >- hide: 50, >- content: function(){ >- var element = $(this).next("div"); >- return element.html(); >- } >- }); >+ [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] >+ $(".l_Results").show(); >+ $("#a_listResults").on("click", function(e){ >+ e.preventDefault(); >+ $(".results-pagination, .close_pagination, .pg_menu").toggle(); >+ }); > >- [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %] >- $(".l_Results").show(); >- $("#a_listResults").on("click", function(e){ >- e.preventDefault(); >- $(".results-pagination, .close_pagination, .pg_menu").toggle(); >- }); >+ $(".close_pagination").on("click", function(e){ >+ e.preventDefault(); >+ $(".results-pagination, .close_pagination, .pg_menu").toggle(); >+ }); >+ [% END %] > >- $(".close_pagination").on("click", function(e){ >- e.preventDefault(); >- $(".results-pagination, .close_pagination, .pg_menu").toggle(); >+ var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %]; >+ >+ KohaTable("#holdingst", { >+ dom: '<"clearfix">t', >+ "columnDefs": [ >+ { "targets": [ -1 ], "sortable": false, "searchable": false }, >+ { "type": "title-string", "targets" : [ "title-string" ] } >+ ], >+ "bKohaColumnsUseNames": true, >+ "autoWidth": false >+ }, columns_settings); >+ >+ KohaTable("#otherholdingst", { >+ dom: '<"clearfix">t', >+ "columnDefs": [ >+ { "targets": [ -1 ], "sortable": false, "searchable": false }, >+ { "type": "title-string", "targets" : [ "title-string" ] } >+ ], >+ "bKohaColumnsUseNames": true, >+ "autoWidth": false >+ }, columns_settings); >+ >+ var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; >+ >+ KohaTable("#subscriptionst", { >+ dom: '<"clearfix">t', >+ "sorting": [[ 1, "desc" ]], >+ "columnDefs": [ >+ { "type": "title-string", "targets" : [ "title-string" ] } >+ ], >+ "autoWidth": false, >+ "bKohaColumnsUseNames": true >+ }, serial_column_settings); >+ >+ [% IF ( TagsInputEnabled && loggedinusername ) %] >+ $(".tag_add").click(function(){ >+ var thisid = $(this).attr("id"); >+ thisid = thisid.replace("tag_add", ""); >+ $(this).hide(); >+ $("#tagform"+thisid).show(); >+ $("#newtag"+thisid).focus(); >+ $("#newtag"+thisid+"_status").empty().hide(); >+ return false; > }); >- [% END %] >- >- var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %]; >- >- KohaTable("#holdingst", { >- dom: '<"clearfix">t', >- "columnDefs": [ >- { "targets": [ -1 ], "sortable": false, "searchable": false }, >- { "type": "title-string", "targets" : [ "title-string" ] } >- ], >- "bKohaColumnsUseNames": true, >- "autoWidth": false >- }, columns_settings); >- >- KohaTable("#otherholdingst", { >- dom: '<"clearfix">t', >- "columnDefs": [ >- { "targets": [ -1 ], "sortable": false, "searchable": false }, >- { "type": "title-string", "targets" : [ "title-string" ] } >- ], >- "bKohaColumnsUseNames": true, >- "autoWidth": false >- }, columns_settings); >- >- var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; >- >- KohaTable("#subscriptionst", { >- dom: '<"clearfix">t', >- "sorting": [[ 1, "desc" ]], >- "columnDefs": [ >- { "type": "title-string", "targets" : [ "title-string" ] } >- ], >- "autoWidth": false, >- "bKohaColumnsUseNames": true >- }, serial_column_settings); >- >-[% IF ( TagsInputEnabled && loggedinusername ) %] >- $(".tag_add").click(function(){ >- var thisid = $(this).attr("id"); >- thisid = thisid.replace("tag_add",""); >- $(this).hide(); >- $("#tagform"+thisid).show(); >- $("#newtag"+thisid).focus(); >- $("#newtag"+thisid+"_status").empty().hide(); >- return false; >- }); >- $(".cancel_tag_add").click(function(){ >- var thisid = $(this).attr("id"); >- thisid = thisid.replace("cancel",""); >- $("#tagform"+thisid).hide(); >- $("#tag_add"+thisid).show(); >- $("#newtag"+thisid).val(""); >- $("#newtag"+thisid+"_status").empty().hide(); >- return false; >- }); >- $(".tagbutton").click(function(){ >- var thisid = $(this).attr("title"); >- var tag = $("#newtag"+thisid).val(); >- if (!tag || (tag == "")) { >- alert(MSG_NO_TAG_SPECIFIED); >+ $(".cancel_tag_add").click(function(){ >+ var thisid = $(this).attr("id"); >+ thisid = thisid.replace("cancel", ""); >+ $("#tagform"+thisid).hide(); >+ $("#tag_add"+thisid).show(); >+ $("#newtag"+thisid).val(""); >+ $("#newtag"+thisid+"_status").empty().hide(); > return false; >- } >- KOHA.Tags.add_tag_button(thisid, tag); >- return false; >- }); >-[% END %] >+ }); >+ $(".tagbutton").click(function(){ >+ var thisid = $(this).attr("title"); >+ var tag = $("#newtag"+thisid).val(); >+ if (!tag || (tag == "")) { >+ alert(MSG_NO_TAG_SPECIFIED); >+ return false; >+ } >+ KOHA.Tags.add_tag_button(thisid, tag); >+ return false; >+ }); >+ [% END %] > >- [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %] >+ [% # Note that there is no way atm to target a column with its class name to set it as the default sort order %] > [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes >- OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes >- OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes >- OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %] >+ OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes >+ OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes >+ OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %] > var default_order_index = 1; > [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %] > var default_order_index = 2; >@@ -1530,27 +1626,34 @@ > var default_order_index = 0; > [% END %] > >- [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; >- q_array = query_desc.split(" "); >- q_array = q_array.filter(function(n){ return n }); // Remove empty strings >- highlightOn(); >- $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;}); >- $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %] >- [% IF ( GoogleJackets ) %] >- KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >- [% END %] >- [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >- KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); >- [% END %] >+ [% IF ( query_desc ) %] >+ [% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; >+ q_array = query_desc.split(" "); >+ q_array = q_array.filter(function(n){ return n }); // Remove empty strings >+ highlightOn(); >+ $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;}); >+ $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;}); >+ [% END %] >+ [% END %] > >- [% IF OpenLibraryCovers %] >- KOHA.OpenLibrary.GetCoverFromIsbn(); >- [% END %] >- [% IF OPACLocalCoverImages %] >- KOHA.LocalCover.GetCoverFromBibnumber(true); >- [% END %] >- [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %] >- novSelect.loadContentForQuery( >+ [% IF ( GoogleJackets ) %] >+ KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >+ [% END %] >+ >+ [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >+ KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); >+ [% END %] >+ >+ [% IF OpenLibraryCovers %] >+ KOHA.OpenLibrary.GetCoverFromIsbn(); >+ [% END %] >+ >+ [% IF OPACLocalCoverImages %] >+ KOHA.LocalCover.GetCoverFromBibnumber(true); >+ [% END %] >+ >+ [% IF ( NovelistSelectProfile && ( 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 %]', >@@ -1563,115 +1666,122 @@ > $(".NovelistSelect").show(); > } > }); >- [% END %] >+ [% END %] > >-[% IF ( OPACShelfBrowser ) %] >+ [% IF ( OPACShelfBrowser ) %] >+ (function prepareShelfBrowser(){ > >- (function prepareShelfBrowser(){ >+ $(".main").on("click", ".close_shelf", function(e){ >+ e.preventDefault(); >+ $("#shelfbrowser").toggle(); >+ }); > >- $(".main").on("click",".close_shelf",function(e){ >- e.preventDefault(); >- $("#shelfbrowser").toggle(); >- }); >- $(".main").on("click", "#browser_previous a", function(e){ >- e.preventDefault(); >- $.ajax({ >- url: "/cgi-bin/koha/svc/shelfbrowser.pl", >- type: "POST", >- data: { >- "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" ) >- }, >- success: function(data){ >- $("#shelfbrowser").replaceWith(data); >- [% IF ( GoogleJackets ) %] >- KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >- [% END %] >- [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >- KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); >- [% END %] >- [% IF OpenLibraryCovers %] >- KOHA.OpenLibrary.GetCoverFromIsbn(); >- [% END %] >- [% IF OPACLocalCoverImages %] >- KOHA.LocalCover.GetCoverFromBibnumber(true); >- [% END %] >- } >- }); >- }); >+ $(".main").on("click", "#browser_previous a", function(e){ >+ e.preventDefault(); >+ $.ajax({ >+ url: "/cgi-bin/koha/svc/shelfbrowser.pl", >+ type: "POST", >+ data: { >+ "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" ) >+ }, >+ success: function(data){ >+ $("#shelfbrowser").replaceWith(data); >+ [% IF ( GoogleJackets ) %] >+ KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >+ [% END %] > >- $(".main").on("click", "#browser_next a", function(e){ >- e.preventDefault(); >- $.ajax({ >- url: "/cgi-bin/koha/svc/shelfbrowser.pl", >- type: "POST", >- data: { >- "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" ) >- }, >- success: function(data){ >- $("#shelfbrowser").replaceWith(data); >- [% IF ( GoogleJackets ) %] >- KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >- [% END %] >- [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >- KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]); >- [% END %] >- [% IF OpenLibraryCovers %] >- KOHA.OpenLibrary.GetCoverFromIsbn(); >- [% END %] >- [% IF OPACLocalCoverImages %] >- KOHA.LocalCover.GetCoverFromBibnumber(true); >- [% END %] >+ [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >+ KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); >+ [% END %] >+ >+ [% IF OpenLibraryCovers %] >+ KOHA.OpenLibrary.GetCoverFromIsbn(); >+ [% END %] >+ >+ [% IF OPACLocalCoverImages %] >+ KOHA.LocalCover.GetCoverFromBibnumber(true); >+ [% END %] >+ } >+ }); >+ }); >+ >+ $(".main").on("click", "#browser_next a", function(e){ >+ e.preventDefault(); >+ $.ajax({ >+ url: "/cgi-bin/koha/svc/shelfbrowser.pl", >+ type: "POST", >+ data: { >+ "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" ) >+ }, >+ success: function(data){ >+ $("#shelfbrowser").replaceWith(data); >+ [% IF ( GoogleJackets ) %] >+ KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]); >+ [% END %] >+ >+ [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] >+ KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]', [% covernewwindow | html %]); >+ [% END %] >+ >+ [% IF OpenLibraryCovers %] >+ KOHA.OpenLibrary.GetCoverFromIsbn(); >+ [% END %] >+ >+ [% IF OPACLocalCoverImages %] >+ KOHA.LocalCover.GetCoverFromBibnumber(true); >+ [% END %] >+ } >+ }); >+ }); >+ }()); >+ [% END %] >+ >+ [% IF ( OpacStarRatings != 'disable' ) %] >+ // ----------------------------------------------------- >+ // star-ratings code >+ // ----------------------------------------------------- >+ // hide 'rate' button if javascript enabled >+ >+ $('input[name="rate_button"]').remove(); >+ >+ var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true; >+ $('#star_rating').barrating({ >+ theme: 'fontawesome-stars', >+ showSelectedRating: false, >+ allowEmpty: true, >+ deselectable: false, >+ readonly: rating_enabled, >+ onSelect: function(value, text) { >+ $("#rating-loading").show(); >+ $.post("/cgi-bin/koha/opac-ratings-ajax.pl", { >+ rating_old_value: $("#rating_value").attr("value"), >+ borrowernumber: "[% borrowernumber | html %]", >+ biblionumber: "[% biblio.biblionumber | html %]", >+ rating_value: value, >+ auth_error: value >+ }, function (data) { >+ $("#rating_value").val(data.rating_value); >+ if (data.rating_value) { >+ $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value)); >+ $("#cancel_rating_text").show(); >+ } else { >+ $("#rating_value_text").text(''); >+ $("#cancel_rating_text").hide(); >+ } >+ $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total)); >+ $("#rating-loading").hide(); >+ }, "json"); > } > }); >- }); >- }()); >-[% END %] >-[% IF ( OpacStarRatings != 'disable' ) %] >- // ----------------------------------------------------- >- // star-ratings code >- // ----------------------------------------------------- >- // hide 'rate' button if javascript enabled >- >- $('input[name="rate_button"]').remove(); >- >- var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true; >- $('#star_rating').barrating({ >- theme: 'fontawesome-stars', >- showSelectedRating: false, >- allowEmpty: true, >- deselectable: false, >- readonly: rating_enabled, >- onSelect: function(value, text) { >- $("#rating-loading").show(); >- $.post("/cgi-bin/koha/opac-ratings-ajax.pl", { >- rating_old_value: $("#rating_value").attr("value"), >- borrowernumber: "[% borrowernumber | html %]", >- biblionumber: "[% biblio.biblionumber | html %]", >- rating_value: value, >- auth_error: value >- }, function (data) { >- $("#rating_value").val(data.rating_value); >- if (data.rating_value) { >- $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value)); >- $("#cancel_rating_text").show(); >- } else { >- $("#rating_value_text").text(''); >- $("#cancel_rating_text").hide(); >- } >- $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total)); >- $("#rating-loading").hide(); >- }, "json"); >- } >- }); > >- $("#cancel_rating_text a").on("click", function(e){ >- e.preventDefault(); >- $("#star_rating").barrating("set", ""); >- }); >+ $("#cancel_rating_text a").on("click", function(e){ >+ e.preventDefault(); >+ $("#star_rating").barrating("set", ""); >+ }); > >-[% END # / IF ( OpacStarRatings != 'disable' )%] >+ [% END # / IF ( OpacStarRatings != 'disable' ) %] > >-}); >+ }); > > $(document).ready(function() { > if( OPACPopupAuthorsSearch == "1" ){ >@@ -1685,7 +1795,7 @@ > "keyword_search" : "su:", > } > } >- $(".contributors,.subject").on("click", function(e){ >+ $(".contributors, .subject").on("click", function(e){ > e.preventDefault(); > var term = $(this).attr("class"); > var selected_term = $(this).text(); >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25302
:
103863
|
104010
|
104029
|
104036
|
104299
| 104301