|
Lines 108-126
output_and_exit( $query, $cookie, $template, 'unknown_biblio')
Link Here
|
| 108 |
unless $biblio && $record; |
108 |
unless $biblio && $record; |
| 109 |
|
109 |
|
| 110 |
my $fw = GetFrameworkCode($biblionumber); |
110 |
my $fw = GetFrameworkCode($biblionumber); |
| 111 |
my $all_items = $biblio->items( |
111 |
my $all_items = $biblio->items->search_ordered; |
| 112 |
{}, |
112 |
|
| 113 |
{ |
|
|
| 114 |
# FIXME A different order is expected if at least one items.serial is true |
| 115 |
order_by => [ |
| 116 |
'homebranch.branchname', |
| 117 |
'me.enumchron', |
| 118 |
\"LDAP( me.copynumber, 8, '0' )", |
| 119 |
-asc => 'me.dateacessioned' |
| 120 |
], |
| 121 |
join => ['homebranch'] |
| 122 |
} |
| 123 |
); |
| 124 |
my @items; |
113 |
my @items; |
| 125 |
my $patron = Koha::Patrons->find( $loggedinuser ); |
114 |
my $patron = Koha::Patrons->find( $loggedinuser ); |
| 126 |
while ( my $item = $all_items->next ) { |
115 |
while ( my $item = $all_items->next ) { |
| 127 |
- |
|
|