[Koha-bugs] [Bug 11319] Marc modification templates improvements
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 3 10:08:43 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11319
--- Comment #16 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 25753
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25753&action=edit
Bug 11319: Add the field management for Koha::SimpleMARC
Currently the Koha::SimpleMARC module call a "field" a "subfield".
And the way to manage field is not implemented for all routines.
This patch does not modify the API. The routine's names are kept. It
just creates 2 privates routines for each action (e.g. delete_field
will call _delete_field if the action affects field and _delete_subfield
if the action affects subfields).
Before this patch the move action was authorised by the interface but
caused an error if executed.
Note: I don't see the meaning for the add/update action if no subfield
is given. So the call without subfield raises an error.
Test plan:
- apply all patches
- create or modify an existent template
- try at least the correct behavior for the following actions:
* delete subfield and field
* add new subfield to an existing field
* add new subfield to an nonexisting field
* move a subfield
* move an entire field
* copy a subfield
* copy an entire field
- import a biblio and use this template
- verify the imported biblio matches actions defined.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list