biblio.part_number,
biblio.part_name,
biblio.author,
+ biblioitems.editionstatement,
count(DISTINCT items.itemnumber) as icount,
count(DISTINCT reserves.borrowernumber) as rcount,
borrowers.firstname,
while ( my $data = $sth->fetchrow_hashref ) {
push(
@reservedata, {
- reservedate => $data->{l_reservedate},
- firstname => $data->{firstname} || '',
- surname => $data->{surname},
- title => $data->{title},
- subtitle => $data->{subtitle},
- medium => $data->{medium},
- part_number => $data->{part_number},
- part_name => $data->{part_name},
- author => $data->{author},
- borrowernumber => $data->{borrowernumber},
- biblionumber => $data->{biblionumber},
- holdingbranches => [split('\|', $data->{l_holdingbranch})],
- branch => $data->{l_branch},
- itemcallnumber => [split('\|', $data->{l_itemcallnumber})],
- enumchron => [split('\|', $data->{l_enumchron})],
- copyno => [split('\|', $data->{l_copynumber})],
- count => $data->{icount},
- rcount => $data->{rcount},
- pullcount => $data->{icount} <= $data->{rcount} ? $data->{icount} : $data->{rcount},
- itemTypes => [split('\|', $data->{l_item_type})],
- locations => [split('\|', $data->{l_location})],
- reserve_id => $data->{reserve_id},
- holdingbranch => $data->{holdingbranch},
- homebranch => $data->{homebranch},
- itemnumber => $data->{itemnumber},
+ reservedate => $data->{l_reservedate},
+ firstname => $data->{firstname} || '',
+ surname => $data->{surname},
+ title => $data->{title},
+ editionstatement => $data->{editionstatement},
+ subtitle => $data->{subtitle},
+ medium => $data->{medium},
+ part_number => $data->{part_number},
+ part_name => $data->{part_name},
+ author => $data->{author},
+ borrowernumber => $data->{borrowernumber},
+ biblionumber => $data->{biblionumber},
+ holdingbranches => [split('\|', $data->{l_holdingbranch})],
+ branch => $data->{l_branch},
+ itemcallnumber => [split('\|', $data->{l_itemcallnumber})],
+ enumchron => [split('\|', $data->{l_enumchron})],
+ copyno => [split('\|', $data->{l_copynumber})],
+ count => $data->{icount},
+ rcount => $data->{rcount},
+ pullcount => $data->{icount} <= $data->{rcount} ? $data->{icount} : $data->{rcount},
+ itemTypes => [split('\|', $data->{l_item_type})],
+ locations => [split('\|', $data->{l_location})],
+ reserve_id => $data->{reserve_id},
+ holdingbranch => $data->{holdingbranch},
+ homebranch => $data->{homebranch},
+ itemnumber => $data->{itemnumber},
}
);
}