-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncedMetadata.xml
250 lines (231 loc) · 14.2 KB
/
syncedMetadata.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<?xml version="1.0" encoding="UTF-8" ?>
<metadatasync>
<!-- ===================== -->
<!-- XML Sync Task Example -->
<!-- ===================== -->
<sync type="scalar" log="debug" name="XML Metadata sync" include_in_default="false">
<!-- example using a NetX Folder to identify the XML -->
<source name="XML Source" type="xml"
category_id="203"
container_type="elements"
row_xpath="//data"
delete_data_file="false"
file_to_process="newest">
<!-- example using a local filesystem folder to identify the XML
<source name="XML Source" type="xml" filepath="/opt/netx/xml/teams.xml" row_xpath="//row" container_type="attributes" delete_data_file="false" file_to_process="newest">
-->
<field name="key_field" column="NetxFilename"/>
<field name="field_01" column="MulTitle"/>
<field name="field_02" column="DetSubject_tab"/>
<field name="field_03" column="AudAssociatedSpecimen"/>
<field name="field_04" column="AudAccessURI"/>
<field name="field_05" column="irn"/>
<field name="field_06" column="MulDescription"/>
<field name="field_07" column="DetMediaRightsRef_irn"/>
<field name="field_08" column="DetMediaRightsRef_Summary"/>
<field name="field_09" column="MulMultimediaCreatorRef_tab_SummaryData"/>
<field name="field_10" column="MulMultimediaCreatorRef_tab_irn"/>
<field name="field_11" column="MulMultimediaCreatorRole_tab"/>
<field name="field_12" column="AudCitation"/>
<field name="field_13" column="SecRecordStatus"/>
<field name="field_14" column="SecDepartment_tab"/>
<field name="field_15" column="AdmPublishWebNoPassword"/>
<field name="field_16" column="AdmPublishWebPassword"/>
<field name="field_17" column="MulIdentifier"/>
<field name="field_18" column="AudTaxonCoverage"/>
<field name="field_19" column="AudRelatedGeography"/>
<field name="field_20" column="AudAssociatedObservation"/>
<field name="field_21" column="AudNumbers"/>
<field name="field_22" column="AudVernacularName"/>
<field name="field_23" column="AudSex"/>
<field name="field_24" column="AudLifeStage"/>
<field name="field_25" column="AudSubjectOrientation_tab"/>
<field name="field_26" column="AudSubjectPart_tab"/>
<field name="field_27" column="AudCaptureDevice"/>
<field name="field_28" column="AudFundingAttribution"/>
<field name="field_29" column="AdmDateInserted"/>
<field name="field_30" column="AdmDateModified"/>
<field name="field_31" column="AdmInsertedBy"/>
<field name="field_32" column="AdmModifiedBy"/>
<field name="field_33" column="RelNotes"/>
<field name="field_34" column="RelParentMediaRef_SummaryData"/>
<field name="field_35" column="RelRelatedMediaRef_tab_SummaryData"/>
<field name="field_36" column="RelRelationship_tab"/>
<field name="field_37" column="DetMediaRightsRef_RigOwner_Summary"/>
<field name="field_38" column="DetMediaRightsRef_RigOtherNumber"/>
<field name="field_39" column="DetMediaRightsRef_RigType"/>
<field name="field_40" column="RelParentMediaRef_AudIdentifier"/>
<field name="field_41" column="AudIdentifier"/>
<field name="field_42" column="CatCatalog"/>
<field name="field_43" column="CatDepartment"/>
<field name="field_44" column="EveEvent"/>
<field name="field_45" column="EveEventURLs"/>
<field name="field_46" column="MulOtherNumber_tab"/>
<field name="field_47" column="MulOtherNumberSource_tab"/>
<field name="field_48" column="ChaRepository_tab"/>
<field name="field_49" column="DetSource"/>
<field name="field_50" column="ChaMediaForm"/>
<field name="field_51" column="DetResourceDetailDate_Created"/>
<field name="field_52" column="DetResourceDetailsDate0"/>
<field name="field_53" column="DetResourceDetailsDescription_tab"/>
<field name="field_54" column="SupIdentifier"/>
<field name="field_55" column="SupHeight"/>
<field name="field_56" column="SupWidth"/>
<field name="field_57" column="SupFileSize"/>
<field name="field_58" column="ExOb_Mul_InvNo"/>
<field name="field_59" column="ExOb_Event"/>
<field name="field_60" column="ExOb_Height"/>
<field name="field_61" column="ExOb_Width"/>
<field name="field_62" column="ExOb_Depth"/>
<field name="field_63" column="ExOb_Weight"/>
<field name="field_64" column="DetResourceType"/>
<field name="field_65" column="DetMediaRightsRef_Rig1WebLink"/>
<!--field name="field_!!" column="AdmAssetSourceDAMS"/-->
</source>
<destination type="DAM">
<records name="NetX Update" type="asset">
<link field="key_field" attribute="file" />
<map field="field_01" attribute="Title" skip_null="false"/>
<map field="field_02" attribute="Subjects" skip_null="false"/>
<map field="field_03" attribute="Associated Specimens" skip_null="false"/>
<map field="field_04" attribute="Access URI" skip_null="false"/>
<map field="field_05" attribute="IRN" skip_null="false"/>
<map field="field_06" attribute="Description" skip_null="false"/>
<map field="field_07" attribute="Rights record IRN" skip_null="false"/>
<map field="field_08" attribute="Rights Summary" skip_null="false"/>
<map field="field_09" attribute="Creator" skip_null="false"/>
<map field="field_10" attribute="Creator IRN" skip_null="false"/>
<map field="field_11" attribute="Creator Role" skip_null="false"/>
<map field="field_12" attribute="Citation" skip_null="false"/>
<map field="field_13" attribute="Record Status" skip_null="false"/>
<map field="field_14" attribute="Security Department" skip_null="false"/>
<map field="field_15" attribute="Publish on Internet" skip_null="false"/>
<map field="field_16" attribute="Publish on Intranet" skip_null="false"/>
<map field="field_17" attribute="EMu Filename" skip_null="false"/>
<map field="field_18" attribute="Taxon Coverage" skip_null="false"/>
<map field="field_19" attribute="Related Geography" skip_null="false"/>
<map field="field_20" attribute="Associated Observations" skip_null="false"/>
<map field="field_21" attribute="Catalog Numbers" skip_null="false"/>
<map field="field_22" attribute="Common Name" skip_null="false"/>
<map field="field_23" attribute="Sex" skip_null="false"/>
<map field="field_24" attribute="Life Stage" skip_null="false"/>
<map field="field_25" attribute="Subject Orientation" skip_null="false"/>
<map field="field_26" attribute="Subject Part" skip_null="false"/>
<map field="field_27" attribute="Capture Device" skip_null="false"/>
<map field="field_28" attribute="Funding Attribution" skip_null="false"/>
<map field="field_29" attribute="Date Inserted in EMu" skip_null="false"/>
<map field="field_30" attribute="Date Modified in EMu" skip_null="false"/>
<map field="field_31" attribute="Inserted By" skip_null="false"/>
<map field="field_32" attribute="Modified By" skip_null="false"/>
<map field="field_33" attribute="Related Media Notes" skip_null="false"/>
<map field="field_34" attribute="Parent Media Summary" skip_null="false"/>
<map field="field_35" attribute="Related Media Summary" skip_null="false"/>
<map field="field_36" attribute="Media Relationship Type" skip_null="false"/>
<map field="field_37" attribute="Rights record Owner" skip_null="false"/>
<map field="field_38" attribute="Rights License" skip_null="false"/>
<map field="field_39" attribute="Rights Type" skip_null="false"/>
<map field="field_40" attribute="Parent Media Identifier" skip_null="false"/>
<map field="field_41" attribute="Identifier" skip_null="false"/>
<map field="field_42" attribute="Related Object Catalogs" skip_null="false"/>
<map field="field_43" attribute="Related Object Departments" skip_null="false"/>
<map field="field_44" attribute="Related Events" skip_null="false"/>
<map field="field_45" attribute="Related Event URLs" skip_null="false"/>
<map field="field_46" attribute="Other Number" skip_null="false"/>
<map field="field_47" attribute="Other Number Source" skip_null="false"/>
<map field="field_48" attribute="Repository" skip_null="false"/>
<map field="field_49" attribute="Source" skip_null="false"/>
<map field="field_50" attribute="Media Form" skip_null="false"/>
<map field="field_51" attribute="Date Created" skip_null="false"/>
<map field="field_52" attribute="Other Dates" skip_null="false"/>
<map field="field_53" attribute="Other Date Types" skip_null="false"/>
<map field="field_54" attribute="Supplementary File Name" skip_null="false"/>
<map field="field_55" attribute="Supp Height" skip_null="false"/>
<map field="field_56" attribute="Supp Width" skip_null="false"/>
<map field="field_57" attribute="Supp File Size" skip_null="false"/>
<map field="field_58" attribute="Related Exhibit Object" skip_null="false"/>
<map field="field_59" attribute="Related Exhibit Event" skip_null="false"/>
<map field="field_60" attribute="Exhibit Object Height" skip_null="false"/>
<map field="field_61" attribute="Exhibit Object Width" skip_null="false"/>
<map field="field_62" attribute="Exhibit Object Depth" skip_null="false"/>
<map field="field_63" attribute="Exhibit Object Weight" skip_null="false"/>
<map field="field_64" attribute="Resource Type" skip_null="false"/>
<map field="field_65" attribute="License URL" skip_null="false"/>
<!--map field="field_!!" attribute="Data Source" skip_null="false"/-->
</records>
</destination>
</sync>
<!-- AutoTask
<task name="XML metadata sync">
<matchCriteria type="and">
<criteria type="periodic" interval="daily" hour="22" minute="00"/>
</matchCriteria>
<customJob className="com.netxposure.products.imageportal.module.metadata.sync.job.MetadataSyncJob" syncTaskNames="XML Metadata Sync"/>
</task>
-->
<sync type="scalar" log="debug" name="XML Metadata export" include_in_default="false">
<!-- The period string may contain spaces between components, so either of the following is valid: "2d10h30m" or "2d 10h 30m" -->
<!-- try category_id="508" vs mod_date_period="1d" attribute in source tag / in next line -->
<source type="DAM" name="netx dam" objectType="asset" modDatePeriod="1d">
<field name="field_irn" column="IRN"/>
<field name="field_identifier" column="Identifier"/>
<field name="field_netxid" column="assetId"/>
<field name="field_title" column="Title"/>
<field name="field_description" column="Description"/>
<field name="field_rightsirn" column="Rights IRN"/>
<field name="field_rights" column="Rights Summary"/>
<field name="field_subjects" column="Subjects"/>
<field name="field_othnum" column="Other Number"/>
<field name="field_othnumsource" column="Other Number Source"/>
<field name="field_creatorirn" column="Creator IRN"/>
<field name="field_creator" column="Creator"/>
<field name="field_creatorrole" column="Creator Role"/>
<field name="field_depts" column="Security Department"/>
<field name="field_public" column="Publish on Internet"/>
<field name="field_recstatus" column="Record Status"/>
<field name="field_subjorient" column="Subject Orientation"/>
<field name="field_subjpart" column="Subject Part"/>
<field name="field_capdevice" column="Capture Device"/>
<field name="field_source" column="Source"/>
<field name="field_datecreated" column="Date Created"/>
<field name="field_date" column="Other Dates"/>
<field name="field_datedescrip" column="Other Date Types"/>
<field name="field_mediaform" column="Media Form"/>
<field name="field_repository" column="Repository"/>
</source>
<destination type="xml">
<!-- NOTE: Each records block would result in its own XML file -->
<!-- NOTE: Use $TIMESTAMP in the filename to include date/time in YYYYMMDDHHSS format -->
<!-- Alternative output filepath="/home/fmit/xml/netx_to_emu_$TIMESTAMP.xml" -->
<records name="EMu_Multimedia" container_type="elements" filepath="/opt/netx/xml/netx_to_emu_$TIMESTAMP.xml">
<!-- NOTE: See metadata sync docs in confluence for discussion of container_type (attributes vs. elements) -->
<!-- NOTE: There is no link element, we're just dumping records -->
<!-- NOTE: In this context attribute is the name of the data field in the XML (either the XML element or the XML attribute, depending on what is specified in the container_type setting -->
<map field="field_irn" attribute="irn"/>
<map field="field_identifier" attribute="AdmGUIDValue"/>
<map field="field_netxid" attribute="MulOtherNumber_NetX"/>
<map field="field_title" attribute="MulTitle"/>
<map field="field_description" attribute="MulDescription"/>
<map field="field_rightsirn" attribute="DetMediaRightsRef_irn"/>
<map field="field_rights" attribute="DetMediaRightsRef_Summary"/>
<map field="field_subjects" attribute="DetSubject_tab"/>
<map field="field_othnum" attribute="MulOtherNumber"/>
<map field="field_othnumsource" attribute="MulOtherNumberSource"/>
<map field="field_creatorirn" attribute="MulMultimediaCreatorRef_tab_irn"/>
<map field="field_creator" attribute="MulMultimediaCreatorRef_tab_Summary"/>
<map field="field_creatorrole" attribute="MulMultimediaCreatorRole_tab"/>
<map field="field_depts" attribute="SecDepartment"/>
<map field="field_public" attribute="AdmPublishOnWebNoPassword"/>
<map field="field_recstatus" attribute="SecRecordStatus"/>
<map field="field_subjorient" attribute="AudSubjectOrientation_tab"/>
<map field="field_subjpart" attribute="AudSubjectPart_tab"/>
<map field="field_capdevice" attribute="AudCaptureDevice"/>
<map field="field_source" attribute="DetSource"/>
<map field="field_datecreated" attribute="DetResourceDetailDate_Created"/>
<map field="field_date" attribute="DetResourceDetailsDate0"/>
<map field="field_datedescrip" attribute="DetResourceDetailsDescription_tab"/>
<map field="field_mediaform" attribute="ChaMediaForm"/>
<map field="field_repository" attribute="ChaRepository_tab"/>
</records>
</destination>
</sync>
</metadatasync>