Bug 24744

Summary: "Note about the accompanying materials:" - different wording at checkout and checkin
Product: Koha Reporter: Klas Blomberg <klas.blomberg>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Screendumps

Description Klas Blomberg 2020-02-27 15:45:23 UTC
Created attachment 99707 [details]
Screendumps

Checkout
https://github.com/Koha-Community/Koha/blob/master/circ/circulation.pl 
Row #420ff 
has this code:
my $materials = $item->materials;
my $descriptions = Koha::AuthorisedValues->get_description_by_koha_field
({ frameworkcode => $biblio->frameworkcode, 
kohafield => 'items.materials', 
authorised_value => $materials });
$materials = $descriptions->{lib} // $materials;

Checkin
https://github.com/Koha-Community/Koha/blob/master/circ/returns.pl
Row #277ff
has this code:
my $materials = $item->materials;
my $descriptions = Koha::AuthorisedValues->get_description_by_koha_field
({frameworkcode => '', 
kohafield =>'items.materials', 
authorised_value => $materials });
$materials = $descriptions->{lib} // $materials;
		
This makes a difference if you assign an authorized value to 952$3 "Materials specified" in a bibliographic framework

At checkout it shows the description, e.g. "Bokpåse - åtta böcker"
At checkin it shows the authorized value, in this case "8"