From eaab1def1ac712b66ab26345306308a2a381669e Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 18 Dec 2002 10:38:59 +0000 Subject: [PATCH] bugfix to bug 142 But : modification of the behaviour : when you select 200 as search string in tag screen, the tags >200 are shown. Not only the 200 tag. I think it's more logic and better. --- admin/marctagstructure.pl | 4 ++-- .../default/en/parameters/marc_subfields_structure.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index c7d2ef31b5..070ec8c99a 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -33,7 +33,7 @@ sub StringSearch { $searchstring=~ s/\'/\\\'/g; my @data=split(' ',$searchstring); my $count=@data; - my $query="Select tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value from marc_tag_structure where (tagfield like \"$data[0]%\") order by tagfield"; + my $query="Select tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value from marc_tag_structure where (tagfield > $data[0]) order by tagfield"; my $sth=$dbh->prepare($query); $sth->execute; my @results; @@ -134,7 +134,7 @@ if ($op eq 'add_form') { $authorised_value ); $sth->finish; - print "Content-Type: text/html\n\n"; + print "Content-Type: text/html\n\n"; exit; # END $OP eq ADD_VALIDATE ################## DELETE_CONFIRM ################################## diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl index 76fd463c9c..cd06785e57 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/marc_subfields_structure.tmpl @@ -105,7 +105,7 @@ ensure that both DB are synchronized, thus you can change from MARC to KOHA inte - Back to Tags + ">Back to Tags -- 2.20.1