[Bug 9286] New: Add script to add a bib to the zebra queue from the command line
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Bug ID: 9286 Summary: Add script to add a bib to the zebra queue from the command line Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: gmcharlt@gmail.com Reporter: kyle@bywatersolutions.com It would be convenient to have a script to insert a single bib into the zebra queue manually. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 --- Comment #1 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14117 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14117&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|gmcharlt@gmail.com |kyle@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |julian.maurice@biblibre.com --- Comment #2 from Julian Maurice <julian.maurice@biblibre.com> --- The new script works well, but I have 2 remarks: 1. 'eXecute' flag is not set 2. if called without arguments, biblio id 0 is added to the zebraqueue. Even if it's managed well by rebuild_zebra.pl, I think this should be prevented and calling mod_zebraqueue.pl without arguments should print the help. Marking as failed qa for (2) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14117|0 |1 is obsolete| | --- Comment #3 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14170 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14170&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #4 from Kyle M Hall <kyle@bywatersolutions.com> --- Good catch! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion CC| |gmcharlt@gmail.com --- Comment #5 from Galen Charlton <gmcharlt@gmail.com> --- Works for me, but if we're going to have such a utility, we should cover all of the obvious use cases. In particular, I suggest adding a -a/--authority/--authoritynumber flag. Setting to "in discussion". -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 --- Comment #6 from Galen Charlton <gmcharlt@gmail.com> --- Also, even for something as small as this, the GPL verbiage should be added to the header. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14170|0 |1 is obsolete| | --- Comment #7 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 15115 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15115&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15115|0 |1 is obsolete| | --- Comment #8 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 15116 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15116&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #9 from Galen Charlton <gmcharlt@gmail.com> --- Two issues with the latest patch: [1] If you run it with just the -a option to index a single authority, it instead prints the help and exists. There's no reason to require that -b be supplied; either -b or -a (or both) is sufficient. [2] Help includes the string "--verbosep", which should just be "--verbose" -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15116|0 |1 is obsolete| | --- Comment #10 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 15244 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15244&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15244|0 |1 is obsolete| | --- Comment #11 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 15245 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15245&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15245|0 |1 is obsolete| | --- Comment #12 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 15504 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15504&action=edit [SIGNED-OFF] Bug 9286 - Add script to add a bib to the zebra queue from the command line Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: No test plan, but works. Tested adding auth, biblios or both, then rebuilding -z No errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |bgkriegel@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz --- Comment #13 from Chris Cormack <chris@bigballofwax.co.nz> --- misc/mod_zebraqueue.pl -a 1 select * from zebraqueue where done=0; +----+--------------------+---------------+-----------------+------+---------------------+ | id | biblio_auth_number | operation | server | done | time | +----+--------------------+---------------+-----------------+------+---------------------+ | 1 | 1 | specialUpdate | authorityserver | 0 | 2013-05-27 20:07:39 | +----+--------------------+---------------+-----------------+------+---------------------+ misc/mod_zebraqueue.pl -b 1 | 2 | 1 | specialUpdate | biblioserver | 0 | 2013-05-27 20:08:47 | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15504|0 |1 is obsolete| | --- Comment #14 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 18409 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18409&action=edit Bug 9286 - Add script to add a bib to the zebra queue from the command line Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: No test plan, but works. Tested adding auth, biblios or both, then rebuilding -z No errors. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Test Plan 1/ run misc/mod_zebraqueue.pl -a 1 2/ In your koha db SELECT * FROM zebraqueue WHERE done = 0; Check that a row for authority record id 1 has been inserted 3/ run misc/mod_zebraqueue.pl -b 1 4/ In your koha db SELECT * FROM zebraqueue WHERE done = 0; Check that a row for biblio record id 1 has been inserted 5/ run misc/mod_zebraqueue.pl Make sure the help is sensible -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9286 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #15 from Galen Charlton <gmcharlt@gmail.com> --- Pushed to master. Thanks, Kyle! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org