[Koha-cvs] koha koha-tmpl/opac-tmpl/prog/en/opac-results.t... [rel_3_0]

LAURIN arnaud alaurin at ouestprovence.fr
Tue Dec 19 13:08:10 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	LAURIN arnaud <alaurin>	06/12/19 12:08:10

Modified files:
	koha-tmpl/opac-tmpl/prog/en: opac-results.tmpl 
	opac           : opac-search.pl 

Log message:
	adding a new system preference : RequestOnOpac ;
	
	setting permitions for opac users to reserve or not by opac interface

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.7&r2=1.1.2.8
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-search.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.38.2.10&r2=1.38.2.11

Patches:
Index: koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/Attic/opac-results.tmpl,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -b -r1.1.2.7 -r1.1.2.8
--- koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl	7 Dec 2006 16:34:50 -0000	1.1.2.7
+++ koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl	19 Dec 2006 12:08:10 -0000	1.1.2.8
@@ -170,7 +170,9 @@
                 <th>Title</th>
                 <th>Call No.</th>
                 <th>Location</th>
-                <th>&nbsp;</th>
+                <!-- TMPL_IF NAME="RequestOnOpac" -->
+                <th>Reservation</th>
+                <!-- /TMPL_IF -->
             </tr>
             <!-- Actual Search Results -->
             <!-- TMPL_LOOP NAME="SEARCH_RESULTS" -->
@@ -253,6 +255,7 @@
                             <!-- TMPL_IF NAME="orderedcount" --> On order (<!-- TMPL_VAR NAME="orderedcount" -->)<!-- /TMPL_IF -->
                         </span>
                     </td>
+                    <!-- TMPL_IF NAME="RequestOnOpac" -->
                     <td>
                         <!-- TMPL_IF NAME="norequests" -->
                         Not Reserveable
@@ -262,6 +265,7 @@
                         </a>
                         <!-- /TMPL_IF -->
                     </td>
+                    <!-- /TMPL_IF -->
                 </tr>
                 <!-- /TMPL_LOOP -->
             </table>

Index: opac/opac-search.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-search.pl,v
retrieving revision 1.38.2.10
retrieving revision 1.38.2.11
diff -u -b -r1.38.2.10 -r1.38.2.11
--- opac/opac-search.pl	15 Dec 2006 08:38:57 -0000	1.38.2.10
+++ opac/opac-search.pl	19 Dec 2006 12:08:10 -0000	1.38.2.11
@@ -3,7 +3,7 @@
 # Script to perform searching
 # For documentation try 'perldoc /path/to/search'
 #
-# $Header: /sources/koha/koha/opac/opac-search.pl,v 1.38.2.10 2006/12/15 08:38:57 toins Exp $
+# $Header: /sources/koha/koha/opac/opac-search.pl,v 1.38.2.11 2006/12/19 12:08:10 alaurin Exp $
 #
 # Copyright 2006 LibLime
 #
@@ -539,6 +539,11 @@
 }    #/end of the for loop
 
 #$template->param(FEDERATED_RESULTS => \@results_array);
+# adding the norequest param
+my $RequestOnOpac;
+if (C4::Context->preference("RequestOnOpac")) {
+	$RequestOnOpac = 1;
+}
 
 $template->param(
 
@@ -560,6 +565,7 @@
       . C4::Context->preference("BiblioDefaultView") => 1,
     scan_use     => $scan,
     search_error => $error,
+    RequestOnOpac	 => $RequestOnOpac,
 );
 ## Now let's find out if we have any supplemental data to show the user
 #  and in the meantime, save the current query for statistical purposes, etc.





More information about the Koha-cvs mailing list