]> git.koha-community.org Git - koha.git/commit
Bug 5202: merge authorities from the authority file and reservoir
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 11 May 2013 20:11:38 +0000 (16:11 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 10 Oct 2013 21:32:27 +0000 (21:32 +0000)
commitb5bd2b75865da040a44b2b48874da35b92e74cd5
tree2a4753720348264f18777a5dff102b14fbde426d
parent4d8b1ec7864837bfb139c547e6e461644b5f730d
Bug 5202: merge authorities from the authority file and reservoir

This patch gives Koha the ability to merge authority records using the
same interface used by bibliographic records, though slightly different
methods for selecting which records to merge. The two ways to select
records are as follows:

1) Records can be selected from authority search results by clicking
   the "Merge" link for two records.
2) Authority records can be merged from the reservoir by clicking the
   merge-related links in the Manage staged MARC batch screen.

To test:
1) Apply patch.
2) Do a search for an authority record that will turn up multiple
   identical records (or at least two records that you don't mind
   merging).
3) Click the "Merge" link for the first record.
4) Click the "Merge" link for the second record.
5) Choose which fields from which record you want to appear in the
   resulting record.
6) Confirm that those are the fields that exist in the resulting record.
7) Stage an authority record (for example, an authority record you
   saved from your catalog.
8) Search for a record to merge with it using the "Search for a record
   to merge in a new window" link.
9) Merge these records, confirming that the resulting record (after
   going through the entire merging process) matches your expectations.
10) Set up a matching rule for authorities, and export an authority from
    your catalog that will match based on that rule. For MARC21, the
    following is a good choice for a rule:
    Matching rule code:  AUTHPER
    Description:         Personal name main entry
    Match threshold:     999
    Record type:         Authority record
    [Match point 1:]
    Search index:   mainmainentry
    Score:          1000
    Tag:            100
    Subfields:      a
11) Stage the record you just exported, choosing the matching rule you
    just created.
12) Merge the record using the "Merge" link, confirming that the
    resulting record (after going through the entire merging process)
    matches your expectations.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Testing notes on last patch in series.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Authority.pm
Koha/Util/MARC.pm
authorities/merge.pl [new file with mode: 0755]
authorities/merge_ajax.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/merge.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
t/Koha_Util_MARC.t
t/db_dependent/Koha_Authority.t