Koha/koha-tmpl/intranet-tmpl/prog/en/includes
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
..
acquisitions-history-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
acquisitions-menu.inc Language corrections (fixes Bug 2024) 2008-04-22 17:39:59 -05:00
acquisitions-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
acquisitions-toolbar.inc Change LateOrders to inclusive <=, s/supplier/vendor , s/parcel/shipment. 2008-04-01 06:37:00 -05:00
additem-menu.inc
admin-menu.inc Fixes for Bug 2067 (terminology consistency) 2008-04-30 06:09:26 -05:00
auth-finder-search.inc Tweaking display of search button in resident search form to address an issue described in Bug 1780. 2008-01-23 21:30:52 -06:00
authorities-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
authorities-toolbar.inc adding some missing _() for translator 2008-01-04 18:09:37 -06:00
background-job.inc bug 1816: improved AJAX file upload and background job progress meters 2008-02-18 19:32:04 -06:00
biblio-view-menu.inc Fixes for Bug 1721 (Modification Log link loses context) 2008-02-28 07:59:01 -06:00
bookfund-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
calendar.inc Calendar (js) tweaks: histsearch fixed, viewlog template updated 2008-01-09 14:50:15 -06:00
cat-menu.inc Warning: Big Commit. Fixing Virtual Shelves 2007-12-23 14:31:14 -06:00
cat-search.inc Correction to cat-search.inc to avoid focus-stealing problem; Change to detail.tmpl to play nice with moredetail.tmpl; Minor changes to search pages to allow greater flexibility with background customizations. 2008-04-17 05:52:49 -05:00
cat-toolbar.inc adding some strings to be parsed by translator tool 2008-02-29 09:05:38 -06:00
cataloging-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
cataloging-toolbar.inc Adding missing <!-- /TMPL_IF --> 2008-04-21 11:13:53 -05:00
checkin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
circ-menu.inc Minor markup changes, validation corrections. 2008-04-25 07:09:19 -05:00
circ-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
circ-toolbar.inc CAN_user_permission => CAN_user_permissions 2008-04-10 15:53:17 -05:00
cities-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
currencies-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
dictionary-toolbar.inc
doc-head-close-receipt.inc Add print slip to hold confirmation dialog. 2008-03-25 07:20:25 -05:00
doc-head-close.inc Fix for Bug 2015 ("subscription-renew button is disabled"), other markup corrections; Removing unused popup css declaration from doc-head-close; removing unused popup include file. 2008-04-22 17:39:44 -05:00
doc-head-open.inc add xml language entities 2008-01-05 02:59:01 -06:00
error-bottom.inc
error-top.inc Warning: Big Commit. Fixing Virtual Shelves 2007-12-23 14:31:14 -06:00
facets.inc fixes to search results list, ccl.properties tweak 2007-12-20 17:35:46 -06:00
favicon.ico
file-upload.inc bug 1816: improved AJAX file upload and background job progress meters 2008-02-18 19:32:04 -06:00
greybox.inc
guided-reports-view.inc
header.inc s/Catalogue/Search/ 2008-03-16 12:10:35 -05:00
help-bottom.inc Adding yuipath variable to help.pl, and doing some cleanup of help templates (standardizing structure, mostly, and correcting some nomenclature). 2008-01-09 14:50:20 -06:00
help-top.inc Adding yuipath variable to help.pl, and doing some cleanup of help templates (standardizing structure, mostly, and correcting some nomenclature). 2008-01-09 14:50:20 -06:00
hold-menu.inc
installer-doc-head-close.inc make h1 larger than h2 larger than h3 2007-12-14 12:12:41 -06:00
intranet-bottom.inc fixing bug 1754: Hide language chooser if only one translation is available 2008-03-17 21:28:31 -05:00
label-status.inc More work on patron card generation feature 2008-04-01 06:42:38 -05:00
labels-menu.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
letters-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
mainmenu.inc Warning: Big Commit. Fixing Virtual Shelves 2007-12-23 14:31:14 -06:00
members-menu.inc Cleanup for member entry: XHTML-compliance (close inputs, ids must match labels) and translator-friendliness (can't embed TMPL_IF inside tags); Cleanup of circ and members menus; Menu context flag for readingrec.pl; Correction to Auth.pm (updatecharge -> updatecharges) 2008-01-09 14:50:02 -06:00
members-toolbar.inc CAN_user_permission => CAN_user_permissions 2008-04-10 15:53:17 -05:00
page-numbers.inc
patron-search.inc Adding auto-focus to patrons resident search; Highlighting overdues count in patron list. 2008-04-10 02:59:28 -05:00
patron-toolbar.inc Add Local-use statistical patron category_type 2008-03-10 05:27:37 -05:00
patrons-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
popup-bottom.inc
printers-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
reports-menu.inc Fix for Bug 1853, Items not checked out label inconsistency 2008-02-20 13:01:32 -06:00
resort_form.inc Minor markup changes for translator-friendliness 2008-01-04 17:53:32 -06:00
roadtype-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
search_indexes.inc Updates to date indexing and search processing 2007-12-17 12:00:30 -06:00
serials-menu.inc
serials-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
serials-toolbar.inc Fix for Bug 2015 ("subscription-renew button is disabled"), other markup corrections; Removing unused popup css declaration from doc-head-close; removing unused popup include file. 2008-04-22 17:39:44 -05:00
stopwords-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
subtypes_unimarc.inc Translation end. 2007-12-20 18:36:40 -06:00
suggestions-add-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
sysprefs-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00
sysprefs-menu.inc Moving Tags tab into Enhanced Content to reduce the number 2008-04-22 18:20:52 -05:00
tools-item-action.inc staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
tools-labels-batches-toolbar.inc Minor change to fix button appearance. 2008-04-22 17:39:43 -05:00
tools-labels-toolbar.inc Labels update- print any marc field and add csv output. 2008-04-22 17:54:02 -05:00
tools-menu.inc granular permissions - updated Tools 2008-04-10 15:53:30 -05:00
tools-nomatch-action.inc staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
tools-overlay-action.inc staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
virtualshelves-toolbar.inc adding some strings to be parsed by translator tool 2008-02-29 09:05:38 -06:00
z3950-admin-search.inc Tweaking display of resident search form; Tweaking labels breakcrumbs; Formatting tools menu. 2008-04-08 08:37:05 -05:00