Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
admin Bug 8630: Adlibris covers (syspref files) 2018-11-05 14:41:05 +00:00
authorities Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
basket Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
batch
catalogue Bug 21186: Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:50 +00:00
cataloguing Bug 21186: Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:50 +00:00
circ Bug 21186: (follow-up) Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:51 +00:00
clubs Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
common Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner 2018-10-15 14:19:08 +00:00
course_reserves Bug 21501: Remove dead code from course reserves module 2018-11-02 10:37:45 +00:00
errors Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
ill Bug 20996: (follow-up) Fix column name expectation 2018-11-02 10:33:05 +00:00
installer
labels Bug 21526: (RM follow-up) Fix merge markers and a few extra filters 2018-10-26 19:43:20 +00:00
members Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
offline_circ Bug 21526: (QA follow-up) Fix all the tabs 2018-10-26 17:09:58 +00:00
onboarding
patron_lists Bug 21186: Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:50 +00:00
patroncards Bug 21526: (RM follow-up) Fix merge markers and a few extra filters 2018-10-26 19:43:20 +00:00
plugins Bug 20968: Add hooks into cat-toolbar.inc to display buttons 2018-11-02 10:36:02 +00:00
reports Bug 21526: (QA follow-up) Fix all the tabs 2018-10-26 17:09:58 +00:00
reserve Bug 20450: (follow-up) Add missing template filters 2018-10-27 14:20:58 +00:00
reviews Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
rotating_collections Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
serials Bug 21526: (RM follow-up) Fix merge markers and a few extra filters 2018-10-26 19:43:20 +00:00
services
suggestion Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
tags Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
test
tools Bug 19490: (follow-up) Improve tooltip message and some tidying 2018-11-05 14:41:04 +00:00
virtualshelves Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
about.tt Bug 20996: Remove prefix use of borrower category 2018-11-02 10:33:02 +00:00
auth.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
intranet-main.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00