]>
git.koha-community.org Git - koha.git/log
Paul POULAIN [Tue, 8 Apr 2008 20:14:13 +0000 (22:14 +0200)]
BiblioAddsAuthorities improvement/fix
this commit restore a better behaviour :
- if ON : the librarian can enter manually an authority-linked marc field. and if it does not exist in the authorities file, it will be created automatically
- if OFF : the authority must exist in the authority file, and the librarian can't enter if manually in the MARC editor
This patch just deals with the OFF case (the ON was already here). With OFF the behaviour is now the same as in 2.2
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Tue, 8 Apr 2008 20:14:12 +0000 (22:14 +0200)]
Adding OPACItemHolds syspref in sql syspref, added by owen on april 1st
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Fri, 4 Apr 2008 09:16:01 +0000 (11:16 +0200)]
reintroducing the limit on itemtype when searching a biblio in subscription add
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Fri, 4 Apr 2008 09:16:00 +0000 (11:16 +0200)]
Reintroducing history dates for serial-issue (see previous commit for staff // feature)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Fri, 4 Apr 2008 09:15:59 +0000 (11:15 +0200)]
reintroducing history manual modification feature
The history start date and enddate is also useful to modify manually for the same reason : your serial collection may be older than your Koha serial management.
This commit reintroduce the feature.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Tue, 1 Apr 2008 14:01:43 +0000 (16:01 +0200)]
bugfix for saving issuing rules
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:36 +0000 (16:01 +0200)]
use HomeOrHoldingBranch to determine if a return is valid or not
in fact, i'm not 100% sure of this bugfix : I don't see the case where a return should be done directly to homebranch, when the check out has been done at holdingbranch
so maybe we could hardcode 'holdingbranch' instead of using HomeOrHoldingBranch
the patch as written won't break anything existing.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Wed, 9 Apr 2008 09:15:37 +0000 (05:15 -0400)]
Fixing bug 2005: ISBN Search
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joe Atzberger [Tue, 8 Apr 2008 22:43:52 +0000 (17:43 -0500)]
AddRenewal - handle opac-renewal, empty branch arg.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joe Atzberger [Tue, 8 Apr 2008 22:43:51 +0000 (17:43 -0500)]
Allow param "bornum" as in template, not just "borrowernumber". Added FIXMEs.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Tue, 8 Apr 2008 13:15:24 +0000 (09:15 -0400)]
Partial fixes to enable unapi for non-zebra and non-public-facing sru
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 8 Apr 2008 21:08:12 +0000 (16:08 -0500)]
bug 2004: changes to guided reports on items
* Added items.location and items.ccode to list of
columns available for limiting
* choice of item type column (i.e., biblioitems.itemtype
or items.itype) to limit by now respects
item-level_itypes syspref
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Andrew Moore [Tue, 8 Apr 2008 19:04:20 +0000 (14:04 -0500)]
bug 1980: changes to label-item-search.pl to allow pagination over large result sets
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Andrew Moore [Tue, 8 Apr 2008 19:04:19 +0000 (14:04 -0500)]
Bug 1980: some cleanup, getting ready to add pagination to label-item-search.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joe Atzberger [Tue, 8 Apr 2008 16:28:40 +0000 (11:28 -0500)]
Dates.pm - trivial perldoc corrections
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Tue, 8 Apr 2008 15:04:06 +0000 (11:04 -0400)]
NOTE: REQUIRES INSTALLATION OF Image::Magick; Adding image scaling/resizing capability to picture-upload.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joe Atzberger [Tue, 8 Apr 2008 14:50:19 +0000 (09:50 -0500)]
Quell 7 warnings: "my" variable $irule masks earlier declaration in same scope.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:14:20 +0000 (08:14 -0500)]
Adding max-width to patron image in sidebar, correcting some markup in picture uploads.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:14:14 +0000 (08:14 -0500)]
Adding COinS support to cart pop-up; Hide similar items in opac-details if no similar items are found.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:14:08 +0000 (08:14 -0500)]
Fixes for tablesorter problems when there are no checkouts from today; Other markup corrections.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:14:02 +0000 (08:14 -0500)]
Some minor markup corrections, style fixes.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:13:56 +0000 (08:13 -0500)]
Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:13:50 +0000 (08:13 -0500)]
Completing table sort js integration for checkouts and holds.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 8 Apr 2008 13:13:34 +0000 (08:13 -0500)]
Some formatting changes, bringing displays in circ and moremember more in line with each other
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Mon, 7 Apr 2008 22:47:48 +0000 (17:47 -0500)]
Fix calls to CalcFine, and make fines obey CircControl syspref (get homebranch withssue data).
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Tue, 8 Apr 2008 01:25:11 +0000 (21:25 -0400)]
adding MARC21 record descriptions as per loc.gov//marc/bibliographic/
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Tue, 8 Apr 2008 00:02:18 +0000 (20:02 -0400)]
adding additional statuses display for XSL
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Mon, 7 Apr 2008 22:39:14 +0000 (18:39 -0400)]
adding Library of Congress Classification to display
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Mon, 7 Apr 2008 22:23:07 +0000 (18:23 -0400)]
removing escape=url as it broke '=' for q=query
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Mon, 7 Apr 2008 22:06:10 +0000 (18:06 -0400)]
adding famfamfam iconset, improving isbn for amazon content, etc.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Thu, 27 Mar 2008 02:31:38 +0000 (22:31 -0400)]
Cleaning up XSL to display a few additional MARC21 fields
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Mon, 7 Apr 2008 14:45:46 +0000 (10:45 -0400)]
Correcting screen help for patron image upload from moremember.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Mon, 7 Apr 2008 08:28:01 +0000 (03:28 -0500)]
Add a working fines script, some changes to CalcFine and Circulation.pm
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Mon, 7 Apr 2008 05:27:31 +0000 (00:27 -0500)]
Show enumchron, copynumber in opac detail iff present.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Mon, 7 Apr 2008 03:09:24 +0000 (22:09 -0500)]
Add Logging module 'SYSTEMPREFERENCE', log adds, mods & deletes.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Mon, 7 Apr 2008 01:39:00 +0000 (20:39 -0500)]
Fix authorised_value '0' problem with last commit on detail.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Sat, 5 Apr 2008 17:55:52 +0000 (12:55 -0500)]
More cleanup of location & ccode authval handling.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Sat, 5 Apr 2008 00:05:07 +0000 (19:05 -0500)]
Remove hardcoded LOC AND CCODE authvals; fix no display of location on staff details page.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Fri, 4 Apr 2008 09:16:02 +0000 (11:16 +0200)]
french translation updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Paul POULAIN [Tue, 1 Apr 2008 14:01:44 +0000 (16:01 +0200)]
adding Ç as equivale nt to c for frenchies
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:42 +0000 (16:01 +0200)]
some fixes to unimarc authorities ordering
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:41 +0000 (16:01 +0200)]
BUGFIX : using " instead of ' to avoid javascript failure
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:40 +0000 (16:01 +0200)]
BUGFIX renewal
otherwise, the new issuedate will be empty
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:39 +0000 (16:01 +0200)]
The link field is now a CCL index, so it must be longer than 5 char long
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
paul [Tue, 1 Apr 2008 14:01:38 +0000 (16:01 +0200)]
Some missing sysprefs in french
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Henri-Damien LAURENT [Thu, 27 Mar 2008 08:21:02 +0000 (09:21 +0100)]
Bug Fixing : Editing items was broken when using diacritics.
Encoding was wrong
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Fri, 4 Apr 2008 21:35:21 +0000 (17:35 -0400)]
a reminder about tags for the RM
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Joshua Ferraro [Fri, 4 Apr 2008 19:28:48 +0000 (15:28 -0400)]
don't show famfamfam for a language
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Thu, 3 Apr 2008 14:58:25 +0000 (10:58 -0400)]
More work on label printing tool
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 2 Apr 2008 14:42:03 +0000 (10:42 -0400)]
Removing a stray warn
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 2 Apr 2008 14:34:11 +0000 (10:34 -0400)]
Commenting out Dumper
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 2 Apr 2008 14:29:53 +0000 (10:29 -0400)]
Some coding improvement and misc changes to BIBBAR labels
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 1 Apr 2008 20:58:43 +0000 (15:58 -0500)]
Some markup corrections, breadcrumb improvement, and other minor changes.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 1 Apr 2008 20:58:32 +0000 (15:58 -0500)]
Correcting table-sorter js for different table structures (Amazon content on or off, item-level-itemtypes on or off)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 1 Apr 2008 20:58:23 +0000 (15:58 -0500)]
Changes to allow librarian to turn off item-level holds in the OPAC. Requires the addition of OPACItemHolds system pref ("Allow OPAC users to place hold on specific items. If OFF, users can only request next available copy." Type: YesNo). Also modifying redirect to show Holds tab in opac-user.pl.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
MJ Ray [Tue, 1 Apr 2008 18:29:18 +0000 (19:29 +0100)]
Add backtrace printing option through SetEnv KOHA_BACKTRACES 1
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:10 +0000 (12:01 -0500)]
more XHTML corrections for new circ reports
Note: I question the use of GROUP_CONCAT(... SEPARATOR '<br/>'),
because that puts knowledge of the output mechanism (currently HTML)
into the SQL query. However, I am not fixing this right now.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:09 +0000 (12:01 -0500)]
SQL cleanup in new circ scripts: use placeholders
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:08 +0000 (12:01 -0500)]
use C4::Debug instead of checking DEBUG env var directly
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:07 +0000 (12:01 -0500)]
fixed typo in template
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:06 +0000 (12:01 -0500)]
XHTML fixes for various circ templates
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:05 +0000 (12:01 -0500)]
change references to 'reserves' in billing report template
New billing report has nothing to do with hold requests per se,
so change template variables in order to not confuse customizers.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:04 +0000 (12:01 -0500)]
various date-related cleanups in circ
* use Date::Calc to perform date arithmetic
* use Date::Calc::Today to consistently format the current date
* format date per syspref in overdue report
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:03 +0000 (12:01 -0500)]
disallow division by zero in hold ratio report
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:02 +0000 (12:01 -0500)]
another "Reserves" => "Hold" in template
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 1 Apr 2008 17:01:01 +0000 (12:01 -0500)]
minor circ template cleanup
[1] did some "Reserve" => "Hold" to keep language consistent
[2] Moved hold ratios report and billing report on circ
home page to group with related reports
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Darrell Ulm [Tue, 1 Apr 2008 17:01:00 +0000 (12:01 -0500)]
All patches to Koha 3 beta to date. All work with branches.
Billing.pl -- new, gives bills that occur in a range, works
pendingreserves.pl -- fixed, works now, with branches also
reserveratios.pl -- indicates distressed reserves
itemslost.pl -- Fix to this to make it more useful and fix bugs
Itmes.pm -- small change to work for itemslost, should not affect
anything else
and all tmpl files.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Tue, 1 Apr 2008 12:51:15 +0000 (08:51 -0400)]
Adding PATCRD print type
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Mon, 31 Mar 2008 22:08:55 +0000 (17:08 -0500)]
fixed locating OPAC stylesheet in a "standard" install
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Mon, 31 Mar 2008 22:08:54 +0000 (17:08 -0500)]
fixed MODS biblio export on a "standard" install
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Mon, 31 Mar 2008 21:58:02 +0000 (16:58 -0500)]
bug 1986: fix card view in Z39.50 search results
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Mon, 31 Mar 2008 21:19:53 +0000 (16:19 -0500)]
fixed memory leak I introduced
Accidentally introducing a circular reference in a
MARC::Record object does not lead to goodness, particularly
if you export lots and lots of them.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Mon, 31 Mar 2008 16:57:18 +0000 (11:57 -0500)]
work around issue in MARC::Charset
Because of a bug in MARC::Charset 0.98, if a string to convert from
MARC-8 to UTF-8 has (a) one or more diacritics that (b) are only in character positions
128 to 255 inclusive, the resulting converted string is not in
UTF-8, but the legacy 8-bit encoding (e.g., ISO-8859-1). As a result,
when such a record is converted to XML using ->as_xml_record(), the resulting
XML can be truncated at the offending character. An example of such a record
is one that has a price in Briish pounds in the 260$c but no other diacritics.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Fri, 28 Mar 2008 19:23:43 +0000 (14:23 -0500)]
Adding a couple of missing YUI js files; Adding comment preview to comments system (needs review).
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Fri, 28 Mar 2008 19:23:32 +0000 (14:23 -0500)]
Improving comments style and markup, adding highlighting for comments made by logged-in user.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Fri, 28 Mar 2008 14:31:20 +0000 (10:31 -0400)]
Correcting a small case-sensitive bug.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Thu, 27 Mar 2008 19:40:15 +0000 (14:40 -0500)]
for DebugLevel=2; improved reporting of version numbers
Koha software and DB version numbers now reported;
also improved formatting of multi-line error messages.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Thu, 27 Mar 2008 19:40:14 +0000 (14:40 -0500)]
improved formatting of fatal error messages sent to browser
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Thu, 27 Mar 2008 19:40:13 +0000 (14:40 -0500)]
fixed invocation of CGI::Carp::set_message
The message handler in C4::Context is now correctly
passed CGI::Carp.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Andrew Moore [Thu, 27 Mar 2008 16:39:20 +0000 (11:39 -0500)]
bug 1890: fixing calls to C4::Search::SimpleSearch
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Andrew Moore [Thu, 27 Mar 2008 16:39:19 +0000 (11:39 -0500)]
Bug 1980: adding parameters to C4::Search::SimpleSearch to allow limiting the number of results returned.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 14:32:51 +0000 (10:32 -0400)]
Adding file size limit to picture-upload.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 13:43:34 +0000 (09:43 -0400)]
Fixes to make all label/patron card templates uniform
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 13:21:12 +0000 (09:21 -0400)]
Adding sample label form for Patron Cards
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Wed, 26 Mar 2008 13:15:44 +0000 (08:15 -0500)]
Catalogue => Search in staff home page
Changed to match similar change in the menu
bar.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Wed, 26 Mar 2008 12:54:58 +0000 (07:54 -0500)]
avoid croak on latest CVS version of MARC::Record
The semantics of MARC::Record->delete_field() changed
slightly in the latest CVS version of MARC::Record.
delete_field() will now croak if passed an undef
scalar, while the version of MARC::Record from CPAN
accepts that input. Since some packages of MARC::Record
in the wild appear to be based on the CVS version, not
the CPAN version, added a check where needed to avoid
the croak.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 10:01:35 +0000 (06:01 -0400)]
More work on patron card generation feature
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 10:01:34 +0000 (06:01 -0400)]
Adding member search to patron card generation feature
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Chris Nighswonger [Wed, 26 Mar 2008 10:01:33 +0000 (06:01 -0400)]
Work on adding patron search to patron card generation feature.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 25 Mar 2008 20:22:56 +0000 (15:22 -0500)]
Tweaking the interface of OPAC shelves to more closely match the pattern set by the staff client. Simplifies and focuses on specific tasks.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 25 Mar 2008 20:22:44 +0000 (15:22 -0500)]
Notifying the user when they have selected no items and clicked 'Add to list.'
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 25 Mar 2008 20:22:36 +0000 (15:22 -0500)]
Visual tweaks for login screen.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Owen Leonard [Tue, 25 Mar 2008 20:22:29 +0000 (15:22 -0500)]
Correction to prevent js error when table has no data.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Ryan Higgins [Tue, 25 Mar 2008 19:43:32 +0000 (14:43 -0500)]
Change LateOrders to inclusive <=, s/supplier/vendor , s/parcel/shipment.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:43 +0000 (07:30 -0500)]
still more rebuild_zebra refactoring
Merged duplicate code for indexing bibs and
authorities into a single index_records() function.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:42 +0000 (07:30 -0500)]
IMPORTANT: added -z option to rebuild_zebra.pl
The -z option, when used in conjunction with -a and/or -b,
selects the records to reindex from the zebraqueue table.
Both record updates and record deletes are handled.
-z is cannot be used with -s or -r: the updated records
must always be freshly exported, and if zebraqueue
is to be processed, it's assumed that you don't want
to drop the Zebra index first.
This means that rebuild_zebra.pl -b -a -x can be
used as a cronjob to update the indexes periodically; it
is believed that this will offer much better indexing
performance on some setups as compared to zebraqueue_daemon.pl,
which uses Z39.50 extended services to send record updates
to Zebra.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:41 +0000 (07:30 -0500)]
rebuild_zebra: exit if both -a and -x specified
At moment using both -a (index authorities) and
-x (export records as MARC XML) is not allowed -
if the Zebra authority database is using the DOM
filter, zebraidx will not be able to process the
exported records correctly.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:40 +0000 (07:30 -0500)]
more rebuild_zebra.pl refactoring
1. Logic to fix up record IDs, UNIMARC 100 field,
and record leader now in separate functions.
2. Removed (incorrect) logic to save corrected record
in database.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:39 +0000 (07:30 -0500)]
refactor rebuild_zebra: new routine for invoking zebraidx
Created a routine for calling zebraidx, replacing
separate invocations for bibs and authorities.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Galen Charlton [Tue, 25 Mar 2008 12:30:38 +0000 (07:30 -0500)]
rebuild_zebra.pl: removed disused $limit option
Signed-off-by: Joshua Ferraro <jmf@liblime.com>