[% USE raw %] [% USE Asset %] [% PROCESS 'merge-record.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Cataloging › Merging records [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'authorities-search.inc' %]

Merging records

[% IF ( errors ) %] [% FOREACH error IN errors %]
[% IF error.code == 'WRONG_COUNT' %] Number of records provided for merging: [% error.value | html %]. Currently only 2 records can be merged at a time. [% ELSIF error.code == 'DESTRUCTIVE_MERGE' %] You cannot merge a record with itself. Please select two different authorities. [% ELSIF error.code == 'WRONG_FRAMEWORK' %] The Default framework cannot be used, or the framework does not exist. Please select another framework for merging. [% ELSIF error.code == 'EMPTY_MARC' %] Sorry, but we did not find any MARC tags in the reference record. [% ELSIF error.code == 'MISSING_RECORD' %] Sorry, but we did not find a record for number: [% error.value | html %]. [% ELSE %] [% error | html %] [% END %]
[% END %] [% ELSIF ( result ) %]

The merging was successful. Click here to see the merged record.

[% ELSIF ( choosereference ) %]

Please choose which record will be the reference for the merge. The record chosen as reference will be kept, and the other will be deleted.

Merge reference
  1. [% IF frameworkselect %]
  2. [% END %]
[% ELSE %]
[% PROCESS mergesource sourcerecords=records %]
[% PROCESS mergetarget %]
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'merge-record-strings.inc' %] [% INCLUDE 'authorities_js.inc' %] [% Asset.js("js/merge-record.js") | $raw %] [% INCLUDE 'merge-record-strings.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]