"Fix" ItemOptionalFields.inc.
[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.Title -%]
9 <Title>[% data.ItemOptionalFields.BibliographicDescription.Title | xml %]</Title>
10 [% END -%]
11 [% IF data.ItemOptionalFields.BibliographicDescription.Publisher -%]
12 <Publisher>[% data.ItemOptionalFields.BibliographicDescription.Publisher | xml %]</Publisher>
13 [% END -%]
14 [% IF data.ItemOptionalFields.BibliographicDescription.PublicationDate -%]
15 <PublicationDate>[% data.ItemOptionalFields.BibliographicDescription.PublicationDate | xml %]</PublicationDate>
16 [% END -%]
17 [% IF data.ItemOptionalFields.BibliographicDescription.Edition -%]
18 <Edition>[% data.ItemOptionalFields.BibliographicDescription.Edition | xml %]</Edition>
19 [% END -%]
20 [% IF data.ItemOptionalFields.BibliographicDescription.BibliographicRecordId;
21       id = data.ItemOptionalFields.BibliographicDescription.BibliographicRecordId -%]
22 <BibliographicRecordId>
23 <BibliographicRecordIdentifier>[% id.BibliographicRecordIdentifier | xml %]</BibliographicRecordIdentifer>
24 [% IF id.BibliographicRecordIdentifierCode -%]
25 <BibliographicRecordIdentifierCode>[% id.BibliographicRecordIdentifierCode | xml %]</BibliographicRecordIdentifierCode>
26 [% END -%]
27 [% IF id.AgencyId -%]
28 <AgencyId>[% id.AgencyId | xml %]</AgencyId>
29 [% END -%]
30 </BibliographicRecordId>
31 [% END -%]
32 [% IF data.ItemOptionalFields.BibliographicDescription.BibliographicItemId;
33       id = data.ItemOptionalFields.BibliographicDescription.BibliographicItemId -%]
34 <BibliographicItemId>
35 <BibliographicItemIdentifier>[% id.BibliographicItemIdentifier | xml %]</BibliographicItemIdentifier>
36 [% IF id.BibliographicItemIdentifierCode -%]
37 <BibliographicItemIdentifierCode>[% id.BibliographicItemIdentifierCode | xml %]</BibliographicItemIdentifierCode>
38 [% END -%]
39 </BibliographicItemId>
40 [% END -%]
41 </BibliographicDescription>
42 [% END -%]
43 [% IF data.ItemOptionalFields.ItemDescription -%]
44 <ItemDescription>
45 <CallNumber>[% data.ItemOptionalFields.ItemDescription.CallNumber | xml %]</CallNumber>
46 </ItemDescription>
47 [% END -%]
48 [% IF data.ItemOptionalFields.CirculationStatus -%]
49 <CirculationStatus>[% data.ItemOptionalFields.CirculationStatus | xml %]</CirculationStatus>
50 [% END -%]
51 [% IF data.ItemOptionalFields.DateDue -%]
52 <DateDue>[% data.ItemOptionalFields.DateDue | xml %]</DateDue>
53 [% END -%]
54 [% IF data.ItemOptionalFields.ItemUseRestrictionType -%]
55 <ItemUseRestrictionType>[% data.ItemOptionalFields.ItemUseRestrictionType | xml %]</ItemUseRestrictionType>
56 [% END -%]
57 [% IF data.ItemOptionalFields.PhysicalCondition -%]
58 <PhysicalCondition>[% data.ItemOptionalFields.PhysicalCondition | xml %]</PhysicalCondition>
59 [% END -%]
60 </ItemOptionalFields>
61 [% END -%]