@@ -, +, @@
* Go to staff interface, log in as a priviliged user.
* Select "More" -> "Administration" ->
* Set ""AdlibrisCoversEnabled" to "Show" under "Adlibris".
* Save changes
* Set MARC field 020 a,
* Set MARC field 245 a, "Title" to: 1984
* Save changes
* 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"
(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.
* 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
* 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.
* 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.
* 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
* 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.
* 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.
---
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(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
@@ -5,6 +5,8 @@
[% USE AuthorisedValues %]
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
+[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
+[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
[% ShowCourseReservesHeader = 0 %]
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
@@ -53,6 +55,11 @@
[% IF ( OPACLocalCoverImages ) %]
+ [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
+
+ [% END %]
[% IF ( OPACAmazonCoverImages ) %]
[% IF ( ISSUE.normalized_isbn ) %]
@@ -407,7 +411,7 @@ Using this account is not recommended because some parts of Koha will not functi
- [% IF ( JacketImages ) %]
[% END %]
+ [% IF ( JacketImages || AdlibrisEnabled ) %]
[% END %]
Title
[% UNLESS ( item_level_itypes ) %]
Item type
[% END %]
[% IF ( show_barcode ) %]
Barcode
[% END %]
@@ -424,7 +428,7 @@ Using this account is not recommended because some parts of Koha will not functi
[% FOREACH OVERDUE IN OVERDUES %]
- [% IF ( JacketImages ) %]
+ [% IF ( JacketImages || AdlibrisEnabled ) %]
[% IF ( OPACAmazonCoverImages ) %]
[% IF ( OVERDUE.normalized_isbn ) %]
--