From 9f378f7edad9a740c8cb8ff326212af9c0aa5ae9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 12 Jun 2012 16:32:36 -0400 Subject: [PATCH] kcls / tpac 2.2 : list UI repairs Updated basic display elements to match community version. In particular, show list contents for selected list only. Also merge in change from "id" to "bbid" for bookbag CGI passing. Signed-off-by: Bill Erickson --- Open-ILS/src/templates_kcls/opac/myopac/lists.tt2 | 26 +++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/templates_kcls/opac/myopac/lists.tt2 b/Open-ILS/src/templates_kcls/opac/myopac/lists.tt2 index 32299a12fb..f932eef0f2 100644 --- a/Open-ILS/src/templates_kcls/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates_kcls/opac/myopac/lists.tt2 @@ -78,12 +78,15 @@
- [% IF bbag.pub == 't' %] - [% url = 'http://' _ ctx.hostname _ '/opac/extras/feed/bookbag/html-full/' _ bbag.id %] - [% bbag.name | html %] - [% ELSE %] - [% bbag.name | html %] - [% END %] + [% baseurl = ctx.opac_root _ '/myopac/lists'; + IF bbag.id != CGI.param("bbid"); + url = mkurl(baseurl, {bbid => bbag.id}, ['edit_notes','sort']); + ltitle = l("Show items in list"); + ELSE; + url = mkurl(baseurl, {}, ['bbid', 'edit_notes', 'sort']); + ltitle = l("Hide items in list"); + END %] + [% bbag.name | html %]
@@ -93,10 +96,13 @@ src="[% ctx.media_prefix %]/images/small-rss.png"/> [% END %]
-
+
+
+ + [% IF CGI.param("bbid") == bbag.id %] @@ -127,7 +133,7 @@ [% END %] [% FOR item IN bbag.items; - rec_id = item.target_biblio_record_entry; + rec_id = item.target_biblio_record_entry.id; attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; PROCESS get_marc_attrs args=attrs %] @@ -147,8 +153,10 @@ [% END %]
+
+ [% END %]
-

+ [% END %] -- 2.11.0