[Koha-cvs] koha acqui/newbasket2.pl koha-tmpl/intranet-tmp... [rel_2_2]

Antoine Farnault antoine at koha-fr.org
Wed Oct 11 16:43:54 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Antoine Farnault <toins>	06/10/11 14:43:54

Modified files:
	acqui          : newbasket2.pl 
	koha-tmpl/intranet-tmpl/default/en/acqui: newbasket2.tmpl 

Log message:
	Add "previous" when browsing the results.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui/newbasket2.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.15.2.2&r2=1.15.2.3
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.14&r2=1.14.2.1

Patches:
Index: acqui/newbasket2.pl
===================================================================
RCS file: /sources/koha/koha/acqui/Attic/newbasket2.pl,v
retrieving revision 1.15.2.2
retrieving revision 1.15.2.3
diff -u -b -r1.15.2.2 -r1.15.2.3
--- acqui/newbasket2.pl	20 Jun 2006 16:21:42 -0000	1.15.2.2
+++ acqui/newbasket2.pl	11 Oct 2006 14:43:54 -0000	1.15.2.3
@@ -231,6 +231,8 @@
 	$i++;
 }
 
+my $previous =  $offset-$dispnum if($dispnum>1); #for multipage gestion
+
 $offset=$num+$offset;
 $template->param(	bookselname => $booksellers[0]->{'name'},
 								booksellerid => $booksellerid,
@@ -241,6 +243,7 @@
 								dispnum => $dispnum,
 								offsetover => ($offset < $count ),
 								num => $num,
+								previous => $previous,
 								offset => $offset,
 								type =>  $type,
 								title => $title,

Index: koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -b -r1.14 -r1.14.2.1
--- koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl	13 Sep 2004 15:28:58 -0000	1.14
+++ koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl	11 Oct 2006 14:43:54 -0000	1.14.2.1
@@ -83,9 +83,14 @@
 		</tr>
 	</table>
 	
+	<!-- TMPL_IF name="previous" -->
+	<a href="/cgi-bin/koha/acqui/newbasket2.pl?num=<!-- TMPL_VAR NAME="num" -->&amp;offset=<!-- TMPL_VAR NAME="previous" -->&amp;type=<!-- TMPL_VAR NAME="type" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;search=<!-- TMPL_VAR NAME="title" -->&amp;author=<!-- TMPL_VAR NAME="author" -->">
+	&lt; Previous
+	</a>
+	<!-- /TMPL_IF -->
 	<!-- TMPL_IF name="offsetover" -->
 	<a href="/cgi-bin/koha/acqui/newbasket2.pl?num=<!-- TMPL_VAR NAME="num" -->&amp;offset=<!-- TMPL_VAR NAME="offset" -->&amp;type=<!-- TMPL_VAR NAME="type" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;search=<!-- TMPL_VAR NAME="title" -->&amp;author=<!-- TMPL_VAR NAME="author" -->">
-	Next
+	Next &gt;
 	</a>
 	<!-- /TMPL_IF -->
 </div>





More information about the Koha-cvs mailing list