@@ -, +, @@
IndependentBranchesLoggedInLibrary
---
installer/data/mysql/mandatory/sysprefs.sql | 1 +
koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc | 2 +-
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +-
.../prog/en/modules/admin/preferences/admin.pref | 7 +++++++
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 +-
.../intranet-tmpl/prog/en/modules/circ/circulation-home.tt | 3 +--
.../intranet-tmpl/prog/en/modules/circ/set-library.tt | 2 +-
7 files changed, 13 insertions(+), 6 deletions(-)
--- a/installer/data/mysql/mandatory/sysprefs.sql
+++ a/installer/data/mysql/mandatory/sysprefs.sql
@@ -267,6 +267,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
+('IndependentBranchesLoggedInLibrary','0', NULL, 'Allow only superlibrarians the ability to set or change their logged in location','YesNo'),
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
('RecordedBooksClientSecret','','30','Client key for RecordedBooks integration','Free'),
('RecordedBooksDomain','','','RecordedBooks domain','Free'),
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc
@@ -15,7 +15,7 @@
[% IF !Koha.Preference('IndependentBranchesTransfers') || CAN_user_superlibrarian %]
Transfer
[% END %]
- [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
+ [% IF !( Koha.Preference('IndependentBranchesLoggedInLibrary') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
[% IF Koha.Preference('UseCirculationDesks') %]
Set library and desk
[% ELSE %]
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
@@ -149,7 +149,7 @@
[% END %]
- [% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
+ [% IF !( Koha.Preference('IndependentBranchesLoggedInLibrary') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
[% IF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
@@ -131,6 +131,13 @@ Administration:
choices:
1: "Yes"
0: "No"
+ -
+ - "Prevent staff (but not superlibrarians) from setting or changing their logged in location:"
+ - pref: IndependentBranchesLoggedInLibrary
+ default: 0
+ choices:
+ 1: "Yes"
+ 0: "No"
-
- "Prevent staff (but not superlibrarians) from transfering items to other libraries: "
- pref: IndependentBranchesTransfers
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
@@ -75,7 +75,7 @@
- [% UNLESS IndependentBranches %]
+ [% UNLESS Koha.Preference('IndependentBranchesLoggedInLibrary') %]