Fix another template typo.
[working/NCIPServer.git] / templates / includes / ItemOptionalFields.inc
1 [% IF data.ItemOptionalFields -%]
2 <ItemOptionalFields>
3 [% IF data.ItemOptionalFields.BibliographicDescription -%]
4 <BibliographicDescription>
5 [% IF data.ItemOptionalFields.BibliographicDescription.Author -%]
6 <Author>[% data.ItemOptionalFields.BibliographicDescription.Author | xml %]</Author>
7 [% END -%]
8 [% IF data.ItemOptionalFields.BibliographicDescription.BibliographicItemId;
9       id = data.ItemOptionalFields.BibliographicDescription.BibliographicItemId -%]
10 <BibliographicItemId>
11 <BibliographicItemIdentifier>[% id.BibliographicItemIdentifier | xml %]</BibliographicItemIdentifier>
12 [% IF id.BibliographicItemIdentifierCode -%]
13 <BibliographicItemIdentifierCode>[% id.BibliographicItemIdentifierCode | xml %]</BibliographicItemIdentifierCode>
14 [% END -%]
15 </BibliographicItemId>
16 [% END -%]
17 [% IF data.ItemOptionalFields.BibliographicDescription.BibliographicRecordId;
18       id = data.ItemOptionalFields.BibliographicDescription.BibliographicRecordId -%]
19 <BibliographicRecordId>
20 <BibliographicRecordIdentifier>[% id.BibliographicRecordIdentifier | xml %]</BibliographicRecordIdentifier>
21 [% IF id.AgencyId -%]
22 <AgencyId>[% id.AgencyId | xml %]</AgencyId>
23 [% ELSIF id.BibliographicRecordIdentifierCode -%]
24 <BibliographicRecordIdentifierCode>[% id.BibliographicRecordIdentifierCode | xml %]</BibliographicRecordIdentifierCode>
25 [% END -%]
26 </BibliographicRecordId>
27 [% END -%]
28 [% IF data.ItemOptionalFields.BibliographicDescription.Edition -%]
29 <Edition>[% data.ItemOptionalFields.BibliographicDescription.Edition | xml %]</Edition>
30 [% END -%]
31 [% IF data.ItemOptionalFields.BibliographicDescription.PublicationDate -%]
32 <PublicationDate>[% data.ItemOptionalFields.BibliographicDescription.PublicationDate | xml %]</PublicationDate>
33 [% END -%]
34 [% IF data.ItemOptionalFields.BibliographicDescription.Publisher -%]
35 <Publisher>[% data.ItemOptionalFields.BibliographicDescription.Publisher | xml %]</Publisher>
36 [% END -%]
37 [% IF data.ItemOptionalFields.BibliographicDescription.Title -%]
38 <Title>[% data.ItemOptionalFields.BibliographicDescription.Title | xml %]</Title>
39 [% END -%]
40 </BibliographicDescription>
41 [% END -%]
42 [% IF data.ItemOptionalFields.ItemUseRestrictionType -%]
43 <ItemUseRestrictionType>[% data.ItemOptionalFields.ItemUseRestrictionType | xml %]</ItemUseRestrictionType>
44 [% END -%]
45 [% IF data.ItemOptionalFields.CirculationStatus -%]
46 <CirculationStatus>[% data.ItemOptionalFields.CirculationStatus | xml %]</CirculationStatus>
47 [% END -%]
48 [% IF data.ItemOptionalFields.ItemDescription -%]
49 <ItemDescription>
50 <CallNumber>[% data.ItemOptionalFields.ItemDescription.CallNumber | xml %]</CallNumber>
51 </ItemDescription>
52 [% END -%]
53 [% IF data.ItemOptionalFields.PhysicalCondition -%]
54 <PhysicalCondition>[% data.ItemOptionalFields.PhysicalCondition | xml %]</PhysicalCondition>
55 [% END -%]
56 [% IF data.ItemOptionalFields.DateDue -%]
57 <DateDue>[% data.ItemOptionalFields.DateDue | xml %]</DateDue>
58 [% END -%]
59 </ItemOptionalFields>
60 [% END -%]