[Koha-bugs] [Bug 21559] Rules for automatic framework codes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 18 07:01:29 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21559
paxed <pasi.kallinen at joensuu.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #80587|0 |1
is obsolete| |
--- Comment #6 from paxed <pasi.kallinen at joensuu.fi> ---
Created attachment 80798
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80798&action=edit
Bug 21559: Rules for automatic framework codes
Allow setting rules in a system preference, what framework code should
be automatically set for biblio, based on the MARC record fields.
Does not affect anything if the MarcToFrameworkcodeAutoconvert
system preference rules aren't used. The "Default" framework is
always overridden, if the rules match, but some other framework
chosen by you is always used.
Test plan:
----------
0) Apply patch, apply the atomicupdate, etc.
1) Go to cataloguing, and import a record without choosing a framework.
note how the framework is set to "Default".
2) Bulkmarcimport some records. Check the framework codes for the
imported records - they're all "default".
3) Set the following rules in MarcToFrameworkcodeAutoconvert syspref:
- 000/06:
a: BKS
c: SR
m: CF
This rule sets framework code to 'BKS' if 000/06 is 'a', etc.
4) Repeat 1 and 2, the frameworkcodes should be something else than
default, if the record 000/06 was one of 'a', 'c', or 'm'.
5) Go to cataloguing, and import a record, but choose some specific
framework - note how the framework you chose is kept, even if
the record would match the syspref rules.
6) Repeat 5, but create a new record from scratch. Framework you chose
should override the syspref rules.
7) Bulkmarcimport some record, but give the framework-parameter. The
framework you chose should override the syspref rules.
8) prove t/Biblio/AutoFrameworkcode.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list