Bugzilla – Attachment 85445 Details for
Bug 13481
Don't show circulation and fine rules library selection when there is only one library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13481: Don't show circulation and fine rules library selection when there is only one library
Bug-13481-Dont-show-circulation-and-fine-rules-lib.patch (text/plain), 1.62 KB, created by
Owen Leonard
on 2019-02-21 13:22:05 UTC
(
hide
)
Description:
Bug 13481: Don't show circulation and fine rules library selection when there is only one library
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-02-21 13:22:05 UTC
Size:
1.62 KB
patch
obsolete
>From 7d0b4d290fc27a3db4b74e66c0fdaac01a85c3f0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 20 Feb 2019 19:57:42 +0000 >Subject: [PATCH] Bug 13481: Don't show circulation and fine rules library > selection when there is only one library > >This patch updates the circulation and fine rules page so that the >library selection menu is not displayed when there is only one library >in Koha. > >To test you should have a system with only one library. Apply the patch >and go to Administration -> Circulation and fines rules > >There should be no <select> menu for choosing a library, and no menu for >cloning rules to another library. > >Test again when multiple libraries are present. The library selection >and clone rules menus should be present. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index f42a63b..c7372ce 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -41,7 +41,7 @@ > <p>To modify a rule, create a new one with the same patron category and item type.</p> > </div> > <div> >- [% UNLESS restricted_to_own_library %] >+ [% UNLESS restricted_to_own_library || Branches.all().size == 1 %] > <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary"> > Select a library : > <select name="branch" id="branch" style="width:20em;"> >-- >2.1.4
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 13481
:
85445