Bug 26371 - Prevent MARC tags from import when using Z39.50
Summary: Prevent MARC tags from import when using Z39.50
Status: RESOLVED DUPLICATE of bug 17485
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 19.11
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-03 16:10 UTC by Barbara Johnson
Modified: 2020-10-19 00:58 UTC (History)
3 users (show)

See Also:
GIT URL:
Change sponsored?: ---
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 Barbara Johnson 2020-09-03 16:10:32 UTC
We get brief bib records when we order from our vendor.  When the item is received we overlay the brief bib with a full MARC record via Z39.50.  Sometimes the incoming record has tags that we do not want in our bibs (local 9XX tags, 852, local 59x notes, etc.)  We'd like a way to prevent those tags from being imported instead of having to delete them from every incoming record.
Comment 1 Katrin Fischer 2020-09-03 20:08:48 UTC
If you aren't using the field within your library. you could also delete it from the frameworks. That will automatically delete the tags when you save (some say it's a bug, other a feature).

For Z39.50 creating an XSL script to do this should also work. This is an existing configuration option in the Z39.50 server configuration. Currently we have some sample scripts, you can just add and try out, see here:
https://koha-community.org/manual/20.05/en/html/administration.html#add-a-z39-50-target

Another thing that goes somewhat in that direction is: 
Bug 14957 - Write protecting MARC fields based on source of import
Comment 2 David Cook 2020-09-04 05:02:38 UTC
(In reply to Katrin Fischer from comment #1)
> If you aren't using the field within your library. you could also delete it
> from the frameworks. That will automatically delete the tags when you save
> (some say it's a bug, other a feature).
> 

I think I'll always call that a bug ;).

So I'd advocate for the XSLT approach.
Comment 3 Marcel de Rooy 2020-09-04 06:00:15 UTC
So this report can be closed ?
Comment 4 David Cook 2020-09-04 06:29:34 UTC
(In reply to Marcel de Rooy from comment #3)
> So this report can be closed ?

+1
Comment 5 Barbara Johnson 2020-09-04 18:57:44 UTC
(In reply to Katrin Fischer from comment #1)
> If you aren't using the field within your library. you could also delete it
> from the frameworks. That will automatically delete the tags when you save
> (some say it's a bug, other a feature).
> 
> For Z39.50 creating an XSL script to do this should also work. This is an
> existing configuration option in the Z39.50 server configuration. Currently
> we have some sample scripts, you can just add and try out, see here:
> https://koha-community.org/manual/20.05/en/html/administration.html#add-a-
> z39-50-target
> 
> Another thing that goes somewhat in that direction is: 
> Bug 14957 - Write protecting MARC fields based on source of import

Thanks so much for your suggestions and I am investigating the XSL scripts.  Bug 14957 looks exciting too.  Just FYI - I was excited to try removing an unused field from the framework but it only worked when creating a new bib record via Z39.50 on addbooks.pl.  It didn't work on editor.pl when using Z39.50 to overlay a bib record by using the substitute button. So that's seems like a whole different bug.
Comment 6 Katrin Fischer 2020-10-19 00:58:15 UTC
Hi Barbara, I think the XSL or bug 17485 could fix your issue. 

I am deduplicating this with bug 17485 (using MARC modification templates on import) that I think would give a good base for these kind of operations without having to use XSL that requires more technical knowledge.

*** This bug has been marked as a duplicate of bug 17485 ***