Bug 38795 - ERM : wrong mapping for publication_type when importing UNIMARC records
Summary: ERM : wrong mapping for publication_type when importing UNIMARC records
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 32782
Blocks:
  Show dependency treegraph
 
Reported: 2024-12-29 17:13 UTC by Mathieu Saby
Modified: 2024-12-29 17:13 UTC (History)
5 users (show)

See Also:
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 Mathieu Saby 2024-12-29 17:13:45 UTC
bug 32782 introduced a mapping for UNIMARC records imported as a list into ERM 

This line is problematic for 2 reasons
+    my $publication_type                = $label_pos67 eq 'am' ? 'monograph' : $label_pos67 eq 'as' ? 'serial' : '';


- the position 6 for electronic resource is "l", and not "a", but the habits of libraries and data providers are not always consistent
- "monograph" and "serial" are not defined in the authorized value for publication type (ERM_TITLE_PUBLICATION_TYPE)

I propose 
- to take only into account the 7th position of the label (m for ebooks, s for serial)
- to use standard values defined in the authorized value : "ebook" and "journal" (or to add "monograph" and "serial" in that AV, but that seems redundant)