[Koha-bugs] [Bug 12541] New: Marc modification template - empty field

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 8 10:26:40 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12541

            Bug ID: 12541
           Summary: Marc modification template - empty field
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Tools
          Assignee: gmcharlt at gmail.com
          Reporter: jonathan.druart at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

Paola found the following bug on testing bug 11395 comment 33:

ERROR on batch_record_modification.pl [I've checked only "Preview MARC"]:
case of repeteable subfield [x] in repeteable fields [650]:

My biblio record had 3 fields 650, each one had 3 $x:
650  0 ......
       _x1-650 x 1 Digital techniques 1
       _xfirst 650, second $x
       _x1-650 x 3 Digital techniques 3
650  0 ........
       _x2-650 x 1 Digital techniques 1
       _xsecond 650, second $x
       _x2-650 x 3 Digital techniques 3
650  0 ......
       _x3-650 x 1 Digital techniques 1
       _xthird 650, second $x
       _x3-650 x 3 Digital techniques 3

I wanted to delete only the second occurrence of $x, only in the second
occurrence of 650 field. So my action was:
(A) Delete field 650$x if 650$x matches RegEx m/ ^second 650 / 

On preview MARC the result is not what I wanted, but:
650  0 ...
       _x1-650 x 1 Digital techniques 1
       _xfirst 650, second $x
       _x1-650 x 3 Digital techniques 3
650  0 ....
650  0 ....
       _x3-650 x 1 Digital techniques 1
       _xthird 650, second $x
       _x3-650 x 3 Digital techniques 3

Then I've tried another action, selecting the "first" option:
B) Delete 1st field 650$x if 650$x matches RegEx m/ ^second 650 / 
but the result remained the same as for "All" (A).

Neither the 2 negative forms gave me what I wanted:
C) Delete field 650$x unless 650$x does not match RegEx m/ ^second 650 /
D) Delete 1st field 650$x unless 650$x does not match RegEx m/ ^second 650 /

Similar behaviours occurred in Copy, Update and Move cases.

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


More information about the Koha-bugs mailing list