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

--- Comment #61 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 198636
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198636&action=edit
Bug 28915: Add control field support to Koha::SimpleMARC::update_field()

Before this patch, control fields were not modifiable using this subroutine.

Control fields use character positions instead of subfields. When modifying
control fields, this patch makes the subroutine's parameter "subfield" to
indicate
a character position. An example

Koha::SimpleMARC::update_field({
  record => $record,
  field  => '008',
  subfield => '2',
  values => [09],
});

changes field 008 starting from character position 2 to contain values "09".
This replaces char pos 2 with "0", and char pos 3 with "9".

To test:
1. prove t/SimpleMARC.t

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Andrew Fuerste Henry <[email protected]>
Signed-off-by: Anneli Österman <[email protected]>
Signed-off-by: Andrew Fuerste Henry <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to