[Koha-bugs] [Bug 24900] 'MARC modification templates' does not delete all fields if there is a condition in template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 03:04:44 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24900

Aleisha Amohia <aleisha at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #100993|0                           |1
        is obsolete|                            |

--- Comment #3 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 101665
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101665&action=edit
Bug 24900: Some fixes to how MARC modification template actions work

CASE 1: Delete field 020 if field 020$z exists
BROKEN BEHAVIOUR (before patch): 020$z field was deleted, even though we
                                 wanted all 020 fields to be deleted
EXPECTED BEHAVIOUR (corrected by patch): all 020 fields are deleted

CASE 2: Delete 1st field 020 if 651$z exists
BROKEN BEHAVIOUR (before patch): deletes the 2nd instance of 020 instead
                                 of 1st
EXPECTED BEHAVIOUR (corrected by patch): deletes the 1st instance of 020

CASE 3: Delete 1st field 020 if 020$z exists
BROKEN BEHAVIOUR (before patch): deletes the 3rd instance of 020 which
                                 contains subfield z
EXPECTED BEHAVIOUR (corrected by patch): deletes the 1st instance of 020

CASE 4: Delete 1st field 020 if 651$z matches Berlin. (must include '.')
BROKEN BEHAVIOUR (before patch): deletes the 2nd instance of 020
EXPECTED BEHAVIOUR (corrected by patch): deletes the 1st instance of 020

CASE 5: Delete 1st field 020 if 020$z matches 9781460708385
BROKEN BEHAVIOUR (before patch): deletes the 3rd instance of 020 which
                                 contains subfield z
EXPECTED BEHAVIOUR (corrected by patch): deletes the 1st instance of 020

Sponsored-by: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list