[% USE raw %]
[% USE Koha %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'merge-record.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% t("Merging records") | html %]
› [% t("Authorities") | html %] › [% t("Koha") | html %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'authorities-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
Authorities
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Merging records
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
[% WRAPPER 'main-container.inc' wide_full => 1 %]
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. View 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.
[% ELSE %]
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/authorities.js") | $raw %]
[% Asset.js("js/merge-record.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]