Koha/tools
Galen Charlton 438ed23337 staging import - enhance record overlay behavior
Enhanced the ability of catalogers to specify how
bib and item records should be added, replaced, or
ignored during a staging import.

When an import batch of bib records is staged and commit,
the user can now explicitly specify what should occur
when an incoming bib record has, or does not have, a match
with a record already in the database.  The options are:

if match found (overlay_action):
  create_new (just add the incoming record)
  replace (replace the matched record with the incoming one)
  use_template (option not implemented)
  ignore (do nothing with the incoming bib; however, the
          items attached to it may still be processed
           based on the item action)

if no match is found (nomatch_action):
  create_new (just add the incoming record)
  ignore (do nothing with the incoming bib; in this
          case, any items attached to it will be
          ignored since there will be nothing to
          attach them to)

The following options for handling items embedded in the
bib record are now available:

  always_add (add the items to the new or replaced bib)
  add_only_if_match (add the items only if the incoming bib
                     matches an existing bib)
  add_only_if_add (add the items only if the incoming bib
                   does *not* match an existing bib)
  ignore (ignore the items entirely)

With these changes, it is now possible to support the following use cases:

[1] A library joining an existing Koha database wishes to add their
    items to existing bib records if they match, but does not want
    to overlay the bib records themselves.
[2] A library wants to load a file of records, but only handle
    the new ones, not ones that are already in the database.
[3] A library wants to load a file of records, but only
    handle the ones that match existing records (e.g., if
    the records are coming back from an authority control vendor).

Documentation changes:

* See description above; also, screenshots of the 'stage MARC records
for import' and 'manage staged MARC records' should be updated.

Test cases:

* Added test cases to exercise staging and committing import batches.

UI changes:

* The pages for staging and managing import batches now have
  controls for setting the overlay action, action if no match,
  and item action separately.
* in the manage import batch tool, user is notified when they
  change overlay action, no-match action, and item action
* HTML for manage import batch tool now uses fieldsets

Database changes (DB rev 076):

* added import_batches.item_action
* added import_batches.nomatch_action
* added 'ignore' as a valid value for import_batches.overlay_action
* added 'ignored' as a valid value for import_records.status
* added 'status' as a valid value for import_items.status

API changes:

* new accessor routines for C4::ImportBatch

    GetImportBatchNoMatchAction
    SetImportBatchNoMatchAction
    GetImportBatchItemAction
    SetImportBatchItemAction

* new internal functions for C4::ImportBatch to
  determine how a given bib and item are to be
  processed, based on overlay_action, nomatch_action,
  and item_action:

    _get_commit_action
    _get_revert_action

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-30 21:58:46 -05:00
..
background-job-progress.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
cleanborrowers.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
exceptionHolidays.pl functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
export.pl BUGFIX : encoding problem & security problem 2008-04-14 23:46:53 -05:00
holidays.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
import_borrowers.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
inventory.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
koha-news.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
letter.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
manage-marc-import.pl staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
newHolidays.pl functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
overduerules.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
pdfViewer.pl tools subdir - Dates.pm integration and warnings fixes. 2007-12-04 18:01:30 -06:00
picture-upload.pl Bugfix: Handling cases where the image is the correct pixel dimensions 2008-04-11 16:54:54 -05:00
runreport.pl Fixing a hardcoded email address, changing to use the KohaAdminEmailAddress sys pref 2007-11-06 06:26:38 -06:00
scheduler.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
stage-marc-import.pl staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
tools-home.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
upload-file-progress.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
upload-file.pl granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
viewlog.pl Small template cleanup: display library name and cat description instead of codes 2008-04-22 17:54:19 -05:00