Bug 10650 - export merge-record.inc javascript into a file
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Fri, 26 Jul 2013 13:54:45 +0000 (15:54 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Sep 2013 16:17:34 +0000 (16:17 +0000)
commit0ee3a414e8514dd0bade25dd894a79d6b4f88713
tree0f2c4786506c3d0c71f3a7f2c606fda332ded9b5
parent94868f61c4c395f8393d34862a99609247f6dd73
Bug 10650 - export merge-record.inc javascript into a file

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>
koha-tmpl/intranet-tmpl/prog/en/includes/merge-record-strings.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/merge-record.inc
koha-tmpl/intranet-tmpl/prog/en/js/merge-record.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt