Bug 17913: Remove possible duplicates in strict merge mode
commitede08d725e56cd34bd2f1aa4ca87fa837cc01580
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 17 Jan 2017 09:09:40 +0000 (17 10:09 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:55:12 +0000 (20 13:55 +0000)
treea2ba5c4cd95b6c25dc1f4c125c19da137cd86524
parent681ae8430e60fd0c97ea0652b02ee3daf849ed5d
Bug 17913: Remove possible duplicates in strict merge mode

Since strict mode does not allow additional subfields that would make
identical fields linked to the same authority different, there is no
need to keep them while merging.

We achieve this goal by simply:
[1] Count the number of same fields linked to mergefrom in strict mode to
    eliminate duplicates.
[2] Replaces the if-statement on auth_number by a next. (Tidy follows.)

Test plan:
Run t/db_dependent/Authorities/Merge.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/AuthoritiesMarc.pm
t/db_dependent/Authorities/Merge.t