Bug 18026: Correct URL to database columns from .pref files
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Feb 2017 09:49:11 +0000 (10:49 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Feb 2017 19:54:23 +0000 (19:54 +0000)
commit57666e07ac60b32eed137c77e8ea35cbe9b628f3
tree613c8856a225a2833b43d2e8fbdb3c6a960474bc
parent1ce61ac6a372783b39a11386018e08d92ccd8f39
Bug 18026: Correct URL to database columns from .pref files

Recently the DB schema website has been updated.
The link to the columns' tables is now
  http://schema.koha-community.org/master/tables/table.html
  http://schema.koha-community.org/16_11/tables/table.html
  http://schema.koha-community.org/16_05/tables/table.html
instead of
  http://schema.koha-community.org/tables/table.html

To have a specific schema per Koha version.

To avoid fixing this link every release this patch adds a __VERSION__
marker to replace with the $version if stable ($version % 2) or 'master'

Test plan:
On master, 16.11.x and 16.05.x
Search for PatronSelfRegistrationBorrowerUnwantedField,
BorrowerMandatoryField and UniqueItemFields
Click on the link
You should get the correct page

This patch WILL NOT WORK on 3.22.x

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Template/Plugin/Koha.pm
admin/preferences.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref