Bugzilla – Attachment 58334 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 (intranet templates)
Bug-8630---Adlibris-covers-intranet-templates.patch (text/plain), 6.37 KB, created by
Aleisha Amohia
on 2016-12-21 04:08:47 UTC
(
hide
)
Description:
Bug 8630 - Adlibris covers (intranet templates)
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-12-21 04:08:47 UTC
Size:
6.37 KB
patch
obsolete
>From 6991066fb5cb44cdd80af1fc1af4c992839dcc37 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >Date: Thu, 8 Oct 2015 09:12:27 +0200 >Subject: [PATCH] Bug 8630 - Adlibris covers (intranet templates) > >Changes to staff interface (intranet) 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 results.tt > * From the main intranet page, select "Search the catalog" and > enter the title we added, "1984" and press "Search". > * You should end up with the url: > http://127.0.1.1:8080/cgi-bin/koha/catalogue/search.pl?q=1984 > * The cover image should be shown in the leftmost column. > * If cover is clicked, the full cover image should be shown. > >* Test detail.tt > (continue from the search results used in prev. test) > * Click on the title text, you should be sent to: > http://127.0.1.1:8080/cgi-bin/koha/catalogue/detail.pl?biblionumber=2 > * The cover image should be shown on the right. > * If clicked, the full cover should be shown. > >Sponsored-By: Halland County Library >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 ++++++- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 11 ++++++++--- > 2 files changed, 14 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index c0151e9..18cd987 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -3,6 +3,8 @@ > [% USE AuthorisedValues %] > [% USE Branches %] > [% USE Biblio %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > > [% ShowCourseReserves = 0 %] > [% IF UseCourseReserves %] >@@ -427,11 +429,14 @@ function verify_images() { > </span> > [% END %] > >- [% IF ( AmazonCoverImages || LocalCoverImages ) %] >+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %] > </div><div class="yui-u" id="bookcoverimg"> > [% IF ( LocalCoverImages ) %] > <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div> > [% END %] >+ [% IF ( AdlibrisEnabled && normalized_isbn ) %] >+ <a href="[% AdlibrisURL %]?isbn=[% normalized_isbn %]"><img src="[% AdlibrisURL %]?isbn=[% normalized_isbn %]" class="adlibris-cover-big" alt="Adlibris cover image" /></a> >+ [% END %] > [% IF ( AmazonCoverImages ) %] > <div id="amazon-bookcoverimg"> > <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 0b3c2d3..c066ee0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -1,5 +1,7 @@ > [% USE Koha %] > [% USE Biblio %] >+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] >+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -497,21 +499,24 @@ var holdForPatron = function () { > <!-- TABLE RESULTS START --> > <table> > <tr> >- [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th> </th>[% END %] >+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]<th> </th>[% END %] > <th colspan="2">Results</th> > <th>Location</th> > </tr> > <!-- Actual Search Results --> > [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %] > [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] >- <tr> >- [% IF ( AmazonCoverImages || LocalCoverImages ) %] >+ [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %] >+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %] > <td> > [% IF ( LocalCoverImages) %] > <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]"> > <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> > </a> > [% END %] >+ [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %] >+ <a href="[% AdlibrisURL %]?isbn=[% SEARCH_RESULT.normalized_isbn %]"><img src="[% AdlibrisURL %]?isbn=[% SEARCH_RESULT.normalized_isbn %]" class="adlibris-cover" alt="Adlibris cover image" /></a> >+ [% END %] > [% IF ( AmazonCoverImages ) %] > [% IF ( SEARCH_RESULT.normalized_isbn ) %] > <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]"> >-- >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