[Bug 37061] New: Allow to define what information is automatically transferred from biblio to a new component record
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Bug ID: 37061 Summary: Allow to define what information is automatically transferred from biblio to a new component record Change sponsored?: --- Product: Koha Version: 23.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: piia.semenoff@ouka.fi QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl The cataloguing of the music material is in accordance with the RDA. It would be nice to be able to define which information is automatically transferred from the biblio to its component record (more specifically to 773 fields) when you create a new component record. It’s not possible to define through the staff interface what information is transferred from the biblio to the component record, because there is no system preference for these configurations. Fields are hard coded in Koha's source code. (C4\Biblio.pm, prepare_host_field). The information should transfer from biblio to the component record like this: 001 -> 773w 020$a -> 773z 022$a -> 773x 028$b 028$a -> 773o 245$a 245$b 245$n 245$p 245$c -> 773t 264$a 264$b 264$c -> 773d 300$a 300$e -> 773h In this bug by component record I mean e.g. a song of a note or a song of an album. I'm not quite sure what is the right term to use in this case. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Johanna Räisä <johanna.raisa@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |johanna.raisa@koha-suomi.fi |ity.org | Status|NEW |Needs Signoff CC| |johanna.raisa@koha-suomi.fi --- Comment #1 from Johanna Räisä <johanna.raisa@koha-suomi.fi> --- Created attachment 167648 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167648&action=edit Bug 37061: allow to configure how is data copied from host to component parts This patch adds a new system preference to allow to configure how is data copied from host to component parts. The rules are defined in YAML format. If left empty, the default behavior is to copy the host data to the component parts as hard coded in the code. Test plan: 1) Apply the patch 2) Run updatedatabase.pl 3) Go to Administration -> Global system preferences 4) Search for PrepareHostField 5) Fill the rules in YAML format as in the example in the description 6) Save 7) Create a new child record 8) See that the data is copied from host to the component parts according to the rules Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Johanna Räisä <johanna.raisa@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Johanna Räisä <johanna.raisa@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167648|0 |1 is obsolete| | --- Comment #2 from Johanna Räisä <johanna.raisa@koha-suomi.fi> --- Created attachment 167683 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167683&action=edit Bug 37061: allow to configure how is data copied from host to component parts This patch adds a new system preference to allow to configure how is data copied from host to component parts. The rules are defined in YAML format. If left empty, the default behavior is to copy the host data to the component parts as hard coded in the code. Test plan: 1) Apply the patch 2) Run updatedatabase.pl 3) Go to Administration -> Global system preferences 4) Search for PrepareHostField 5) Fill the rules in YAML format as in the example in the description 6) Save 7) Create a new child record 8) See that the data is copied from host to the component parts according to the rules Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 --- Comment #3 from Olivier V <ovezina@inlibro.com> --- Created attachment 172001 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172001&action=edit Bug 37061: allow to configure how is data copied from host to component parts This patch adds a new system preference to allow to configure how is data copied from host to component parts. The rules are defined in YAML format. If left empty, the default behavior is to copy the host data to the component parts as hard coded in the code. Test plan: 1) Apply the patch 2) Run updatedatabase.pl 3) Go to Administration -> Global system preferences 4) Search for PrepareHostField 5) Fill the rules in YAML format as in the example in the description 6) Save 7) Create a new child record 8) See that the data is copied from host to the component parts according to the rules Sponsored-by: Koha-Suomi Oy Signed-off-by: Olivier V <olivier.vezina@inLibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Olivier V <ovezina@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ovezina@inlibro.com --- Comment #4 from Olivier V <ovezina@inlibro.com> --- Not sure if both of them needed to be signed off they seem pretty similar -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Olivier V <ovezina@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #5 from Olivier V <ovezina@inlibro.com> --- But everything seem to be working with only the second one -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 --- Comment #6 from Johanna Räisä <johanna.raisa@koha-suomi.fi> --- (In reply to Olivier Vezina from comment #5)
But everything seem to be working with only the second one
I probably have submitted the patch twice, since to me those are similar. I tried to look for a tool to removing the other patch but I couldn't find any. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Attachment #167683|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 --- Comment #7 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Currently I see no test coverage for prepare_host_field. Shouldn't some unit tests be added? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Johanna Räisä <johanna.raisa@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172001|0 |1 is obsolete| | --- Comment #8 from Johanna Räisä <johanna.raisa@koha-suomi.fi> --- Created attachment 181048 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181048&action=edit Bug 37061: allow to configure how is data copied from host to component parts This patch adds a new system preference to allow to configure how is data copied from host to component parts. The rules are defined in YAML format. If left empty, the default behavior is to copy the host data to the component parts as hard coded in the code. Test plan: 1) Apply the patch 2) Run updatedatabase.pl 3) Go to Administration -> Global system preferences 4) Search for PrepareHostField 5) Fill the rules in YAML format as in the example in the description 6) Save 7) Create a new child record 8) See that the data is copied from host to the component parts according to the rules 9) prove t/db_dependent/Biblio.t Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Johanna Räisä <johanna.raisa@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff Version|23.11 |Main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |34482 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34482 [Bug 34482] Improve MARC21 7xx linking fields in bibliographic records [Omnibus] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Lin Wei <lin-wei.li@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 --- Comment #9 from Lin Wei <lin-wei.li@inLibro.com> --- Created attachment 182302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182302&action=edit Bug 37061: allow to configure how is data copied from host to component parts This patch adds a new system preference to allow to configure how is data copied from host to component parts. The rules are defined in YAML format. If left empty, the default behavior is to copy the host data to the component parts as hard coded in the code. Test plan: 1) Apply the patch 2) Run updatedatabase.pl 3) Go to Administration -> Global system preferences 4) Search for PrepareHostField 5) Fill the rules in YAML format as in the example in the description 6) Save 7) Create a new child record 8) See that the data is copied from host to the component parts according to the rules 9) prove t/db_dependent/Biblio.t Sponsored-by: Koha-Suomi Oy Signed-off-by: Lin Wei Li <lin-wei.li@inLibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Lin Wei <lin-wei.li@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=21469 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk Attachment #181048|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |flyingendpaper@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply --- Comment #10 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Sorry guys, this will need moving Koha::Biblio->generate_marc_host_field as we removed the C4::Biblio::prepare_marc_host method now in the general cleanup. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org