@@ -, +, @@
- Run the database update.
- Go to Administration -> System preferences -> Enhanced content. You
should see no Adlibris-related preferences.
- Perform a catalog search and confirm that the search result and detail
pages look correct.
- Enable one or more other cover image services and test that search
results and detail page look correct.
- Perform the same test in the OPAC including these pages:
- Catalog search results
- Bibliographic detail page
- Lists
- Comments
- User summary
- User reading history
---
installer/data/mysql/atomicupdate/bug-29200.pl | 14 ++++++++++++++
installer/data/mysql/mandatory/sysprefs.sql | 2 --
.../prog/css/src/staff-global.scss | 8 --------
.../admin/preferences/enhanced_content.pref | 16 ----------------
.../prog/en/modules/catalogue/detail.tt | 17 ++---------------
.../prog/en/modules/catalogue/results.tt | 15 +++------------
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 8 --------
.../bootstrap/en/modules/opac-detail.tt | 6 ------
.../bootstrap/en/modules/opac-opensearch.tt | 5 -----
.../bootstrap/en/modules/opac-readingrecord.tt | 12 ------------
.../bootstrap/en/modules/opac-results.tt | 8 --------
.../bootstrap/en/modules/opac-shelves.tt | 6 +-----
.../en/modules/opac-showreviews-rss.tt | 5 -----
.../bootstrap/en/modules/opac-showreviews.tt | 5 -----
.../opac-tmpl/bootstrap/en/modules/opac-user.tt | 16 ++++------------
15 files changed, 24 insertions(+), 119 deletions(-)
create mode 100755 installer/data/mysql/atomicupdate/bug-29200.pl
--- a/installer/data/mysql/atomicupdate/bug-29200.pl
+++ a/installer/data/mysql/atomicupdate/bug-29200.pl
@@ -0,0 +1,14 @@
+use Modern::Perl;
+
+return {
+ bug_number => "29200",
+ description => "Remove Adlibris cover service integration",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+ # Do you stuffs here
+ $dbh->do(q{DELETE FROM systempreferences WHERE variable LIKE 'AdlibrisCovers%'});
+ # Print useful stuff here
+ say $out "AdlibrisCoversEnabled and AdlibrisCoversURL preferences removed.";
+ },
+}
--- a/installer/data/mysql/mandatory/sysprefs.sql
+++ a/installer/data/mysql/mandatory/sysprefs.sql
@@ -13,8 +13,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('AdditionalFieldsInZ3950ResultSearch', '', NULL, 'Determines which MARC field/subfields are displayed in -Additional field- column in the result of a search Z3950', 'Free'),
('AddressForFailedOverdueNotices', '', NULL, 'Destination email for failed overdue notices. If left empty then it will fallback to the first defined address in the following list: Library ReplyTo, Library Email, ReplytoDefault and KohaAdminEmailAddress', 'free'),
('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
-('AdlibrisCoversEnabled','0',NULL,'Display cover images in OPAC results and detail listing from Swedish retailer Adlibris.','YesNo'),
-('AdlibrisCoversURL','http://www.adlibris.com/se/organisationer/showimagesafe.aspx',NULL,'Base URL for Adlibris cover image web service.','Free'),
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option. Example: eng|fre|ita','Textarea'),
('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'),
--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
@@ -4326,14 +4326,6 @@ input.renew {
}
}
-.adlibris-cover {
- max-height: 120px;
-}
-
-.adlibris-cover-big {
- max-height: 200px;
-}
-
#tools_holidays {
.radio,
.checkbox {
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref
@@ -1,20 +1,4 @@
Enhanced content:
- Adlibris:
- -
- - NOTE: Using resources such as external images might leak sensitive data to third parties.
- -
- - pref: AdlibrisCoversEnabled
- default: 0
- choices:
- 0: "Don't show"
- 1: "Show"
- - cover images in OPAC results and detail listing from Swedish retailer Adlibris.
- -
- - "Use base URL: "
- - pref: AdlibrisCoversURL
- class: url
- default: "http://www.adlibris.com/se/organisationer/showimagesafe.aspx"
- - for the Adlibris cover service.
All:
-
- NOTE: you can only choose one source of cover images from below, otherwise Koha will show the images from all sources selected.
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -9,8 +9,6 @@
[% USE Price %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
-[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
-[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
[% IF Koha.Preference('AmazonAssocTag') %]
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
@@ -106,7 +104,7 @@
[% END %]
- [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
+ [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]