]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/includes/UserOptionalFields.inc
Return the RequestId in the RequestItem message.
[working/NCIPServer.git] / templates / includes / UserOptionalFields.inc
1 [% IF data.UserOptionalFields -%]
2 <UserOptionalFields>
3 [% IF data.UserOptionalFields.NameInformation -%]
4 <NameInformation>
5 <PersonalNameInformation>
6 <StructuredPersonalUserName>
7 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
8 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
9 [% END -%]
10 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
11 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
12 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
13 [% END -%]
14 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
15 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
16 [% END -%]
17 [% IF data.UserOptionalFields.NameInformation.Initials -%]
18 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
19 [% END -%]
20 </StructuredPersonalUserName>
21 </PersonalNameInformation>
22 </NameInformation>
23 [% END -%]
24 [% IF data.UserOptionalFields.UserAddressInformation -%]
25 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
26 <UserAddressInformation>
27 <UserAddressRoleType>[% element.UserAddressRoleType | xml %]</UserAddressRoleType>
28 [% IF element.PhysicalAddress -%]
29 <PhysicalAddress>
30 <StructuredAddress>
31 <Line1>[% element.PhysicalAddress.StructuredAddress.Line1 | xml %]</Line1>
32 [% IF element.PhysicalAddress.StructuredAddress.Line2 -%]
33 <Line2>[% element.PhysicalAddress.StructuredAddress.Line2 | xml %]</Line2>
34 [% END -%]
35 [% IF element.PhysicalAddress.StructuredAddress.Locality -%]
36 <Locality>[% element.PhysicalAddress.StructuredAddress.Locality | xml %]</Locality>
37 [% END -%]
38 [% IF element.PhysicalAddress.StructuredAddress.Region -%]
39 <Region>[% element.PhysicalAddress.StructuredAddress.Region | xml %]</Region>
40 [% END -%]
41 [% IF element.PhysicalAddress.StructuredAddress.Country -%]
42 <Country>[% element.PhysicalAddress.StructuredAddress.Country | xml %]</Country>
43 [% END -%]
44 [% IF element.PhysicalAddress.StructuredAddress.PostalCode -%]
45 <PostalCode>[% element.PhysicalAddress.StructuredAddress.PostalCode | xml %]</PostalCode>
46 [% END -%]
47 </StructuredAddress>
48 <PhysicalAddressType>[% element.PhysicalAddress.Type | xml %]</PhysicalAddressType>
49 </PhysicalAddress>
50 [% ELSIF element.ElectronicAddress -%]
51 <ElectronicAddress>
52 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
53 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
54 </ElectronicAddress>
55 [% END -%]
56 </UserAddressInformation>
57 [% END -%]
58 [% END -%]
59 [% IF data.UserOptionalFields.UserPrivilege -%]
60 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
61 <UserPrivilege>
62 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
63 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
64 [% IF privilege.ValidFromDate -%]
65 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
66 [% END -%]
67 [% IF privilege.ValidToDate -%]
68 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
69 [% END -%]
70 [% IF privilege.UserPrivilegeDescription -%]
71 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
72 [% END -%]
73 [% IF privilege.UserPrivilegeStatus -%]
74 <UserPrivilegeStatus>
75 <UserPrivilegeStatusType>[% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]</UserPrivilegeStatusType>
76 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
77 <DateOfUserPrivilegeStatus>[% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]</DateOfUserPrivilegeStatus>
78 [% END -%]
79 </UserPrivilegeStatus>
80 [% END -%]
81 </UserPrivilege>
82 [% END -%]
83 [% END -%]
84 [% IF data.UserOptionalFields.UserLanguage -%]
85 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
86 <UserLanguage>[% language | xml %]</UserLanguage>
87 [% END -%]
88 [% END -%]
89 [% IF data.UserOptionalFields.BlockOrTrap -%]
90 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
91 <BlockOrTrap>
92 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
93 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
94 [% IF block.ValidFromDate -%]
95 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
96 [% END -%]
97 [% IF block.ValidToDate -%]
98 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
99 [% END %]
100 </BlockOrTrap>
101 [% END -%]
102 [% END -%]
103 </UserOptionalFields>
104 [% END -%]