Project

General

Profile

1
<NODE name="SET_INFO" isStart="true" type="SetEagleInfo">
2
	<DESCRIPTION>Retrieve information about current Content Provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
	</PARAMETERS>
7
	<ARCS>
8
		<ARC to="fetchOriginals"/>
9
	</ARCS>
10
</NODE>
11

    
12
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
13
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
14
	<PARAMETERS>
15
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("coll_id")$</PARAM>
16
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("coll_format")$</PARAM>
17
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
18
	</PARAMETERS>
19
	<ARCS>
20
		<ARC to="generateEditions"/>
21
	</ARCS>
22
</NODE>
23

    
24
<!-- <NODE name="populateVocabularies" type="ApplyXslt"> -->
25
<!-- 	<DESCRIPTION>Populate with Tematres vocabularies</DESCRIPTION> -->
26
<!-- 	<PARAMETERS> -->
27
<!-- 		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM> -->
28
<!-- 		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">voc_epr</PARAM> -->
29
<!-- 		<PARAM required="true" type="string" name="xsltClasspath" managedBy="system">/eu/dnetlib/msro/eagle/workflows/xslt/vocabularies/popWithVoc.xsl</PARAM> -->
30
<!-- 	</PARAMETERS> -->
31
<!-- 	<ARCS> -->
32
<!-- 		<ARC to="transformRecords"/> -->
33
<!-- 		<ARC to="generateEditions"/> -->
34
<!-- 	</ARCS> -->
35
<!-- </NODE> -->
36

    
37
<NODE name="generateEditions" type="ApplyEditionXslt">
38
	<DESCRIPTION>Apply start-edition.xslt as seen in http://sourceforge.net/projects/epidoc/files/Example%20Stylesheets/ (G.Bodard)</DESCRIPTION>
39
	<PARAMETERS>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">edition_epr</PARAM>
42
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="system">/eu/dnetlib/msro/eagle/workflows/xslt/edition/start-edition.xsl</PARAM>
43
		<PARAM required="true" type="string" name="params" managedBy="system">
44
			{
45
				"edn-structure" : "london"
46
			}
47
		</PARAM>
48
	</PARAMETERS>
49
	<ARCS>
50
		<ARC to="composeEditions"/>
51
	</ARCS>
52
</NODE>
53

    
54
<NODE name="composeEditions" type="ComposeEpr">
55
	<DESCRIPTION>Store records into mdstore</DESCRIPTION>
56
	<PARAMETERS>
57
		<PARAM required="true" type="string" name="mainEprParam" managedBy="system">orig_epr</PARAM>
58
		<PARAM required="true" type="string" name="alternateEprParam" managedBy="system">edition_epr</PARAM>
59
		<PARAM required="true" type="string" name="xpathToReplacedFragment" managedBy="system">//*[local-name()='div'][@type='edition']</PARAM>
60
		<PARAM required="true" type="string" name="xpathToReplacingFragment" managedBy="system">//*[local-name()='div'][@id='edition']</PARAM>
61
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">composed_epr</PARAM>
62
	</PARAMETERS>
63
	<ARCS>
64
		<ARC to="transformRecords"/>
65
	</ARCS>
66
</NODE>
67

    
68
<NODE name="transformRecords" type="ApplyXslt">
69
	<DESCRIPTION>Transform original records in multiple objects compliant with eagle format</DESCRIPTION>
70
	<PARAMETERS>
71
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">composed_epr</PARAM>
72
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_epr</PARAM>
73
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/eagle/workflows/xslt/structural','xsl')"></PARAM>
74
		<PARAM required="true" type="string" name="envParams" managedBy="system">
75
			{
76
				"CP_ACRONYM" : "dataprovider:acronym",
77
				"CP_URL" : "dataprovider:url",
78
				"CP_NAME" : "dataprovider:name"
79
			}
80
		</PARAM>
81
	</PARAMETERS>
82
	<ARCS>
83
		<ARC to="unpackRecords"/>
84
	</ARCS>
85
</NODE>
86

    
87
<NODE name="unpackRecords" type="Unpack">
88
	<DESCRIPTION>Unpack objects</DESCRIPTION>
89
	<PARAMETERS>
90
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_epr</PARAM>
91
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">eagle_epr</PARAM>
92
		<PARAM required="true" type="string" name="xpath" managedBy="user">//*[local-name()='record']</PARAM>
93
	</PARAMETERS>
94
	<ARCS>
95
		<ARC to="storeRecords"/>
96
	</ARCS>
97
</NODE>
98

    
99
<NODE name="storeRecords" type="StoreMDStoreRecords">
100
	<DESCRIPTION>Store records into mdstore</DESCRIPTION>
101
	<PARAMETERS>
102
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
103
		<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM>
104
		<PARAM required="true" type="string" name="eprParam" managedBy="system">eagle_epr</PARAM>
105
	</PARAMETERS>
106
	<ARCS>
107
		<ARC to="success"/>
108
	</ARCS>
109
</NODE>
(8-8/8)