Lines 104-109
my $sql = '
Link Here
|
104 |
items.damaged, |
104 |
items.damaged, |
105 |
items.location, |
105 |
items.location, |
106 |
items.enumchron, |
106 |
items.enumchron, |
|
|
107 |
items.materials, |
107 |
|
108 |
|
108 |
DATEDIFF( issues.issuedate, CURRENT_DATE() ) AS not_issued_today, |
109 |
DATEDIFF( issues.issuedate, CURRENT_DATE() ) AS not_issued_today, |
109 |
|
110 |
|
Lines 139-144
$sth->execute(@parameters);
Link Here
|
139 |
|
140 |
|
140 |
my $item_level_itypes = C4::Context->preference('item-level_itypes'); |
141 |
my $item_level_itypes = C4::Context->preference('item-level_itypes'); |
141 |
my $claims_returned_lost_value = C4::Context->preference('ClaimReturnedLostValue'); |
142 |
my $claims_returned_lost_value = C4::Context->preference('ClaimReturnedLostValue'); |
|
|
143 |
my $confirm_parts_required = C4::Context->preference("CircConfirmItemParts"); |
142 |
|
144 |
|
143 |
my $itemtypes = { map { $_->{itemtype} => $_->{translated_description} } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
145 |
my $itemtypes = { map { $_->{itemtype} => $_->{translated_description} } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
144 |
|
146 |
|
Lines 194-199
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
194 |
{ kohafield => 'items.damaged', authorised_value => $c->{damaged} } ); |
196 |
{ kohafield => 'items.damaged', authorised_value => $c->{damaged} } ); |
195 |
$damaged = $av->{lib} ? $av->{lib} : ''; |
197 |
$damaged = $av->{lib} ? $av->{lib} : ''; |
196 |
} |
198 |
} |
|
|
199 |
my $materials; |
200 |
if ( $c->{materials} && $confirm_parts_required ) { |
201 |
my $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => '', kohafield =>'items.materials', authorised_value => $c->{materials} }); |
202 |
$materials = $descriptions->{lib} // $c->{materials}; |
203 |
} |
197 |
my @subtitles = split(/ \| /, $c->{'subtitle'} // '' ); |
204 |
my @subtitles = split(/ \| /, $c->{'subtitle'} // '' ); |
198 |
my $checkout = { |
205 |
my $checkout = { |
199 |
DT_RowId => $c->{itemnumber} . '-' . $c->{borrowernumber}, |
206 |
DT_RowId => $c->{itemnumber} . '-' . $c->{borrowernumber}, |
Lines 256-261
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
256 |
lost => $lost, |
263 |
lost => $lost, |
257 |
claims_returned => $claims_returned, |
264 |
claims_returned => $claims_returned, |
258 |
damaged => $damaged, |
265 |
damaged => $damaged, |
|
|
266 |
materials => $materials, |
259 |
borrower => { |
267 |
borrower => { |
260 |
surname => $c->{surname}, |
268 |
surname => $c->{surname}, |
261 |
firstname => $c->{firstname}, |
269 |
firstname => $c->{firstname}, |
262 |
- |
|
|