Bugzilla – Attachment 12298 Details for
Bug 8781
Access to Transfer page while "independent branches" is on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-8781-hiding-of-transfer-page-when-it-s-useless.patch (text/plain), 2.25 KB, created by
Adrien SAURAT
on 2012-09-18 08:32:46 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Adrien SAURAT
Created:
2012-09-18 08:32:46 UTC
Size:
2.25 KB
patch
obsolete
>From 610ca1564497d28c551af7b682d3bf0a2fbaf915 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Tue, 18 Sep 2012 10:27:39 +0200 >Subject: [PATCH] Bug 8781: hiding of transfer page when it's useless > >The transfer page is only useful when the system >preference "IndependantBranches" is Off of when the user >is a superlibrarian. Otherwise it can be hidden. >--- > circ/circulation-home.pl | 5 ++++- > .../prog/en/modules/circ/circulation-home.tt | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/circ/circulation-home.pl b/circ/circulation-home.pl >index 842f8d9..5eee81b 100755 >--- a/circ/circulation-home.pl >+++ b/circ/circulation-home.pl >@@ -25,7 +25,7 @@ use C4::Context; > use C4::Koha; > > my $query = new CGI; >-my ($template, $loggedinuser, $cookie) >+my ($template, $loggedinuser, $cookie, $flags) > = get_template_and_user({template_name => "circ/circulation-home.tmpl", > query => $query, > type => "intranet", >@@ -37,5 +37,8 @@ my ($template, $loggedinuser, $cookie) > my $fa = getframeworkinfo('FA'); > $template->param( fast_cataloging => 1 ) if (defined $fa); > >+# Checking if the transfer page needs to be displayed >+$template->param( display_transfer => 1 ) if ( ($flags->{'superlibrarian'} == 1) || (C4::Context->preference("IndependantBranches") == 0) ); >+ > > output_html_with_http_headers $query, $cookie, $template->output; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >index 8b4ad57..aa1b700 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >@@ -19,7 +19,9 @@ > <ul> > <li><a href="/cgi-bin/koha/circ/circulation.pl">Check out</a></li> > <li><a href="/cgi-bin/koha/circ/returns.pl">Check in</a></li> >+ [% IF ( display_transfer ) %] > <li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfer</a></li> >+ [% END %] > [% IF ( AutoLocation ) %][% ELSE %][% IF ( IndependantBranches ) %][% ELSE %]<li><a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a></li>[% END %][% END %] > [% IF ( fast_cataloging ) %] > [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] >-- >1.7.9.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 8781
:
12298
|
13321
|
13820