From: rangi Date: Tue, 13 Mar 2001 22:41:21 +0000 (+0000) Subject: Shifted catmaintain.pl to a dir that can be easily passowrd protected X-Git-Tag: R_1-2-2RC4~98 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=003f583b43af8cb939025b63d3d04e249fb41655;p=koha_fer Shifted catmaintain.pl to a dir that can be easily passowrd protected --- diff --git a/catmaintain.pl b/catmaintain.pl deleted file mode 100755 index a0201b29cd..0000000000 --- a/catmaintain.pl +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/perl - -#script to do some serious catalogue maintainance -#written 22/11/00 -# by chris@katipo.co.nz - -use strict; -use CGI; -use C4::Output; -use C4::Database; -use C4::Maintainance; - -my $input = new CGI; -print $input->header; -my $type=$input->param('type'); -print startpage(); -print startmenu('catalog'); -my $blah; -my $num=0; -my $offset=0; -if ($type eq 'allsub'){ - my $sub=$input->param('sub'); - my ($count,$results)=listsubjects($sub,$num,$offset); - for (my $i=0;$i<$count;$i++){ - my $sub2=$results->[$i]->{'subject'}; - $sub2=~ s/ /%20/g; - print "\"$results->[$i]->{'subject'}\"
\n"; - } -} elsif ($type eq 'modsub'){ - my $sub=$input->param('sub'); - print "
"; - print "Subject:
\n"; - print ""; - print ""; - print ""; -# print "Modify"; - print "
"; - print "

This will change the subject headings on all the biblios this subject is applied to" -} elsif ($type eq 'upsub'){ - my $sub=$input->param('sub'); - my $oldsub=$input->param('oldsub'); - updatesub($sub,$oldsub); - print "Successfully modified $oldsub is now $sub"; - print "

Back to catalogue maintenance
"; - print "Close this window"; -} elsif ($type eq 'undel'){ - my $title=$input->param('title'); - my ($count,$results)=deletedbib($title); - print ""; - print ""; - for (my $i=0;$i<$count;$i++){ - print "\n"; - } - print "
TitleAuthorUndelete
$results->[$i]->{'title'}$results->[$i]->{'author'}[$i]->{'biblionumber'}>Undelete
"; -} elsif ($type eq 'finun'){ - my $bib=$input->param('bib'); - undeletebib($bib); - print "Succesfully undeleted"; - print "

Back to Catalogue Maintenance"; -} else { - print "Subject Maintenance
"; - print "

"; - print ""; - print "Show all subjects beginning with
"; - print ""; - print "
"; - print "

"; - print "Group Maintenance
"; - print "

"; - print ""; - print "Show all Titles beginning with
"; - print ""; - print "
"; - print "

"; - print "Undelete Biblio
"; - print "

"; - print ""; - print "Show all Titles beginning with
"; - print ""; - print "
"; -} -print endmenu('catalog'); -print endpage(); diff --git a/maint/catmaintain.pl b/maint/catmaintain.pl new file mode 100755 index 0000000000..2facac2047 --- /dev/null +++ b/maint/catmaintain.pl @@ -0,0 +1,83 @@ +#!/usr/bin/perl + +#script to do some serious catalogue maintainance +#written 22/11/00 +# by chris@katipo.co.nz + +use strict; +use CGI; +use C4::Output; +use C4::Database; +use C4::Maintainance; + +my $input = new CGI; +print $input->header; +my $type=$input->param('type'); +print startpage(); +print startmenu('catalog'); +my $blah; +my $num=0; +my $offset=0; +if ($type eq 'allsub'){ + my $sub=$input->param('sub'); + my ($count,$results)=listsubjects($sub,$num,$offset); + for (my $i=0;$i<$count;$i++){ + my $sub2=$results->[$i]->{'subject'}; + $sub2=~ s/ /%20/g; + print "\"$results->[$i]->{'subject'}\"
\n"; + } +} elsif ($type eq 'modsub'){ + my $sub=$input->param('sub'); + print "
"; + print "Subject:
\n"; + print ""; + print ""; + print ""; +# print "Modify"; + print "
"; + print "

This will change the subject headings on all the biblios this subject is applied to" +} elsif ($type eq 'upsub'){ + my $sub=$input->param('sub'); + my $oldsub=$input->param('oldsub'); + updatesub($sub,$oldsub); + print "Successfully modified $oldsub is now $sub"; + print "

Back to catalogue maintenance
"; + print "Close this window"; +} elsif ($type eq 'undel'){ + my $title=$input->param('title'); + my ($count,$results)=deletedbib($title); + print ""; + print ""; + for (my $i=0;$i<$count;$i++){ + print "\n"; + } + print "
TitleAuthorUndelete
$results->[$i]->{'title'}$results->[$i]->{'author'}[$i]->{'biblionumber'}>Undelete
"; +} elsif ($type eq 'finun'){ + my $bib=$input->param('bib'); + undeletebib($bib); + print "Succesfully undeleted"; + print "

Back to Catalogue Maintenance"; +} else { + print "Subject Maintenance
"; + print "

"; + print ""; + print "Show all subjects beginning with
"; + print ""; + print "
"; + print "

"; + print "Group Maintenance
"; + print "

"; + print ""; + print "Show all Titles beginning with
"; + print ""; + print "
"; + print "

"; + print "Undelete Biblio
"; + print "

"; + print ""; + print "Show all Titles beginning with
"; + print ""; + print "
"; +} +print endmenu('catalog'); +print endpage();