Koha/installer/data/mysql
Jonathan Druart 8627ec5f6a Bug 4941: Remove the singleBranchMode system preference
The singleBranchMode system preference does not make sense.
Either the install has only 1 library defined or several. In both case,
we can easily guess the behavior to follow.

So the idea of this patch is to replace the fetch of this syspref with a
call to count the number of libraries defined in DB.

Test plan:
1/ From a fresh Koha install, execute the DB entry to remove the pref.
2/ Define only 1 library
3/ Confirm that Koha behaves the same as before (try to change your
library, look at the facets)
4/ Create another library (or more) and reinsert the pref and set it:
  insert into systempreferences (variable, value)
    values('singleBranchMode', 1);
5/ Execute the DB entry
You should get a warning message.
6/ Repeat 3.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Does what it says, but will change behaviour for any Koha install that
has 2 branches defined, One circulation, and this preference set.
If that is an acceptable change, we might need to make sure this is noted well in the
release notes.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-02-26 12:13:09 +00:00
..
atomicupdate Bug 4940: DB Changes 2016-02-26 12:13:08 +00:00
de-DE Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
en Bug 15411: Changing 'Non fiction' to 'Non-fiction' 2016-02-12 16:53:17 -07:00
es-ES Bug 15411: Changing 'Non fiction' to 'Non-fiction' 2016-02-12 16:53:17 -07:00
fr-FR Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
it-IT Bug 15411: More changes 2016-02-12 16:53:17 -07:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
pl-PL Bug 15411: More changes 2016-02-12 16:53:17 -07:00
ru-RU Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
uk-UA Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 15517: Resync borrowers and deletedborrowers tables 2016-02-23 23:08:20 +00:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 4941: Remove the singleBranchMode system preference 2016-02-26 12:13:09 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 15891 [Followup] 2016-02-24 13:34:09 +00:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 11569: Correcting typos in userpermissions.sql 2015-12-30 16:21:38 +00:00