Bugzilla – Attachment 15245 Details for
Bug 9286
Add script to add a bib to the zebra queue from the command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9286 - Add script to add a bib to the zebra queue from the command line
Bug-9286---Add-script-to-add-a-bib-to-the-zebra-qu.patch (text/plain), 2.78 KB, created by
Kyle M Hall (khall)
on 2013-02-11 14:41:04 UTC
(
hide
)
Description:
Bug 9286 - Add script to add a bib to the zebra queue from the command line
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-02-11 14:41:04 UTC
Size:
2.78 KB
patch
obsolete
>From f1943d6920966023f86d0f1043a4eb6bb4be88f5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 14 Dec 2012 07:31:00 -0500 >Subject: [PATCH] Bug 9286 - Add script to add a bib to the zebra queue from the command line > >--- > misc/mod_zebraqueue.pl | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 84 insertions(+), 0 deletions(-) > create mode 100755 misc/mod_zebraqueue.pl > >diff --git a/misc/mod_zebraqueue.pl b/misc/mod_zebraqueue.pl >new file mode 100755 >index 0000000..0c5c9a7 >--- /dev/null >+++ b/misc/mod_zebraqueue.pl >@@ -0,0 +1,84 @@ >+#!/usr/bin/perl >+ >+# Copyright 2012 Kyle M Hall >+# 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 >+ >+# script to add records to the zebraqueue from the commandline. >+ >+use Modern::Perl; >+ >+use Getopt::Long; >+use Pod::Usage; >+ >+use C4::Biblio; >+ >+my @biblios; >+my @authorities; >+my $help; >+my $verbose; >+ >+GetOptions( >+ "b|biblio|biblionumber=s" => \@biblios, >+ "a|authority|authoritynumber=s" => \@authorities, >+ 'h|?|help' => \$help, >+ 'v|verbose' => \$verbose, >+); >+ >+pod2usage( -exitval => 0 ) if ( $help || !( @biblios || @authorities ) ); >+ >+foreach my $biblionumber (@biblios) { >+ print "Adding bibliographic record $biblionumber to Zebra queue\n" if ($verbose); >+ ModZebra( $biblionumber, "specialUpdate", "biblioserver" ); >+} >+ >+foreach my $authority (@authorities) { >+ print "Adding authority record $authority to Zebra queue\n" if ($verbose); >+ ModZebra( $authority, 'specialUpdate', "authorityserver" ); >+} >+ >+__END__ >+ >+=head1 NAME >+ >+mod_zebraqueue.pl - Mark bibliographic and/or authority records for updating via the zebraqueue. >+ >+=head1 SYNOPSIS >+ >+mod_zebraqueue.pl -v -b $bib1 -b $bib2 -a $authority1 -a $authority2 >+ >+=head1 OPTIONS >+ >+=over 8 >+ >+=item B<-b, --biblio, --biblionumber> >+ >+The biblionumber of a record to be updated, repeatable. >+ >+=item B<-a, --authority, --authoritynumber> >+ >+The authoritynumber of the record to be updated, repeatable. >+ >+=item B<-h, -?, --help> >+ >+Prints this help message and exits. >+ >+=item B<-v, --verbose> >+ >+Be verbose >+ >+=back >+ >+=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 9286
:
14117
|
14170
|
15115
|
15116
|
15244
|
15245
|
15504
|
18409