</form>
<div class="bookbag-controls">
<big><strong>
- [% IF bbag.pub == 't' %]
- [% url = 'http://' _ ctx.hostname _ '/opac/extras/feed/bookbag/html-full/' _ bbag.id %]
- <a target='_blank' href='[% url %]'>[% bbag.name | html %]</a>
- [% 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 %]
+ <a title="[% ltitle %]" href="[% url %]">[% bbag.name | html %]</a></h2>
</strong></big>
</div>
<div class="bookbag-controls">
src="[% ctx.media_prefix %]/images/small-rss.png"/></a>
[% END %]
</div>
- <div class="clear-both pad-bottom-five"></div>
+ <div class="clear-both _pad-bottom-five"></div>
</div>
+
<form action="[% ctx.opac_root %]/myopac/list/update" method="POST">
<input type="hidden" name="list" value="[% bbag.id %]" />
+
+ [% IF CGI.param("bbid") == bbag.id %]
<table cellpadding='0' cellspacing='0' border='0'>
<thead id="acct_list_header">
<tr>
</td></tr>
[% 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 %]
<tr>
[% END %]
</tbody>
</table>
+ <br />
+ [% END %] <!-- specific bookbag contents -->
</form>
- <br /><br />
+
</div>
[% END %]
</div>