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

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #175941|0                           |1
        is obsolete|                            |

--- Comment #89 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 176203
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=176203&action=edit
Bug 33268: Overlay rules don't work correctly when source is set to *

Fallback to overlay rules with wildcard filter if no match
found for exact filter match.

To test:
1. Administration => record overlay rules
2. Add this:
Module  Filter                     Tag Preset  Added Appended Removed Deleted
Source  Z39.50                     245 Protect Skip  Skip     Skip    Skip
Source  *                          300 Protect Skip  Skip     Skip    Skip
Source  Batch record modification  245 Protect Skip  Skip     Skip    Skip
3. Add MARC modification templates:
Update existing or add new field 245$a with value CATSCATSCATSCATS
Update existing or add new field 300$a with value CATSCATSCATSCATS
4. Find a record that has those fields (likely any record would)
5. Use batch record modification on the record
6. 300$a should have been catified (expected, that's the bug)
7. 245$a is preserved
8. Change the value of the 300$a to something else.
   Temporarly disable MARCOverlayRules to be able to do so. And reenable
   it.
9. Apply the patch, restart services
10. Use batch record modification on the record
11. 300$a should be preserved, cat protection should have worked
12. Run tests: prove t/db_dependent/Biblio/MarcOverlayRules.t
13. Celebrate! :D

Sponsored-by: Gothenburg University Library
Signed-off-by: David Nind <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
Edit: tidied inline (tcohen)
Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Jan Kissig <[email protected]>
Signed-off-by: Victor Grousset/tuxayo <[email protected]>
Signed-off-by: Martin Renvoize <[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