Bug 26546 - bulkmarcimport.pl should ignore MarcFieldFor* sysprefs
Summary: bulkmarcimport.pl should ignore MarcFieldFor* sysprefs
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal with 10 votes (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 21:44 UTC by Pablo AB
Modified: 2020-09-25 21:44 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo AB 2020-09-25 21:44:06 UTC
While importing with bulkmarcimport.pl, if some of MarcFieldFor* system preference had been set, those fields/subfields will be created, empty or with a "CLI CLI".

This happens regardless of the framework setup and potentially overwriting data from the imported record.

For e.g., if:

MarcFieldForCreatorId    "$borrowernumber"  901$l
MarcFieldForCreatorName  "$userfirstname $usersurname"  901$m
MarcFieldForModifierId   "$borrowernumber"  901$n
MarcFieldForModifierName "$userfirstname $usersurname"  901$o

INPUT:  901    $a BIBLO $b 00011605 $o GEORGE
OUTPUT: 901    $a BIBLO $b 00011605 $o CLI CLI $l  $m CLI CLI $n

In this case 901$o was overwritten.

The "CLI CLI" comes from the set_userenv call on Script.pm.

This can be seen just googling: "CLI CLI" inurl:"cgi-bin/koha"

Maybe related to Bug 24906.