[% IF ctx.mfhd_summaries.size; %]
[% mfhd = { basic_holdings = l('Volumes'), basic_holdings_add = l('Additional Volume Information'), supplement_holdings = l('Supplements'), supplement_holdings_add = l('Additional Supplement Information'), index_holdings = l('Indexes'), index_holdings_add = l('Additional Index Information'), online = l('Online'), missing = l('Missing'), incomplete = l('Incomplete'), }; FOREACH serial IN ctx.mfhd_summaries; printed_mfhd_header = 0; FOREACH type IN mfhd.keys; NEXT UNLESS serial.$type.size; IF !printed_mfhd_header; %] [% printed_mfhd_header = 1; END; %] [% END; IF printed_mfhd_header; %] [% END; %] [% END %]
[% l('Holdings summary ([_1])', serial.location) %]
[% mfhd.$type %] [% FOR thing IN serial.$type; thing.join(", "); END %]
[% END %]