Bug 28669 - Marc field 942 is overwritten when importing a new record
Summary: Marc field 942 is overwritten when importing a new record
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P2 major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-06 11:20 UTC by Klas Blomberg
Modified: 2023-06-08 22:26 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klas Blomberg 2021-07-06 11:20:13 UTC
Marc field 942 is overwritten when importing catalogue records via Z39.50 or Staged Marc records management.

Overwritten normally means deleted as union catalogues doesn't supply Koha-specific fields.

The information in 942 is often quite crucial for getting the system to work correctly
Comment 1 George Veranis 2021-10-19 14:47:45 UTC
When import record through Z39.50 you can specify by using xsl files which fields do you want to replace/copy to your record. Did you try that ? 
Also for Staged Marc records, you can also apply the rules either for import either for replace. 
Could you please provide a better example why you believe that is a major bug ?
Comment 2 Katrin Fischer 2021-10-19 20:42:15 UTC
(In reply to George Veranis from comment #1)
> When import record through Z39.50 you can specify by using xsl files which
> fields do you want to replace/copy to your record. Did you try that ? 
> Also for Staged Marc records, you can also apply the rules either for import
> either for replace. 
> Could you please provide a better example why you believe that is a major
> bug ?

Hi George,

Hm, I think that's not right, unless I missed a trick for a long time. Afaik the XSLT work on the incoming record, I don't think you have access to the existing one. You can only overwrite completely or not overwrite. Protecting fields is not possible to my knowledge.

See also bug 14957.

As this never worked, we could argue it's not major... but it's a major missing feature anyway.
Comment 3 Klas Blomberg 2022-10-25 13:31:04 UTC
This is finally solved with Marc overlay rules