]> git.koha-community.org Git - koha.git/commit
Bug 9755: Refactor record merge functionality
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 6 Mar 2013 16:30:40 +0000 (11:30 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 23 Jul 2013 23:10:07 +0000 (23:10 +0000)
commit50fb4612ed573dd180c5e98e7d6e83c4265817f0
treebf488d7ac4708128d06501b1e3d12701d7a28146
parent7f075448b8e00596ece780cca654471eebf949a3
Bug 9755: Refactor record merge functionality

This patch refactors the merge record interface and code a little bit
in preparation for making it possible to merge authority records.

To test:
1) Apply patch.
2) Try merging two records:
    a) Create a list.
    b) Add two records you would like to (or be willing to) merge
       to said list.
    c) View said list.
    d) Check the checkboxes next to the two records you added.
    e) Click "Merge selected records."
    f) Choose a merge reference.
    g) Choose fields from each record that you want to keep.
    h) Click "Merge."
3) Confirm that your merged record has the fields and subfields you
   wanted.
4) Run the unit tests for the two files that were changed:
    prove t/Koha_Record.t t/db_dependent/Koha_Authority.t
5) Sign off.

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Authority.pm
Koha/Record.pm [new file with mode: 0644]
cataloguing/merge.pl
koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt
t/Koha_Record.t [new file with mode: 0755]