@@ -, +, @@ * 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 * Set MARC field 020 a, "INTERNATIONAL STANDARD BOOK NUMBER" to: 9780451524935 * Set MARC field 245 a, "Title" to: 1984 * Save changes * 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. (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. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 7 ++++++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2,6 +2,8 @@ [% USE KohaDates %] [% USE AuthorisedValues %] [% USE Branches %] +[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] +[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] [% ShowCourseReserves = 0 %] [% IF UseCourseReserves %] @@ -380,11 +382,14 @@ function verify_images() { MARC Preview: Show [% IF ( holdcount ) %]Holds: [% holdcount %][% ELSE %][% END %] - [% IF ( AmazonCoverImages || LocalCoverImages ) %] + [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
[% END %] + [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %] | [% END %] | Results | Location | |
---|---|---|---|---|
[% IF ( LocalCoverImages) %] [% END %] + [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %] + + [% END %] [% IF ( AmazonCoverImages ) %] [% IF ( SEARCH_RESULT.normalized_isbn ) %] -- |