Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Martin Persson fd3a378f9a Bug 8630: Adlibris covers (syspref files)
This patch adds a system preference for cover images from Swedish
book retailer Adlibris. Images are retrieved via http or https
from an external web server. This might leak OPAC and Staff
interface data to third parties and should thus be used with
caution.

Sponsored-By: Halland County Library

Test plan:

Test 1: Test upgrade procedure for clean installation.

  Start by removing existing sysprefs, if present:

  $ mysql -u kohaadmin -p -D koha
  > DELETE FROM `systempreferences` WHERE `variable` LIKE 'Adlibris%';

* Apply this patch which will add a pref file, update the 'syspref'
  structure and add an atomic upgrade file.

* Install the update:
  Koha$ perl installer/data/mysql/updatedatabase.pl

* Once upgraded and logged in, Select 'More', 'Administration',
  'Global Preferences' and finally 'Enhanced content'.
  There should be a new option called 'Adlibris'.

  The first option should default to "Don't show", if not the
  patch is broken.

  The second options should show the default URL:
  http://www.adlibris.com/se/organisationer/showimagesafe.aspx

  If not, the patch is broken.

Test 2: Changing sysprefs

* In the control panel, change the first value from "Don't show"
  to "Show" and save the changes. Use MySQL client to inspect changes:

  $ mysql -u kohaadmin -p -D koha
  > SELECT * FROM `systempreferences` WHERE `variable` LIKE 'Adlibris%';

  The column 'value' should now have the value '1', if not the patch
  is broken.

Test 3: Apply update to existing data

* Re-execute the installer now that the database has the data already:
  Koha$ perl installer/data/mysql/updatedatabase.pl

  If any errors occur the patch is broken.

  Examine the database contents:

  $ mysql -u kohaadmin -p -D koha
  > SELECT * FROM `systempreferences` WHERE `variable` LIKE 'Adlibris%';

  If the values were overwritten by the installer the patch is broken.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-05 14:41:05 +00:00
..
preferences Bug 8630: Adlibris covers (syspref files) 2018-11-05 14:41:05 +00:00
searchengine/elasticsearch Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
admin-home.tt
aqbudgetperiods.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
aqbudgets.tt Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
aqcontract.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
aqplan.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
audio_alerts.tt
auth_subfields_structure.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
auth_tag_structure.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
authorised_values.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
authtypes.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
biblio_framework.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
branch_transfer_limits.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
branches.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
categories.tt Bug 21669: Do not html filter TT assignement statements 2018-10-26 16:38:36 +00:00
checkmarc.tt
cities.tt
classsources.tt
clone-rules.tt
columns_settings.tt Bug 21216: Add filter/search options to notices table 2018-10-24 13:38:48 +00:00
currency.tt
didyoumean.tt
edi_accounts.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
edi_ean_accounts.tt Bug 21417: (QA follow-up) Display default EAN as such in admin display 2018-10-09 11:54:08 +00:00
fieldmapping.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
koha2marclinks.tt
library_groups.tt Bug 21186: (follow-up) Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:51 +00:00
localization.tt
marc_subfields_structure.tt Bug 21740: Show @ when editing fixed-length fields on bibliographic frameworks 2018-11-05 14:41:03 +00:00
marctagstructure.tt Bug 21704: (follow-up) Remove unused 'frameworkcode' template param 2018-10-29 00:17:33 +00:00
matching-rules.tt Bug 21669: Do not html filter TT assignement statements 2018-10-26 16:38:36 +00:00
oai_set_mappings.tt
oai_sets.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
overdrive.tt Bug 21082: (RM follow-up) address QA issues 2018-10-09 11:04:24 +00:00
patron-attr-types.tt Bug 21669: Do not html filter TT assignement statements 2018-10-26 16:38:36 +00:00
preferences.tt
printers.tt
smart-rules.tt Bug 15486: Make circ rules UI handle holds_per_day 2018-10-24 13:24:05 +00:00
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
transport-cost-matrix.tt Bug 21279: Fix &nbsp; in transport cost matrix 2018-10-15 13:08:04 +00:00
usage_statistics.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
z3950servers.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00