Bugzilla – Attachment 11920 Details for
Bug 8674
Need a delete biblios script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8674: Followup: Add POD for misc/batchdeletebiblios.pl
Bug-8674-Followup-Add-POD-for-miscbatchdeletebibli.patch (text/plain), 3.14 KB, created by
Kyle M Hall
on 2012-08-31 14:44:33 UTC
(
hide
)
Description:
Bug 8674: Followup: Add POD for misc/batchdeletebiblios.pl
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-08-31 14:44:33 UTC
Size:
3.14 KB
patch
obsolete
>From f97a00dcd1e93fc2e96ada325f0574bca5a9b89f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 30 Aug 2012 10:33:38 +0200 >Subject: [PATCH] Bug 8674: Followup: Add POD for misc/batchdeletebiblios.pl >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/batchdeletebiblios.pl | 85 +++++++++++++++++++++++++++++++------------ > 1 files changed, 61 insertions(+), 24 deletions(-) > >diff --git a/misc/batchdeletebiblios.pl b/misc/batchdeletebiblios.pl >index 52170f6..11fcaec 100755 >--- a/misc/batchdeletebiblios.pl >+++ b/misc/batchdeletebiblios.pl >@@ -1,32 +1,18 @@ > #!/usr/bin/perl > >-# Copyright 2012 BibLibre >-# This file is part of Koha. >-# >-# Koha is free software; you can redistribute it and/or modify it under the >-# terms of the GNU General Public License as published by the Free Software >-# Foundation; either version 2 of the License, or (at your option) any later >-# version. >-# >-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY >-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR >-# A PARTICULAR PURPOSE. See the GNU General Public License for more details. >-# >-# You should have received a copy of the GNU General Public License along with >-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, >-# Suite 330, Boston, MA 02111-1307 USA >- >-=head1 batchdeletebiblios.pl >- >- This script batch deletes biblios which contain a biblionumber present in file passed in parameter. >- If one biblio has items, it is not deleted. >- >-=cut >- > use Modern::Perl; >+use Getopt::Long; >+use Pod::Usage; >+use IO::File; >+ > use C4::Biblio; > >-use IO::File; >+my ($help, $files); >+GetOptions( >+ 'h|help' => \$help, >+); >+ >+pod2usage(1) if $help or not @ARGV; > > for my $file ( @ARGV ) { > say "Find biblionumber in file $file"; >@@ -50,3 +36,54 @@ for my $file ( @ARGV ) { > } > } > } >+ >+exit(0); >+ >+__END__ >+ >+=head1 NAME >+ >+batchdeletebiblios.pl >+ >+=head1 SYNOPSIS >+ >+./batchdeletebiblio.pl file1 [file2 ... filen] >+ >+This script batch deletes biblios which contain a biblionumber present in file passed in parameter. >+If one biblio has items, it is not deleted. >+ >+=head1 OPTIONS >+ >+=over 8 >+ >+=item B<-h|--help> >+ >+prints this help message >+ >+=back >+ >+=head1 AUTHOR >+ >+Jonathan Druart <jonathan.druart@biblibre.com> >+ >+=head1 COPYRIGHT >+ >+Copyright 2012 BibLibre >+ >+=head1 LICENSE >+ >+This file is part of Koha. >+ >+Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software >+Foundation; either version 2 of the License, or (at your option) any later version. >+ >+You should have received a copy of the GNU General Public License along >+with Koha; if not, write to the Free Software Foundation, Inc., >+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >+ >+=head1 DISCLAIMER OF WARRANTY >+ >+Koha is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR >+A PARTICULAR PURPOSE. See the GNU General Public License for more details. >+ >+=cut >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8674
:
11779
|
11780
|
11887
|
11919
| 11920 |
12647