[open-ils-commits] [GIT] Evergreen ILS branch master updated. 9df73cf0035b9f9f804cdab74719bad5bdc1a2d2
Evergreen Git
git at git.evergreen-ils.org
Fri Oct 21 17:36:23 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 9df73cf0035b9f9f804cdab74719bad5bdc1a2d2 (commit)
from 754b20944c0c54a644c6af120ff69acad5cbb126 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9df73cf0035b9f9f804cdab74719bad5bdc1a2d2
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Wed Oct 19 17:53:58 2011 -0400
Tiny bookbag improvements
Bookbag feed item sort order now defined
Bookbag list sort order on the "My Lists" page is now less agressively
propagated
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
index 9a36347..f47ad27 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
@@ -1013,10 +1013,13 @@ sub bookbag_feed {
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,
diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2
index c852364..76c9e5b 100644
--- a/Open-ILS/src/templates/opac/myopac/lists.tt2
+++ b/Open-ILS/src/templates/opac/myopac/lists.tt2
@@ -73,10 +73,10 @@
<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>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm | 5 ++++-
Open-ILS/src/templates/opac/myopac/lists.tt2 | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list