Bugzilla – Attachment 73127 Details for
Bug 8630
Add covers from AdLibris to the OPAC and Intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8630 - Adlibris covers (OPAC templates)
Bug-8630---Adlibris-covers-OPAC-templates.patch (text/plain), 25.78 KB, created by
Aleisha Amohia
on 2018-03-21 00:47:15 UTC
(
hide
)
Description:
Bug 8630 - Adlibris covers (OPAC templates)
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2018-03-21 00:47:15 UTC
Size:
25.78 KB
patch
obsolete
>From cdd549759e6c0ebb511cc5525e954cc814f981a5 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >Date: Thu, 8 Oct 2015 09:13:00 +0200 >Subject: [PATCH] Bug 8630 - Adlibris covers (OPAC templates) > >Changes to OPAC templates. >Depends on new CSS clases defined in separate patch. > >Test plan: > >To test this particular patch (intranet templates) you need: >* The syspref patch applied >* The intranet CSS patch applied > >To test: >* Apply this patch > >* Enable covers (if not done already) > * Go to staff interface, log in as a priviliged user. > * Select "More" -> "Administration" -> > "Global system preferences" -> "Enhanced content". > * Set ""AdlibrisCoversEnabled" to "Show" under "Adlibris". > * Save changes > >* Add a book with a known cover/ISBN (if none exists) > * Set MARC field 020 a, > "INTERNATIONAL STANDARD BOOK NUMBER" to: 9780451524935 > * Set MARC field 245 a, "Title" to: 1984 > * Save changes > >* Test opac-results.tt > * Search library catalog from OPAC for "1984". > * You should be sent to: > http://127.0.1.1/cgi-bin/koha/opac-search.pl?idx=&q=1984 > * Cover image should be shown to the right of each title > with CSS class: "adlibris-cover" > >* Test opac-detail.tt > (continued from previous test's location) > * Click on the title with cover (1984, ISBN: 9780451524935) > * Cover should be displayed to the left in full size. > * If clicked, should link to the full-size image. > >Test opac-results-grouped.tt > * This template is only used if an external "grouping" server is > setup and the syspref "OPACGroupResults" is set to "Use". > * Personally I did not test this, b/c: terminally lazy > >* Test opac-showreviews.tt > * Could not find any links to this location, manually enter it: > http://127.0.1.1/cgi-bin/koha/opac-showreviews.pl > * Image should be shown to the right in full size. > * If clicked it should take you to the detail view with the > comments tab opened. > >* Test opac-showreviews-rss.tt > * Click on the RSS icon from previous test's start location. > URL should be: > http://127.0.1.1/cgi-bin/koha/opac-showreviews.pl?format=rss > * An image tag linking to the full-size image without any > styling class should be present. > >* Test opac-user.tt > * Click on your username to open: > http://127.0.1.1/cgi-bin/koha/opac-user.pl > * Covers should be shown for checked out items with > CSS class: adlibris-cover > * When clicked the destination should be the same as > clicking the title column entry: opac-details.pl > >* Test opac-opensearch.tt > * Click on "Advanced search" and enter "1984" then press "Search" > * This search screen uses a different template. > * Cover image should be shown to the right of each title > with CSS class: "adlibris-cover" > * If clicked, should link to the OPAC detail view. > >* Test opac-readingrecord.tt > * Click on your logged-in name to go to your personal page. > * Click on "Your reading history" tab on the left. > http://127.0.1.1/cgi-bin/koha/opac-readingrecord.pl > * Covers should be shown in leftmost column with > CSS class: adlibris-cover > * If clicked, should link to the same as the 'Title' link. > >Sponsored-By: Halland County Library > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 7 +++++++ > .../opac-tmpl/bootstrap/en/modules/opac-opensearch.tt | 6 ++++++ > .../opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 12 ++++++++++++ > .../opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt | 5 +++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 9 +++++++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 6 +++++- > .../opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt | 7 ++++++- > .../opac-tmpl/bootstrap/en/modules/opac-showreviews.tt | 10 ++++++++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 14 +++++++++----- > 9 files changed, 67 insertions(+), 9 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 4801f90..7598e7f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -11,6 +11,8 @@ > [% ELSE %] > [% AmazonAssocTag = '' %] > [% END %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% ShowCourseReservesHeader = 0 %] > [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %] >@@ -60,6 +62,11 @@ > [% IF ( OPACLocalCoverImages ) %] > <div title="[% biblio.biblionumber %]" class="[% biblio.biblionumber %]" id="local-thumbnail-preview"></div> > [% END %] >+ >+ [% IF ( AdlibrisEnabled && normalized_isbn ) %] >+ <a href="[% AdlibrisURL %]?isbn=[% normalized_isbn %]"><img src="[% AdlibrisURL %]?isbn=[% normalized_isbn %]" alt="Cover image" class="adlibris-cover-big" /></a> >+ [% END %] >+ > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( OPACURLOpenInNewWindow ) %] > <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt >index ce887f6..6a555b3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt >@@ -1,5 +1,8 @@ > <?xml version='1.0' encoding='utf-8' ?> > [% USE Koha %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] >+ > [% IF ( opensearchdescription ) %] > <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> > <ShortName>[% LibraryName |html %] Search</ShortName> >@@ -37,6 +40,9 @@ > <dc:identifier>ISBN [% SEARCH_RESULT.isbn |html %]</dc:identifier> > <link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% END %][% END %]</link> > <description><![CDATA[ >+[% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% SEARCH_RESULT.normalized_isbn %]" alt="Adlibris cover image" /> >+[% END %] > [% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %] > [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SEARCH_RESULT.SyndeticsClientCode %]&type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&upc=[% SEARCH_RESULT.normalized_upc %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&oclc=[% SEARCH_RESULT.normalized_oclc %][% END %]" alt="" /> > [% ELSE %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >index cf1ecd7..7ba406b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >@@ -9,6 +9,8 @@ > </head> > [% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %] > [% INCLUDE 'masthead.inc' %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% IF Koha.Preference('AmazonAssocTag') %] > [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %] >@@ -93,6 +95,16 @@ > [% issuetype %] > </td> > <td> >+ [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %] >+ [% IF issue.BiblioDefaultViewmarc %] >+ <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]"> >+ [% ELSIF issue.BiblioDefaultViewisbd %] >+ <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]"> >+ [% ELSE %] >+ <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]"> >+ [% END %] >+ <img src="[% AdlibrisURL %]?isbn=[% issue.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /></a> >+ [% END %] > [% IF OPACAmazonCoverImages %] > [% IF issue.normalized_isbn %] > <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn %][% AmazonAssocTag %]#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >index a08f7c4..382d6a9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >@@ -1,4 +1,6 @@ > [% USE Koha %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › > [% IF ( searchdesc ) %] >@@ -156,6 +158,9 @@ href="/cgi-bin/koha/opac-rss.pl?[% query_cgi %][% limit_cgi |html %]" /> > <tr> > [% END %] > <td> >+ [% IF ( AdlibrisEnabled && GROUP_RESULT.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% GROUP_RESULT.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% GROUP_RESULT.biblionumber |url %]">[% IF ( GROUP_RESULT.isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% GROUP_RESULT.isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />[% ELSE %]<img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" class="thumbnail" />[% END %] > </a> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 36211c9..dffbb4e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -1,6 +1,8 @@ > [% USE Koha %] > [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %] > [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › >@@ -227,6 +229,13 @@ > [% IF ( OPACLocalCoverImages ) %] > <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> > [% END %] >+ >+ [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %] >+ <span title="[% SEARCH_RESULT.biblionumber %]" id="adlibris-thumbnail[% loop.count %]"> >+ <img src="[% AdlibrisURL %]?isbn=[% SEARCH_RESULT.normalized_isbn %]" >+ alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn %]" class="adlibris-cover" /> >+ </span> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( SEARCH_RESULT.normalized_isbn ) %] > <span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index b5a6496..20e10f3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -3,6 +3,8 @@ > [% SET PUBLIC = 2 %] > [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %] > [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF op == 'view' %]Contents of [% shelf.shelfname |html %][% ELSE %]Your lists[% END %]</title>[% INCLUDE 'doc-head-close.inc' %] >@@ -298,7 +300,9 @@ > [% IF ( OPACLocalCoverImages ) %] > <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> > [% END %] >- >+ [% IF ( AdlibrisEnabled && itemsloo.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% itemsloo.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( itemsloo.normalized_isbn ) %] > <span title="[% itemsloo.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% itemsloo.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" /></span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt >index fddf531..0f0194e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt >@@ -1,4 +1,4 @@ >-[% USE KohaDates # XML declaration should have no white space before it %]<?xml version="1.0" encoding="utf-8"?> >+[% USE KohaDates # XML declaration should have no white space before it %][% USE Koha %]<?xml version="1.0" encoding="utf-8"?> > <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> > <channel> > <title><![CDATA[[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] Catalog Recent Comments]]></title> >@@ -6,11 +6,16 @@ > <description><![CDATA[ The most recent comments from [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] Catalog. Comments can be made by logged in users and are moderated by library staff.]]></description> > <atom:link href="[% OPACBaseURL %]/cgi-bin/koha/opac-showreviews.pl&format=rss2" rel="self" type="application/rss+xml" /> > <lastBuildDate>[% timestamp %]</lastBuildDate> >+ [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+ [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > [% FOREACH review IN reviews %] > <item> > <title>New comment on [% review.title |html %] [% FOREACH subtitl IN review.subtitle %], [% subtitl.subfield |html %][% END %]</title> > <link>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber %]#comments</link> > <description><![CDATA[ >+[% IF ( AdlibrisEnabled && review.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% review.normalized_isbn %]" alt="Adlibris cover image" /> >+[% END %] > [% IF ( OPACAmazonCoverImages ) %][% IF ( review.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %] > > [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( review.content_identifier_exists ) %][% IF ( using_https ) %]<img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% review.normalized_upc %]&oclc=[% review.normalized_oclc %]" alt="" /> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >index fceb84f..f403d24 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >@@ -31,6 +31,8 @@ > <div id="showreviews" class="searchresults maincontent"> > <h3>Recent comments <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to recent comments" title="Subscribe to recent comments" border="0" class="rsssearchicon"/></a></h3> > <table class="table table-striped"> >+ [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+ [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > [% FOREACH review IN reviews %] > <tr> > <td> >@@ -116,7 +118,9 @@ > <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title"> > [% END %] > [% END %] >- >+ [% IF ( AdlibrisEnabled && review.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% review.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( review.normalized_isbn ) %] > <img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" /> >@@ -124,7 +128,9 @@ > <span class="no-image">No cover image available</span> > [% END %] > [% END %] >- >+ [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %] >+ <img src="[% AdlibrisURL %]?isbn=[% SEARCH_RESULT.normalized_isbn %]" alt="Adlibris cover image" /> >+ [% END %] > [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] > [% IF ( using_https ) %] > <img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% review.normalized_upc %]&oclc=[% review.normalized_oclc %]" alt="" class="thumbnail" /> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 1a5203f..fc131f6 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -3,6 +3,8 @@ > [% USE Branches %] > [% USE ItemTypes %] > [% USE Price %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% SET borrower_club_enrollments = borrower.get_club_enrollments(1) %] > [% SET borrower_enrollable_clubs = borrower.get_enrollable_clubs(1,1) %] >@@ -171,7 +173,7 @@ Using this account is not recommended because some parts of Koha will not functi > <caption>[% issues_count %] Item(s) checked out</caption> > <thead> > <tr> >- [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] >+ [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %] > <th class="anti-the">Title</th> > <th>Author</th> > <th class="title-string psort">Due</th> >@@ -199,8 +201,10 @@ Using this account is not recommended because some parts of Koha will not functi > <tbody> > [% FOREACH ISSUE IN ISSUES %] > [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %] >- [% IF ( JacketImages ) %]<td class="jacketcell"> >- >+ [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell"> >+ [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %] >+ <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]"><img src="[% AdlibrisURL %]?isbn=[% ISSUE.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /></a> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( ISSUE.normalized_isbn ) %] > <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn %][% AmazonAssocTag %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a> >@@ -461,7 +465,7 @@ Using this account is not recommended because some parts of Koha will not functi > <!-- OVERDUES TABLE ROWS --> > <thead> > <tr> >- [% IF ( JacketImages ) %]<th class="nosort"> </th>[% END %] >+ [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort"> </th>[% END %] > <th class="anti-the">Title</th> > [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] > [% IF ( show_barcode ) %]<th>Barcode</th>[% END %] >@@ -478,7 +482,7 @@ Using this account is not recommended because some parts of Koha will not functi > <tbody> > [% FOREACH OVERDUE IN OVERDUES %] > <tr> >- [% IF ( JacketImages ) %] >+ [% IF ( JacketImages || AdlibrisEnabled ) %] > <td class="jacketcell"> > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( OVERDUE.normalized_isbn ) %] >-- >2.1.4
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 8630
:
43188
|
43256
|
43257
|
43258
|
43259
|
43260
|
58333
|
58334
|
58335
|
58336
|
58337
|
58343
|
58344
|
58345
|
58346
|
58347
|
64244
|
64245
|
64246
|
64247
|
64248
|
68366
|
73125
|
73126
|
73127
|
73128
|
73129
|
76848
|
76849
|
76850
|
76851
|
76852
|
76853
|
76859
|
78259
|
78260
|
78261
|
78262
|
78263
|
78264
|
79989
|
79990
|
79991
|
79992
|
79993
|
79994
|
80106
|
80107
|
80108
|
80109
|
80110
|
80111
|
80119
|
80245
|
80246
|
80377
|
80378
|
80379
|
80380
|
80381
|
80382
|
80383
|
81934