Lines 76-81
my $sql = '
Link Here
|
76 |
itemnumber, |
76 |
itemnumber, |
77 |
barcode, |
77 |
barcode, |
78 |
itemnotes, |
78 |
itemnotes, |
|
|
79 |
itemnotes_nonpublic, |
79 |
itemcallnumber, |
80 |
itemcallnumber, |
80 |
replacementprice, |
81 |
replacementprice, |
81 |
|
82 |
|
Lines 143-158
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
143 |
|
144 |
|
144 |
my $itemtype = C4::Koha::getitemtypeinfo( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
145 |
my $itemtype = C4::Koha::getitemtypeinfo( $item_level_itypes ? $c->{itype} : $c->{itemtype} ); |
145 |
my $checkout = { |
146 |
my $checkout = { |
146 |
DT_RowId => $c->{itemnumber} . '-' . $c->{borrowernumber}, |
147 |
DT_RowId => $c->{itemnumber} . '-' . $c->{borrowernumber}, |
147 |
title => $c->{title}, |
148 |
title => $c->{title}, |
148 |
author => $c->{author}, |
149 |
author => $c->{author}, |
149 |
barcode => $c->{barcode}, |
150 |
barcode => $c->{barcode}, |
150 |
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype}, |
151 |
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype}, |
151 |
itemtype_description => $itemtype->{translated_description}, |
152 |
itemtype_description => $itemtype->{translated_description}, |
152 |
location => $c->{location} ? GetAuthorisedValueByCode( 'LOC', $c->{location} ) : q{}, |
153 |
location => $c->{location} ? GetAuthorisedValueByCode( 'LOC', $c->{location} ) : q{}, |
153 |
itemnotes => $c->{itemnotes}, |
154 |
itemnotes => $c->{itemnotes}, |
154 |
branchcode => $c->{branchcode}, |
155 |
itemnotes_nonpublic => $c->{itemnotes_nonpublic}, |
155 |
branchname => $c->{branchname}, |
156 |
branchcode => $c->{branchcode}, |
|
|
157 |
branchname => $c->{branchname}, |
156 |
itemcallnumber => $c->{itemcallnumber} || q{}, |
158 |
itemcallnumber => $c->{itemcallnumber} || q{}, |
157 |
charge => $charge, |
159 |
charge => $charge, |
158 |
fine => $fine, |
160 |
fine => $fine, |
Lines 167-173
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
167 |
date_due => $c->{date_due}, |
169 |
date_due => $c->{date_due}, |
168 |
date_due_overdue => $c->{date_due_overdue} ? JSON::true : JSON::false, |
170 |
date_due_overdue => $c->{date_due_overdue} ? JSON::true : JSON::false, |
169 |
timestamp => $c->{timestamp}, |
171 |
timestamp => $c->{timestamp}, |
170 |
onsite_checkout => $c->{onsite_checkout}, |
172 |
onsite_checkout => $c->{onsite_checkout}, |
171 |
renewals_count => $renewals_count, |
173 |
renewals_count => $renewals_count, |
172 |
renewals_allowed => $renewals_allowed, |
174 |
renewals_allowed => $renewals_allowed, |
173 |
renewals_remaining => $renewals_remaining, |
175 |
renewals_remaining => $renewals_remaining, |
Lines 183-195
while ( my $c = $sth->fetchrow_hashref() ) {
Link Here
|
183 |
as_due_date => 1 |
185 |
as_due_date => 1 |
184 |
} |
186 |
} |
185 |
), |
187 |
), |
186 |
subtitle => GetRecordValue( |
188 |
subtitle => |
187 |
'subtitle', |
189 |
GetRecordValue( 'subtitle', GetMarcBiblio( $c->{biblionumber} ), GetFrameworkCode( $c->{biblionumber} ) ), |
188 |
GetMarcBiblio( $c->{biblionumber} ), |
190 |
lost => $c->{itemlost} ? GetAuthorisedValueByCode( 'LOST', $c->{itemlost} ) : undef, |
189 |
GetFrameworkCode( $c->{biblionumber} ) |
191 |
damaged => $c->{damaged} ? GetAuthorisedValueByCode( 'DAMAGED', $c->{damaged} ) : undef, |
190 |
), |
|
|
191 |
lost => $c->{itemlost} ? GetAuthorisedValueByCode( 'LOST', $c->{itemlost} ) : undef, |
192 |
damaged => $c->{damaged} ? GetAuthorisedValueByCode( 'DAMAGED', $c->{damaged} ) : undef, |
193 |
borrower => { |
192 |
borrower => { |
194 |
surname => $c->{surname}, |
193 |
surname => $c->{surname}, |
195 |
firstname => $c->{firstname}, |
194 |
firstname => $c->{firstname}, |
196 |
- |
|
|