[% PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; myopac_page = "lists" %]

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

[% l('Sharing Help') %]      

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

[% INCLUDE "opac/parts/anon_list.tt2" %] [% IF ctx.bookbags.size %]
[% FOR bbag IN ctx.bookbags %]
[% baseurl = ctx.opac_root _ '/myopac/lists'; IF bbag.id != CGI.param("id"); url = mkurl(baseurl,{id => bbag.id},['edit_notes','sort']); ltitle = l("Show items in list"); ELSE; url = mkurl(baseurl, {}, ['id', 'edit_notes', 'sort']); ltitle = l("Hide items in list"); END %]

[% bbag.name | html %]

[% IF bbag.description %]
[% bbag.description | html %]
[% END %]
[% IF bbag.pub != 't' %] [% ELSE %] [% END %]
[% IF bbag.pub == 't'; %] [% l('RSS Feed') %] [% END %]
[% IF bbag.pub == 't'; %] '0', bookbag => bbag.id} ) -%]'>[% l('HTML View') %] [% END %]
[% IF CGI.param("id") == bbag.id %]
[% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') mode='bookbag' %]
[% 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 %] [% ELSE %] [% END %] [% END %] [% IF CGI.param("edit_notes") == bbag.id %] [% END %]
[% l('Title') %] [% l('Author(s)') %] [% l('Notes') %] [% IF CGI.param("edit_notes") != bbag.id %] | [% l('Edit') %] [% END %]
[% l("This list contains no items.") %]
[% attrs.title | html %] [% attrs.author | html %] [% IF CGI.param("edit_notes") == bbag.id %] [% FOR note IN item.notes %] [% END %] [% FOR note IN item.notes %]
[% note.note | html %]
[% END %]
[% 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 %]