[Bug 28491] New: field 003 not updated after import

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 28491] New: field 003 not updated after import

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28491

            Bug ID: 28491
           Summary: field 003 not updated after import
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: MARC Authority data support
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

I import some authority data from e.g. dnb.de, which contains:

<controlfield tag="001">11915725X</controlfield>
<controlfield tag="003">DE-101</controlfield>


After the import, the local authority data looks like

<controlfield tag="001">35</controlfield>
<controlfield tag="003">DE-101</controlfield>


So 001 now contains the internal Koha id (good), but 003 still points to DE-101
(i.e. dnb.de), which I think is bad, because if I look up the ID '35' in the
linked DB DE-101, I will now get a bad result.

I assume that 003 should be set to my MARCOrgCode


Looking at the code, I find (in C4::AuthoritiesMarc, AddAuthority, 568ff)

if (!$record->field('003')) {
   $record->insert_fields_ordered(
      MARC::Field->new('003', $marcorgcode),
   );
}

So this behavior seems intentional? If so, I still find it very unlogical and
buggy. I assume that both 001 and 003 should be overwritten with data pointing
to the current Koha instance, and the original 001/003 "archived" in 035 and/or
040

I could easily provide a patch that changes this behavior, but I'm not sure if
this would cause confusion / failing tests / etc.

Maybe add an option to allow a force-overwrite of 003?

Greeting,
Thomas

PS this seems slightly related to #25603

--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 28491] field 003 not updated after import

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28491

Katrin Fischer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Katrin Fischer <[hidden email]> ---
I am adding Marcel as I know he has been working some on the code we talk about
here.

My opinion would be to overwrite with MarcOrgCode or empty 003 when we add the
Koha number there.

--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 28491] field 003 not updated after import

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28491

--- Comment #2 from Marcel de Rooy <[hidden email]> ---
I understand your point. If we change 001, we should change 003 as well. But
note that we have a lot of discussion for years going on if we should change
001 at biblio level.
As you mentioned, the 003 is created for a new auth record but not for an
import.

LOC: Whenever the number in field 001 is changed, agencies must assure that the
MARC code in field 003 applies to the number found in the 001 field.

I am all for changing 003 here as well. But could imagine that others would
rather refrain from changing 001?

--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 28491] field 003 not updated after import

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28491

--- Comment #3 from Katrin Fischer <[hidden email]> ---

> I am all for changing 003 here as well. But could imagine that others would
> rather refrain from changing 001?

I usually would, but in this case it's already the default behaviour of the
authority import script :) So when we already change it, I think changing 003
as well just makes it 'right'.  Bibliographic records should be a separate
discussion I think.

--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
Reply | Threaded
Open this post in threaded view
|

[Bug 28491] Field 003 in authority records not updated after import

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28491

Katrin Fischer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|field 003 not updated after |Field 003 in authority
                   |import                      |records not updated after
                   |                            |import

--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[hidden email]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/