Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 15858: Use Font Awesome icons in dialog alert for addorder.tt 2016-02-24 03:13:12 +00:00
admin Bug 4941: Remove the singleBranchMode system preference 2016-02-26 12:13:09 +00:00
authorities Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
basket Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
batch
catalogue Bug 15671 - Show branch name instead of branch code in checkout history 2016-02-24 03:42:08 +00:00
cataloguing Bug 15859: Move some basic MARC editor controls into settings menu 2016-02-24 03:11:38 +00:00
circ Bug 15471 [QA Followup] - Fix error causing visibility button to not display 2016-02-24 04:00:52 +00:00
common
course_reserves
errors Bug 15288: Error pages: Code duplication removal and better translatability 2016-01-27 05:57:34 +00:00
help Bug 15411: More changes 2016-02-12 16:53:17 -07:00
installer Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
labels Bug 15662: String and translatability fix to Label Creator 2016-02-24 03:44:34 +00:00
members bug 12920 - Remove AllowRenewalLimitOverride from pl scripts and tt files, use Koha.Preference instead 2016-02-24 03:10:20 +00:00
offline_circ Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
patron_lists Bug 13778: Only the last column is not sortable 2016-02-24 02:46:05 +00:00
patroncards Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
plugins Bug 15592 - spelling mistake in ~/Koha/koha-tmpl/intranet-tmpl/p./plugins/plugins-upload.tt 2016-01-27 02:47:41 +00:00
reports Bug 15285: Update for 3 specific tables 2016-02-24 00:02:50 +00:00
reserve Bug 15645: Remove the confusing wait var and use found instead 2016-02-22 20:52:44 +00:00
reviews Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
rotating_collections Bug 15830 - Move Rotating Collections actions into a drop-down list 2016-02-24 03:14:27 +00:00
serials Bug 15605: Remove the cursor:pointer style. 2016-02-23 23:06:33 +00:00
services Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
sms
suggestion Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
tags Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
test
tools Bug 15826 - Use Font Awesome icons in confirmation dialogs - Tools 2016-02-24 03:25:09 +00:00
virtualshelves Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
about.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
auth.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
intranet-main.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00