Update holdings sort to sort by items.enumchron if there's no serial record and the biblio.serial flag is set.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2008-07-23 15:04:19 -05:00 committed by Joshua Ferraro
parent e78c7a5584
commit 0411957f73

View file

@ -1261,7 +1261,7 @@ sub GetItemsInfo {
}
$sth->finish;
if($serial) {
return( sort { $b->{'publisheddate'} cmp $a->{'publisheddate'} } @results );
return( sort { ($b->{'publisheddate'} || $b->{'enumchron'}) cmp ($a->{'publisheddate'} || $a->{'enumchron'}) } @results );
} else {
return (@results);
}