From 06bd51276220daa8c50495b892e17ddf6c497dae Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 9 Oct 2012 13:14:17 -0400 Subject: [PATCH] TPAC: Avoid the "place holds on available" lists hole ... by ripping out the option entirely, naturally. Signed-off-by: Dan Scott --- .../src/templates_laurentian/opac/myopac/lists.tt2 | 333 +++++++++++++++++++++ .../templates_laurentian/opac/parts/anon_list.tt2 | 69 +++++ 2 files changed, 402 insertions(+) create mode 100644 Open-ILS/src/templates_laurentian/opac/myopac/lists.tt2 create mode 100644 Open-ILS/src/templates_laurentian/opac/parts/anon_list.tt2 diff --git a/Open-ILS/src/templates_laurentian/opac/myopac/lists.tt2 b/Open-ILS/src/templates_laurentian/opac/myopac/lists.tt2 new file mode 100644 index 0000000000..eba5521278 --- /dev/null +++ b/Open-ILS/src/templates_laurentian/opac/myopac/lists.tt2 @@ -0,0 +1,333 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; + WRAPPER "opac/parts/myopac/base.tt2"; + myopac_page = "lists" + limit = ctx.bookbags_limit; + offset = ctx.bookbags_offset; +%] +
+ + +
+

[% l('Create new list') %]

+ + + + + + + + + + +
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + + [% IF ctx.add_rec %] + + [% END %] + [% IF ctx.where_from %] + + [% END %] + + + + [% l('Sharing Help') %] + + +       + +
+ + + +
+
+ +

[% l("Your existing lists") %]

+ [% INCLUDE "opac/parts/anon_list.tt2" %] + [% IF ctx.bookbags.size %] +
+ [% l('Saved Lists') %] + [% IF limit < ctx.bookbag_count; %] + + [%- IF offset > 0 -%] + limit, offset => (offset - limit) + }) %]'>[% l('Previous') %] + [%- END; -%] + [%- IF (ctx.bookbag_count - offset) > limit; -%] + limit, offset => (offset + limit) + }) %]'>[% l('Next') %] + + [%- END; -%] + [% END %] +
+
+ +
+ [% FOR bbag IN ctx.bookbags %] +
+
+ [% 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 %]

+ [% IF bbag.description %]
[% bbag.description | html %]
[% END %] +
+ [% IF ctx.add_rec %] +
+
+ + + + [% IF ctx.where_from %] + + [% END %] + +
+
+ [% END %] +
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + [% IF bbag.pub != 't' %] + + + [% ELSE %] + + + [% END %] +
+
+
+
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+
+
+ + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+ [% setting = 'opac.default_list'; %] +
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + [% IF ctx.user_setting_map.$setting == bbag.id %] + + + [% ELSE %] + + + [% END %] +
+
+
+ [% IF bbag.pub == 't'; %] + [% l('RSS Feed') %] + [% END %] +
+ +
+
+ [% IF CGI.param("bbid") == bbag.id %] +
+
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2" params=['loc', 'query', 'qtype']; %] + [% INCLUDE "opac/parts/filtersort.tt2" + value=CGI.param('sort') mode='bookbag' %] + + +
+
+
+
+ + + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + + + + + + + + + +
+ + + + + [% l("Save changes to name or description?") %]
+ +
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + [% UNLESS bbag.items.size %] + + [% END %] + [% FOR item IN bbag.items; + rec_id = item.target_biblio_record_entry.id; + attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; + PROCESS get_marc_attrs args=attrs %] + + + + + + + [% IF CGI.param("edit_notes") == bbag.id %] + + [% ELSE %] + + [% END %] + + [% END %] + [% IF CGI.param("edit_notes") == bbag.id %] + + + + + [% END %] + +
+ + + + [% l('Title') %] + + [% l('Author(s)') %] + + [% l('Publication Date') %] + + [% l('Format') %] + + [% l('Notes') %] + [% IF CGI.param("edit_notes") != bbag.id %] + | [% l('Edit') %] + [% END %] + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+ [% l("This list contains no items.") %] +
+ + + [% attrs.title | html %] + + [% attrs.author | html %] + + [% attrs.pubdate | html %] + + [% attrs.format_label | html %] + + [% FOR note IN item.notes %] + + [% END %] + + + [% FOR note IN item.notes %] +
[% note.note | html %]
+ [% END %] +
+ [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + +
+
+ [% END %] + [% END %] +
+ [% END %] + + +[% |l %]Sharing a Bookbag means that the contents +of the Bookbag will be visible to others. +To see the public view of a shared Bookbag, +click on the Bookbag's name in the Bookbag list.[% END %] + +
+[% END %] diff --git a/Open-ILS/src/templates_laurentian/opac/parts/anon_list.tt2 b/Open-ILS/src/templates_laurentian/opac/parts/anon_list.tt2 new file mode 100644 index 0000000000..b075e83398 --- /dev/null +++ b/Open-ILS/src/templates_laurentian/opac/parts/anon_list.tt2 @@ -0,0 +1,69 @@ + [% IF ctx.mylist.size %] +
+
+ + [% INCLUDE "opac/parts/filtersort.tt2" mode='bookbag' + id="anonsort" name="anonsort" value=CGI.param("anonsort") %] + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+
+ +
+
+

[% l('Temporary List') %]

+ + + + + + + + + + [% FOR item IN ctx.mylist; + attrs = {marc_xml => ctx.mylist_marc_xml.$item}; + PROCESS get_marc_attrs args=attrs %] + + + + + + [% END %] + +
+ + [% l('Title') %][% l('Author(s)') %] + + + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + +
+ + [% attrs.title | html %][% attrs.author | html %]
+

+
+
+ [% END %] -- 2.11.0