-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdlibtoDatahubCondition.ini
50 lines (39 loc) · 1.14 KB
/
AdlibtoDatahubCondition.ini
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
# Adlib XML to Datahub (Conditional)
#
# Imports Adlib XML from a local Adlib XML file dump to the Datahub. This
# example implements conditions. Data in the dump is differentiated by the
# institution name (assuming data comes from different institutions). The
# relevant fix is loaded depending on the context.
#
# Notes:
# * You have to provide a /home/foobar/adlib_to_datahub.fix yourself
# * You need to massage the data into a a valid LIDO structure using the
# fixes provided by Catmandu::LIDO.
#
[General]
id_path = 'lidoRecID.0._'
[Importer]
plugin = Adlib
[plugin_importer_Adlib]
file_name = '/tmp/dump.xml'
data_path = 'recordList.record.*'
[Fixer]
plugin = Fix
[plugin_fixer_Fix]
condition = "institution\\.name.name"
fixers = Foo, Bar
[plugin_fixer_Foo]
condition = 'Museum of Foo'
file_name = './fixes/foo.fix'
[plugin_fixer_Bar]
condition = 'Museum of Bar'
file_name = './fixes/bar.fix'
[Exporter]
plugin = Datahub
[plugin_exporter_Datahub]
datahub_url = http://datahub.box
datahub_format = LIDO
oauth_client_id = slightlylesssecretpublicid
oauth_client_secret = supersecretsecretphrase
oauth_username = admin
oauth_password = datahub