https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37061 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|johanna.raisa@koha-suomi.fi |martin.renvoize@openfifth.c | |o.uk --- Comment #21 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Hi all, Following my last comment, here is a working proof of concept for this, to try out. These patches replace the earlier one, which no longer applied. What it does: the 773 (461 for UNIMARC) of a new component part is still generated by Koha from the host record, but the data can now be changed on a new page, Cataloging > Link fields, with the permission of the MARC modification templates. The page shows what is generated for each subfield, and for a record you pick, the default and the result side by side. An override sets a subfield to a value built from the host, for example {245a|nonfiling|trim|ucfirst} or {300a} {300e}, optionally depending on a field of the host. The subfields that identify the host ($w, $7, and with the easy analytics workflow $0, $9 and the barcode in $o) are always generated by Koha and cannot be overridden, so the linking of components and hosts keeps working whatever is configured. It is built on the MARC modification templates, which gain a donor record (the host) separate from the record being built, and values interpolated from the donor. To test: apply the patches, run updatedatabase.pl, go to Cataloging > Link fields, add an override (for example subfield h, value {300a} {300e}), look at the record preview, then use "New child record" on that host. I suggest splitting this when it goes further: (1) the donor record and interpolation in SimpleMARC and the templates, (2) the new column, the template of the link field and its use when the link field is generated, (3) the page. Tests are included, with a Cypress test for the page. Still open: seeing the result of an override before saving it, other link fields than the 773 and 461, and the wording, so feedback is welcome. -- You are receiving this mail because: You are watching all bug changes.