[Koha-cvs] koha koha-tmpl/opac-tmpl/prog/en/opac-detail.tm... [rel_3_0]

LAURIN arnaud alaurin at ouestprovence.fr
Fri Jan 5 15:47:23 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	LAURIN arnaud <alaurin>	07/01/05 14:47:23

Modified files:
	koha-tmpl/opac-tmpl/prog/en: opac-detail.tmpl 
	                             opac-ISBDdetail.tmpl 
	                             opac-MARCdetail.tmpl 
	opac           : opac-ISBDdetail.pl opac-MARCdetail.pl 
	                 opac-search.pl 

Log message:
	add new filter for request on opac sytempref

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.12&r2=1.1.2.13
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-ISBDdetail.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.5&r2=1.1.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-MARCdetail.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.5&r2=1.1.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-ISBDdetail.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.16.2.5&r2=1.16.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-MARCdetail.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.14.2.5&r2=1.14.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-search.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.38.2.12&r2=1.38.2.13

Patches:
Index: koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -b -r1.1.2.12 -r1.1.2.13
--- koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl	3 Jan 2007 08:39:10 -0000	1.1.2.12
+++ koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl	5 Jan 2007 14:47:23 -0000	1.1.2.13
@@ -6,9 +6,11 @@
 
 <div id="action">
 <!-- TMPL_UNLESS NAME="norequests" -->
+	<!-- TMPL_IF NAME="RequestOnOpac" -->
         <a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
             Place Reserve
         </a>
+	<!-- /TMPL_IF -->
 <!-- /TMPL_UNLESS -->
         <a class="detail" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
             MARC View

Index: koha-tmpl/opac-tmpl/prog/en/opac-ISBDdetail.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/opac-ISBDdetail.tmpl,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -b -r1.1.2.5 -r1.1.2.6
--- koha-tmpl/opac-tmpl/prog/en/opac-ISBDdetail.tmpl	15 Dec 2006 17:42:59 -0000	1.1.2.5
+++ koha-tmpl/opac-tmpl/prog/en/opac-ISBDdetail.tmpl	5 Jan 2007 14:47:23 -0000	1.1.2.6
@@ -6,9 +6,11 @@
 
     <div id="action">
         <!-- TMPL_UNLESS NAME="norequests" -->
+        	<!-- TMPL_IF NAME="RequestOnOpac" -->
         <a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
             Place Reserve
         </a>
+        	<!-- /TMPL_IF -->
         <!-- /TMPL_UNLESS -->
         <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
             Normal View

Index: koha-tmpl/opac-tmpl/prog/en/opac-MARCdetail.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/opac-MARCdetail.tmpl,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -b -r1.1.2.5 -r1.1.2.6
--- koha-tmpl/opac-tmpl/prog/en/opac-MARCdetail.tmpl	7 Dec 2006 16:49:51 -0000	1.1.2.5
+++ koha-tmpl/opac-tmpl/prog/en/opac-MARCdetail.tmpl	5 Jan 2007 14:47:23 -0000	1.1.2.6
@@ -6,9 +6,11 @@
 
 <div id="action">
     <!-- TMPL_UNLESS NAME="norequests" -->
+    	<!-- TMPL_IF NAME="RequestOnOpac" -->
     <a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
         Place Reserve
     </a>
+    	<!-- /TMPL_IF -->
     <!-- /TMPL_UNLESS -->
     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
         Normal View

Index: opac/opac-ISBDdetail.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-ISBDdetail.pl,v
retrieving revision 1.16.2.5
retrieving revision 1.16.2.6
diff -u -b -r1.16.2.5 -r1.16.2.6
--- opac/opac-ISBDdetail.pl	14 Dec 2006 15:41:54 -0000	1.16.2.5
+++ opac/opac-ISBDdetail.pl	5 Jan 2007 14:47:23 -0000	1.16.2.6
@@ -17,7 +17,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: opac-ISBDdetail.pl,v 1.16.2.5 2006/12/14 15:41:54 toins Exp $
+# $Id: opac-ISBDdetail.pl,v 1.16.2.6 2007/01/05 14:47:23 alaurin Exp $
 
 =head1 NAME
 
@@ -174,6 +174,13 @@
     biblionumber => $biblionumber
 );
 
+# adding the $RequestOnOpac param
+my $RequestOnOpac;
+if (C4::Context->preference("RequestOnOpac")) {
+	$RequestOnOpac = 1;
+}
+
+
 output_html_with_http_headers $query, $cookie, $template->output;
 
 sub get_authorised_value_desc ($$$$$) {

Index: opac/opac-MARCdetail.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-MARCdetail.pl,v
retrieving revision 1.14.2.5
retrieving revision 1.14.2.6
diff -u -b -r1.14.2.5 -r1.14.2.6
--- opac/opac-MARCdetail.pl	14 Dec 2006 15:41:54 -0000	1.14.2.5
+++ opac/opac-MARCdetail.pl	5 Jan 2007 14:47:23 -0000	1.14.2.6
@@ -71,6 +71,11 @@
         debug           => 1,
     }
 );
+# adding the $RequestOnOpac param
+my $RequestOnOpac;
+if (C4::Context->preference("RequestOnOpac")) {
+	$RequestOnOpac = 1;
+}
 
 # fill arrays
 my @loop_data = ();
@@ -191,6 +196,7 @@
     $template->param( $tabloop . "XX" => \@loop_data );
 }
 
+
 # now, build item tab !
 # the main difference is that datas are in lines and not in columns : thus, we build the <th> first, then the values...
 # loop through each tag

Index: opac/opac-search.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-search.pl,v
retrieving revision 1.38.2.12
retrieving revision 1.38.2.13
diff -u -b -r1.38.2.12 -r1.38.2.13
--- opac/opac-search.pl	3 Jan 2007 08:39:22 -0000	1.38.2.12
+++ opac/opac-search.pl	5 Jan 2007 14:47:23 -0000	1.38.2.13
@@ -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.12 2007/01/03 08:39:22 tipaul Exp $
+# $Header: /sources/koha/koha/opac/opac-search.pl,v 1.38.2.13 2007/01/05 14:47:23 alaurin Exp $
 #
 # Copyright 2006 LibLime
 #
@@ -538,7 +538,7 @@
 }    #/end of the for loop
 
 #$template->param(FEDERATED_RESULTS => \@results_array);
-# adding the norequest param
+# adding the $RequestOnOpac param
 my $RequestOnOpac;
 if (C4::Context->preference("RequestOnOpac")) {
 	$RequestOnOpac = 1;





More information about the Koha-cvs mailing list