From 9c7fdc9c8491806b733a6777ef39a0eadc82309d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 5 Jun 2008 12:26:39 -0500 Subject: [PATCH] bugfix - don't allow deletion of authority records from OPAC Because of some copy-and-paste work, it was possible to construct an OPAC URL that would attempt to call DelAuthority on a selected authority record. This is perhaps taking patron contributations to library metadata a bit too far. Signed-off-by: Joshua Ferraro --- opac/opac-authorities-home.pl | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/opac/opac-authorities-home.pl b/opac/opac-authorities-home.pl index e1ea484157..6284e81c29 100755 --- a/opac/opac-authorities-home.pl +++ b/opac/opac-authorities-home.pl @@ -145,24 +145,6 @@ if ( $op eq "do_search" ) { ); } -elsif ( $op eq "delete" ) { - - &DelAuthority( $authid, 1 ); - - ( $template, $loggedinuser, $cookie ) = get_template_and_user( - { - template_name => "authorities/authorities-home.tmpl", - query => $query, - type => 'intranet', - authnotrequired => 0, - flagsrequired => { catalogue => 1 }, - debug => 1, - } - ); - - # $template->param("statements" => \@statements, - # "nbstatements" => $nbstatements); -} elsif ( $op eq "AddStatement" ) { ( $template, $loggedinuser, $cookie ) = get_template_and_user( -- 2.20.1