Bug 10904: (QA followup) would like to limit patron update request management by branch
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
49fa3c0d08
commit
e5571ddd66
|
|
@ -164,6 +164,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),
|
||||
('IncludeSeeFromInSearches','0','','Include see-from references in searches.','YesNo'),
|
||||
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
|
||||
('IndependentBranchesPatronModifications',0, NULL, 'Show only modification request for the logged in branch','YesNo'),
|
||||
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
|
||||
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
|
||||
('InProcessingToShelvingCart','0','','If set, when any item with a location code of PROC is \'checked in\', it\'s location code will be changed to CART.','YesNo'),
|
||||
|
|
|
|||
|
|
@ -11237,6 +11237,16 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.21.00.XXX";
|
||||
if(CheckVersion($DBversion)) {
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
|
||||
VALUES ('IndependentBranchesPatronModifications',0,'Show only modification request for the logged in branch','','YesNo')
|
||||
});
|
||||
print "Upgrade to $DBversion done (Bug 10904 - would like to limit patron update request management by branch)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
|
|
|||
|
|
@ -87,6 +87,13 @@ Administration:
|
|||
yes: Prevent
|
||||
no: "Don't prevent"
|
||||
- staff (but not superlibrarians) from modifying objects (holds, items, patrons, etc.) belonging to other libraries.
|
||||
-
|
||||
- pref: IndependentBranchesPatronModifications
|
||||
default: 0
|
||||
choices:
|
||||
yes: Prevent
|
||||
no: "Don't prevent"
|
||||
- staff (but not superlibrarians) from viewing and approving/denying patron modification requests for patrons belonging to other libraries.
|
||||
CAS Authentication:
|
||||
-
|
||||
- pref: casAuthentication
|
||||
|
|
|
|||
|
|
@ -55,9 +55,11 @@ $template->param(
|
|||
koha_news_count => $koha_news_count
|
||||
);
|
||||
|
||||
my $branch = $flags->{'superlibrarian'}
|
||||
? undef
|
||||
: C4::Context->userenv()->{'branch'};
|
||||
my $branch =
|
||||
C4::Context->preference("IndependentBranchesPatronModifications")
|
||||
&& !$flags->{'superlibrarian'}
|
||||
? C4::Context->userenv()->{'branch'}
|
||||
: undef;
|
||||
|
||||
my $pendingcomments = numberofreviews(0);
|
||||
my $pendingtags = get_count_by_tag_status(0);
|
||||
|
|
|
|||
|
|
@ -42,9 +42,10 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
|
|||
);
|
||||
|
||||
my $branch =
|
||||
$flags->{'superlibrarian'}
|
||||
? undef
|
||||
: C4::Context->userenv()->{'branch'};
|
||||
C4::Context->preference("IndependentBranchesPatronModifications")
|
||||
&& !$flags->{'superlibrarian'}
|
||||
? C4::Context->userenv()->{'branch'}
|
||||
: undef;
|
||||
|
||||
my $pending_modifications =
|
||||
Koha::Borrower::Modifications->GetPendingModifications($branch);
|
||||
|
|
|
|||
Loading…
Reference in New Issue