0ee3a414e8
Bug 9755 added a refactoring of records merge adding the include merge-record.inc. This include contains a block "mergejs" containing all JavaScript code that was in merge.tt. This patch exports this code into a js file. Translatable strings contained in this file are in merge-record-strings.inc. Test plan : - Put two records is a list - Go to this list and check the two records - Click on "Merge selected" - Click on next - Go to second source record - Click on a repeatable field => The field is added to destination record - Click on a subfield of a field existing in destination record => The subfield is added to destination record - Click on a non repeatable field existing in destination record => You get an alert and field is not added - Click on a subfield of a field not existing in destination record => You get an alert and subfield is not added - Click on Merge => Records are merged Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes tests and test plan, no regressions found. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
6 lines
No EOL
401 B
PHP
6 lines
No EOL
401 B
PHP
[%# transletable strings for merge-record.js %]
|
|
<script type="text/javascript">
|
|
var MSG_MERGEREC_ALREADY_EXISTS = _("The field is non-repeatable and already exists in the destination record. Therefore, you cannot add it.");
|
|
var MSG_MERGEREC_SUBFIELD_PRE = _("This subfield cannot be added: there is no");
|
|
var MSG_MERGEREC_SUBFIELD_POST = _("field in the destination record.");
|
|
</script> |