Bugzilla – Attachment 41796 Details for
Bug 11625
Default to logged in library for circ rules and notices & slips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 11625 - Implement DefaultToLoggedInLibraryCircRules
SIGNED-OFF-Bug-11625---Implement-DefaultToLoggedIn.patch (text/plain), 1.91 KB, created by
Kyle M Hall (khall)
on 2015-08-21 19:01:17 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 11625 - Implement DefaultToLoggedInLibraryCircRules
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-08-21 19:01:17 UTC
Size:
1.91 KB
patch
obsolete
>From ce0018425af96d3aa315596847e72e8c3d08afe7 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 21 Apr 2015 11:03:27 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 11625 - Implement DefaultToLoggedInLibraryCircRules > >This patch set makes the default circ rules and notices/slips to edit >the logged in branch, if one is set. > >Test Plan: >1) Apply this patch >2) Log into staff side, and set your library >3) Browse to Administration/Circulation and fines rules >4) Note the rule set selected is for your library >5) Select "All libraries" >6) Note the rule set selected is for "All libraries" >7) Browse to Toos/Notices & slips >8) Note the notice set selected is for your library >9) Select "All libraries" >10) Not the rule set selected is for "All libraries" >11) Click "New Notice" >12) Note the Library field is set to "All libraries" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Passes QA script and tests. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > admin/smart-rules.pl | 11 ++++++++++- > 1 files changed, 10 insertions(+), 1 deletions(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index 9ef6ef6..0851014 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -44,7 +44,16 @@ my ($template, $loggedinuser, $cookie) > }); > > my $type=$input->param('type'); >-my $branch = $input->param('branch') || ( C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*' ); >+ >+my $branch; >+if ( C4::Context->preference('DefaultToLoggedInLibraryCircRules') ) { >+ $branch = $input->param('branch') || GetBranchesCount() == 1 ? undef : C4::Branch::mybranch(); >+} >+else { >+ $branch = $input->param('branch') || ( C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*' ); >+} >+$branch = '*' if $branch eq 'NO_LIBRARY_SET'; >+ > my $op = $input->param('op') || q{}; > > if ($op eq 'delete') { >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11625
:
24845
|
24861
|
24941
|
24984
|
24985
|
25839
|
25840
|
35460
|
35461
|
35462
|
35463
|
37055
|
37056
|
37057
|
37058
|
38093
|
38094
|
38095
|
38096
|
38276
|
38277
|
38278
|
38422
|
38424
|
41795
|
41796
|
41797
|
43496
|
43497
|
43498