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