[Koha-bugs] [Bug 6657] Making 999 visible in framework duplicates 999 entry and affects index

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 12 13:33:28 CET 2016


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

--- Comment #18 from Frédéric Demians <frederic at tamil.fr> ---
(In reply to Jonathan Druart from comment #17)
> Comment on attachment 46517 [details] [review]
> Bug 6657: Follow-up to fix error on authority creation
> 
> Review of attachment 46517 [details] [review]:
> -----------------------------------------------------------------
> 
> ::: C4/Biblio.pm
> @@ +2541,5 @@
> >  
> >              if ( $tag < 10 ) {                              # no code for theses fields
> >                                                              # in MARC editor, 000 contains the leader.
> > +                if ( $isbiblio && $tag == $biblionumbertagfield ) {
> > +                    $i += 4;
> 
> Could you explain this line please?

In @params array, for a control field (tag < 10), there is 4 entries. For
example:

tag_001_indicator1_816115
tag_001_indicator2_816115
tag_001_code_00_816115_723352
tag_001_subfield_00_816115_723352

So $i += 4 is done before next in order to move to the next field in the
@params array.

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


More information about the Koha-bugs mailing list