]> git.koha-community.org Git - koha.git/commit
Bug 19693: (QA follow-up) Replace changed tag test
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 7 Oct 2022 08:41:20 +0000 (08:41 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 5 Dec 2022 22:58:01 +0000 (22:58 +0000)
commit90e4cdb752601d273aa1807a88330da29034305c
treeed6813f3aebf98d39d736ecc46de6f4dc0111868
parent3cf8c3881d86f44cc4c35d9572a7e119c5dcf399
Bug 19693: (QA follow-up) Replace changed tag test

The test
  $MARCfrom->field('1..', '2..'))[0]->tag ne ($MARCto->field('1..', '2..'))[0]->tag
is not completely consistent with following code in sub merge.
I decided to get the authtype code from the old record that comes
from Koha and should include the type.
Remaining changes refer to indentation/comments.

Test plan:
Run t/db_dependent/Authority/Merge.t
Note: The test actually could be extended a bit for mocking MARC
flavor, but needs some additional framework support to work.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d7d33744ba34ef95aa3845ca4160abdece4d0f7a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/AuthoritiesMarc.pm