return 302;
}
+ # last created first
+ my @sorted_bucket_items = sort { $b->create_time cmp $a->create_time } @{ $bucket->items };
+
my $feed = create_record_feed(
'record',
$type,
- [ map { $_->target_biblio_record_entry } @{ $bucket->items } ],
+ [ map { $_->target_biblio_record_entry } @sorted_bucket_items ],
$unapi,
$org_unit->[0]->shortname,
undef,
<div class="bookbag-controls most">
[% baseurl = ctx.opac_root _ '/myopac/lists';
IF bbag.id != CGI.param("id");
- url = mkurl(baseurl, {id => bbag.id}, ['edit_notes']);
+ url = mkurl(baseurl,{id => bbag.id},['edit_notes','sort']);
ltitle = l("Show items in list");
ELSE;
- url = mkurl(baseurl, {}, ['id', 'edit_notes']);
+ url = mkurl(baseurl, {}, ['id', 'edit_notes', 'sort']);
ltitle = l("Hide items in list");
END %]
<h2 class="bookbag-name"><a title="[% ltitle %]" href="[% url %]">[% bbag.name | html %]</a></h2>