From 34701939ab8e95e06946736f5f9359563348c57d Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 21 Oct 2003 15:47:06 +0000 Subject: [PATCH] fix for #577 --- admin/authorised_values.pl | 15 ++++++++----- admin/marctagstructure.pl | 11 ++++++++-- .../en/parameters/authorised_values.tmpl | 22 ++++++++++++------- .../en/parameters/marctagstructure.tmpl | 16 ++++++++++++-- .../fr/parameters/authorised_values.tmpl | 22 ++++++++++++------- .../fr/parameters/marctagstructure.tmpl | 16 ++++++++++++-- 6 files changed, 75 insertions(+), 27 deletions(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index 16f9fff4e4..5e78c6648d 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -65,7 +65,7 @@ my ($template, $borrowernumber, $cookie) flagsrequired => {parameters => 1}, debug => 1, }); -my $pagesize=20; +my $pagesize=5; my $op = $input->param('op'); if ($op) { @@ -187,13 +187,18 @@ if ($op eq 'add_form') { if ($offset>0) { my $prevpage = $offset-$pagesize; - $template->param(previous => ""); + $template->param(isprevpage => $offset, + prevpage=> $prevpage, + searchfield => $searchfield, + script_name => $script_name, + ); } if ($offset+$pagesize<$count) { my $nextpage =$offset+$pagesize; - $template->param(next => ""); - - + $template->param(nextpage =>$nextpage, + searchfield => $searchfield, + script_name => $script_name, + ); } } #---- END $OP eq DEFAULT diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 0af03e801e..5f25f808c8 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -192,11 +192,18 @@ if ($op eq 'add_form') { $template->param(loop => \@loop_data); if ($offset>0) { my $prevpage = $offset-$pagesize; - $template->param(previous => "'); + $template->param(isprevpage => $offset, + prevpage=> $prevpage, + searchfield => $searchfield, + script_name => $script_name, + ); } if ($offset+$pagesize<$count) { my $nextpage =$offset+$pagesize; - $template->param(next => "'); + $template->param(nextpage =>$nextpage, + searchfield => $searchfield, + script_name => $script_name, + ); } } #---- END $OP eq DEFAULT diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/authorised_values.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/authorised_values.tmpl index 28ee361bd9..6a08ff430d 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/authorised_values.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/authorised_values.tmpl @@ -75,17 +75,23 @@ the subfield is not entered through a free field, but though a list of authorise
- - - - - -
- - + +
//images/1leftarrow.png" title="previous" ALT="previous" BORDER=0>//images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + ?offset=&searchfield="> + //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0> + + + + + ?offset=&searchfield="> + //images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + +
diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl index 4f2532e500..c5fcdc437b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl @@ -131,8 +131,20 @@ - //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0>
- //images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + + ?offset=&searchfield="> + //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0> + + + + + + ?offset=&searchfield="> + //images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + +
diff --git a/koha-tmpl/intranet-tmpl/default/fr/parameters/authorised_values.tmpl b/koha-tmpl/intranet-tmpl/default/fr/parameters/authorised_values.tmpl index b28a5ae1cf..1764a31c8e 100644 --- a/koha-tmpl/intranet-tmpl/default/fr/parameters/authorised_values.tmpl +++ b/koha-tmpl/intranet-tmpl/default/fr/parameters/authorised_values.tmpl @@ -80,17 +80,23 @@ n'est pas renseign
- - - - - -
- - + +
//images/1leftarrow.png" title="previous" ALT="previous" BORDER=0>//images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + ?offset=&searchfield="> + //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0> + + + + + ?offset=&searchfield="> + //images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + +
diff --git a/koha-tmpl/intranet-tmpl/default/fr/parameters/marctagstructure.tmpl b/koha-tmpl/intranet-tmpl/default/fr/parameters/marctagstructure.tmpl index fdf8b2b224..6e95e6d007 100644 --- a/koha-tmpl/intranet-tmpl/default/fr/parameters/marctagstructure.tmpl +++ b/koha-tmpl/intranet-tmpl/default/fr/parameters/marctagstructure.tmpl @@ -153,8 +153,20 @@ //images/filenew.png" title="Ajouter" ALT="Add" BORDER=0 > - //images/1leftarrow.png" title="Prec" ALT="Prec" BORDER=0 > - //images/1rightarrow.png" title="Suivant" ALT="Suivant" BORDER=0> + + + ?offset=&searchfield="> + //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0> + + + + + + ?offset=&searchfield="> + //images/1rightarrow.png" title="next" ALT="next" BORDER=0> + + + -- 2.39.5