Bug 34195

Summary: Import from List into ERM Title should warn you it is overwriting the record
Product: Koha Reporter: Jonathan Field <jonathan.field>
Component: ERMAssignee: Jonathan Druart <jonathan.druart>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: jeremy.evans, jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jonathan Field 2023-07-04 15:43:55 UTC
In ERM Local Titles (cgi-bin/koha/erm/eholdings/local/titles) if you import from a List and that list has full MARC records, the creation of the ERM titles uses the data it can extract from the MARC records but then overwrites the source title. This means you may actually loose data in your MARC record because some of the data is not mapped. 

We should either retain the full MARC infomation from the original record or at least warn the user that they could potentially loose MARC data.
Comment 1 Katrin Fischer 2023-07-08 12:14:44 UTC
I don't understand why this action would change the MARC record at all - can you explain? It certainly sounds like a bug.
Comment 2 Pedro Amorim 2023-10-24 14:44:17 UTC
(In reply to Katrin Fischer from comment #1)
> I don't understand why this action would change the MARC record at all - can
> you explain? It certainly sounds like a bug.

I half agree, I don't think it should update MARC fields that are absent from the KBART eholding local title, i.e. if you change the publication title in the eholding title, it should reflect to the biblio record linked to it, correct? But it should not strip all other existing MARC data in the linked biblio, as it currently does.

I opened bug 35115 before taking notice of this one and there's already WIP and discussion over there.

*** This bug has been marked as a duplicate of bug 35115 ***
Comment 3 Pedro Amorim 2023-10-24 14:56:50 UTC
(In reply to Pedro Amorim from comment #2)
> (In reply to Katrin Fischer from comment #1)
> > I don't understand why this action would change the MARC record at all - can
> > you explain? It certainly sounds like a bug.
> 
> I half agree, I don't think it should update MARC fields that are absent
> from the KBART eholding local title, i.e. if you change the publication
> title in the eholding title, it should reflect to the biblio record linked
> to it, correct? But it should not strip all other existing MARC data in the
> linked biblio, as it currently does.
> 
> I opened bug 35115 before taking notice of this one and there's already WIP
> and discussion over there.
> 
> *** This bug has been marked as a duplicate of bug 35115 ***

Ignore this comment, I mixed it up with a different (although somewhat related) bug 35095

Creating eholding local titles importing from a list of MARC records should not update the MARC records at all.