[Koha-bugs] [Bug 14957] Write protecting MARC fields based on source of import
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 31 11:59:53 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14957
David Gustafsson <glasklas at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #80972|0 |1
is obsolete| |
Attachment #80973|0 |1
is obsolete| |
Attachment #80974|0 |1
is obsolete| |
Attachment #80975|0 |1
is obsolete| |
Attachment #81179|0 |1
is obsolete| |
Attachment #81621|0 |1
is obsolete| |
--- Comment #121 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 81699
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81699&action=edit
Bug 14957 - Rule based permission for MARC fields
Add a rule based permission system for MARC field modifications.
Test plan:
1. Apply this patch.
2. Log in to staff client.
3. Enable new syspref MARCMergeRules.
4. Click the new link "MARC merge rules" in the "Catalog"
section of the Koha administration page.
5. Create a new rule:
Module: source, Filter: *, Tag: 245a, Preset: Protect.
6. Clicking "Edit" should allow you to edit corresponding rule.
7. Clicking "Delete" should remove corresponding rule after confirmation.
8. Selecting one or more rules followed by clicking "Delete
selected" should remove all selected rules after confirmation.
9. Try creating a rule with tag set to "**", the other options does
not matter. Verify that saving this rule produces an error
message complaining about invalid tag regular expression.
10. Try creating a rule with tag set to "008" (or other control
field) and set Appended: Append and Removed: Skip, the other
options does not matter. Verify that saving this rule produces
an error message complaining about invalid combination of actions
for control field.
11. With the 245a rule in step 5 in place, edit a bibliographic record,
change 245a (which should be Title for MARC21) and save.
12. Verify that the changes has not been saved.
13. Create a new rule:
Module: source, Filter: intranet, Tag: 245a, Preset: Overwrite.
14. Repeat step 12, and verify that the changes has now been saved.
15. Run tests in t/db_dependent/Biblio/MarcMergeRules.t and very
that all tests pass.
Sponsored-by: Halland County Library
Sponsored-by: Catalyst IT
Sponsored-by: Gothenbug University Library
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list