]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/record/issues-mfhd.tt2
ced0ec6834e5a6abadd65b08e14a19213c05ae90
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / record / issues-mfhd.tt2
1 [% IF ctx.mfhd_summaries.size; %]
2     <div class="rdetail-mfhd-holdings">
3         <table><tbody>
4 [%
5         mfhd = {
6             basic_holdings = l('Volumes'),
7             basic_holdings_add = l('Additional Volume Information'),
8             supplement_holdings = l('Supplements'),
9             supplement_holdings_add = l('Additional Supplement Information'),
10             index_holdings = l('Indexes'),
11             index_holdings_add = l('Additional Index Information'),
12             online = l('Online'),
13             missing = l('Missing'),
14             incomplete = l('Incomplete'),
15         };
16
17         FOREACH serial IN ctx.mfhd_summaries;
18             printed_mfhd_header = 0;
19             FOREACH type IN mfhd.keys;
20                 NEXT UNLESS serial.$type.size;
21                 IF !printed_mfhd_header; %]
22                 <tr>
23                     <td class="rdetail-mfhd-head" colspan="2">[% l('Holdings summary ([_1])', serial.location) %]</td>
24                 </tr>
25                 [% printed_mfhd_header = 1;
26                 END; %]
27                 <tr>
28                     <td class="rdetail-mfhd-type">[% mfhd.$type %]</td>
29                     <td class="rdetail-mfhd-contents">[%
30                         FOR thing IN serial.$type;
31                             thing.join(", ");
32                         END %]</td>
33                 </tr>
34             [% END;
35             IF printed_mfhd_header; %]
36                 <tr>
37                     <td class="rdetail-mfhd-foot" colspan="2"> </td>
38                 </tr>
39             [% END; %]
40         [% END %]
41         </tbody></table>
42     </div>
43 [% END %]