Get rid of the namespace prefix in templates and includes.
[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>
34 [% id.BibliographicRecordIdentifier | xml %]
35 </BibliographicRecordIdentifer>
36 [% IF id.BibliographicRecordIdentifierCode -%]
37 <BibliographicRecordIdentifierCode>
38 [% id.BibliographicRecordIdentifierCode | xml %]
39 </BibliographicRecordIdentifierCode>
40 [% END -%]
41 [% IF id.AgencyId -%]
42 <AgencyId>
43 [% id.AgencyId | xml %]
44 </AgencyId>
45 [% END -%]
46 </BibliographicRecordId>
47 [% END -%]
48 [% IF data.ItemOptionalFields.BibliographicDescription.BibliographicItemId;
49       id = data.ItemOptionalFields.BibliographicDescription.BibliographicItemId -%]
50 <BibliographicItemId>
51 <BibliographicItemIdentifier>
52 [% id.BibliographicItemIdentifier | xml %]
53 </BibliographicItemIdentifier>
54 [% IF id.BibliographicItemIdentifierCode -%]
55 <BibliographicItemIdentifierCode>
56 [% id.BibliographicItemIdentifierCode | xml %]
57 </BibliographicItemIdentifierCode>
58 [% END -%]
59 </BibliographicItemId>
60 [% END -%]
61 </BibliographicDescription>
62 [% END -%]
63 [% IF data.ItemOptionalFields.ItemDescription -%]
64 <ItemDescription>
65 <CallNumber>
66 [% data.ItemOptionalFields.ItemDescription.CallNumber | xml %]
67 </CallNumber>
68 </ItemDescription>
69 [% END -%]
70 [% IF data.ItemOptionalFields.CirculationStatus -%]
71 <CirculationStatus>
72 [% data.ItemOptionalFields.CirculationStatus | xml %]
73 </CirculationStatus>
74 [% END -%]
75 [% IF data.ItemOptionalFields.DateDue -%]
76 <DateDue>
77 [% data.ItemOptionalFields.DateDue | xml %]
78 </DateDue>
79 [% END -%]
80 [% IF data.ItemOptionalFields.ItemUseRestrictionType -%]
81 <ItemUseRestrictionType>
82 [% data.ItemOptionalFields.ItemUseRestrictionType | xml %]
83 </ItemUseRestrictionType>
84 [% END -%]
85 [% IF data.ItemOptionalFields.PhysicalCondition -%]
86 <PhysicalCondition>
87 [% data.ItemOptionalFields.PhysicalCondition | xml %]
88 </PhysicalCondition>
89 [% END -%]
90 </ItemOptionalFields>
91 [% END -%]