[Koha-bugs] [Bug 28231] MARC modification template "1st" vs "Every" bug?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 26 23:32:27 CEST 2021


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

--- Comment #1 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
I did some more experimenting

Delete 1st 151 x
if 151 x matches [BLANK]

    Expected: only the first $x will be deleted
    Result: both $x are deleted

Delete Every 151 x
if 151 x matches [BLANK]

    Expected: both $x will be deleted
    Result: both $x are deleted

Move 1st 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: one $x remaining and one $g with gggg
    Result: no $x, one $g with gggg

Move Every 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: one $g with gggg (? not sure about this? Should the $xRecensement
still be there because it doesn't match the RegEx?)
    Result: one $g with gggg

Copy 1st 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: two $x remaining, one new $g with gggg
    Result: two $x remaining, one new $g with gggg

Copy Every 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: two $x remaining, one new $g with gggg (I think? again, I'm not
sure if the RegEx has any effect on which $x is copied)
    Result: two $x remaining, one new $g with gggg

Copy and replace 1st 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: two $x and one $g with gggg
    Result: two $x and one $g with gggg

Copy and replace Every 151 x to 151 g RegEx \[BLANK\] / gggg /
if 151 x matches [BLANK]

    Expected: two $x and one $g with gggg
    Result: two $x and one $g with gggg

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


More information about the Koha-bugs mailing list