[Koha-patches] [PATCH] [SIGNED-OFF] Bug 3495: Fast bib record add at circulation

Nicole C. Engard nengard at bywatersolutions.com
Sun Mar 13 21:12:57 CET 2011


From: Katrin Fischer <Katrin.Fischer.83 at web.de>

The link to the Fast add framework was never shown.
Now the link is shown if you have the right permissions (fast cataloging or superlibrarian).

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 circ/circulation.pl                                |    6 ++++++
 .../prog/en/modules/circ/circulation.tmpl          |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index 8a184d1..f145f5c 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -615,6 +615,11 @@ if($bor_messages_loop){ $template->param(flagged => 1 ); }
 my (undef, $roadttype_hashref) = &GetRoadTypes();
 my $address = $borrower->{'streetnumber'}.' '.$roadttype_hashref->{$borrower->{'streettype'}}.' '.$borrower->{'address'};
 
+my $fast_cataloging = 0;
+    if (defined getframeworkinfo('FA')) {
+    $fast_cataloging = 1 
+    }
+
 $template->param(
     lib_messages_loop => $lib_messages_loop,
     bor_messages_loop => $bor_messages_loop,
@@ -658,6 +663,7 @@ $template->param(
     is_child          => ($borrower->{'category_type'} eq 'C'),
     circview => 1,
     soundon           => C4::Context->preference("SoundOn"),
+    fast_cataloging   => $fast_cataloging,
 );
 
 # save stickyduedate to session
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
index df78c54..4791f31 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
@@ -303,7 +303,7 @@ function refocus(calendar) {
             <li>The barcode was not found <!-- TMPL_VAR NAME="barcode" --></li>
 	    <!-- TMPL_IF NAME="fast_cataloging" -->
 	        <!-- TMPL_IF NAME="CAN_user_editcatalogue_fast_cataloging" -->
-                    <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA">Fast cataloging</a></li>
+                    <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA">Fast cataloging</a>
 		<!-- /TMPL_IF -->
 	    <!-- /TMPL_IF -->
         <!-- /TMPL_IF -->
@@ -853,4 +853,4 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
 </div>
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
-- 
1.7.2.3



More information about the Koha-patches mailing list