From 919f6012f8ff86a4910387b74aea21becc087103 Mon Sep 17 00:00:00 2001 From: hdl Date: Mon, 30 Apr 2007 14:30:23 +0000 Subject: [PATCH] Commiting bulkedition in search page. --- catalogue/search.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/catalogue/search.pl b/catalogue/search.pl index 3b95cc9e77..4698cef529 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -415,7 +415,29 @@ if ($@ || $error) { output_html_with_http_headers $cgi, $cookie, $template->output; exit; } +my $op=$cgi->param("operation"); +if ($op eq "bulkedit"){ + my ($countchanged,$listunchanged)= + EditBiblios($results_hashref->{'biblioserver'}->{"RECORDS"}, + $params->{"tagsubfield"}, + $params->{"inputvalue"}, + $params->{"targetvalue"}, + $params->{"test"} + ); + $template->param(bulkeditresults=>1, + tagsubfield=>$params->{"tagsubfield"}, + inputvalue=>$params->{"inputvalue"}, + targetvalue=>$params->{"targetvalue"}, + countchanged=>$countchanged, + countunchanged=>scalar(@$listunchanged), + listunchanged=>$listunchanged); +} +if (C4::Context->userenv->{'flags'}==1 ||(C4::Context->userenv->{'flags'} & ( 2**9 ) )){ +#Edit Catalogue Permissions + $template->param(bulkedit => 1); + $template->param(tagsubfields=>GetManagedTagSubfields()); +} # At this point, each server has given us a result set # now we build that set for template display my @sup_results_array; -- 2.39.5