[% IF ctx.mylist.size %]

[% l('Basket') %]

[% INCLUDE "opac/parts/filtersort.tt2" mode='bookbag' id="anonsort" name="anonsort" value=CGI.param("anonsort") %] [%- INCLUDE "opac/parts/preserve_params.tt2"; %]
[%- INCLUDE "opac/parts/preserve_params.tt2"; %] [% IF CGI.param('cart_none_selected') %] [% l('No items were selected') %] [% END %]
[% 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)') %] [% l('Local Call Number') %]
[% attrs.title | html %] [% attrs.author | html %] [% copy = attrs.holdings.0; IF copy; copy_org = ctx.get_aou_by_shortname(copy.owner); FOR ctx_org IN [ctx.pref_ou, ctx.search_ou, ctx.home_ou, ctx.physical_loc]; NEXT UNLESS ctx_org; ctx_org = ctx.get_aou(ctx_org); IF ctx.org_within_scope(ctx_org, copy_org, ctx_org.ou_type.depth); l('[_1] ([_2])', copy.label, copy_org.name) | html; LAST; END; END; END; %]


[% END %]