Revision 35148
Added by Sandro La Bruzzo over 9 years ago
webapps/dnet-openaire_dli-container/trunk/pom.xml | ||
---|---|---|
102 | 102 |
<artifactId>dnet-modular-index-ui</artifactId> |
103 | 103 |
<version>[2.0.0,3.0.0)</version> |
104 | 104 |
</dependency> |
105 |
<dependency> |
|
106 |
<groupId>eu.dnetlib</groupId> |
|
107 |
<artifactId>dnet-oai-modular-ui</artifactId> |
|
108 |
<version>[3.0.0,4.0.0)</version> |
|
109 |
</dependency> |
|
105 | 110 |
|
106 | 111 |
|
107 | 112 |
<!-- DATA LITERARATURE INTERLINKING MODULES --> |
... | ... | |
115 | 120 |
<artifactId>dnet-openaire_dli-workflows</artifactId> |
116 | 121 |
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version> |
117 | 122 |
</dependency> |
123 |
|
|
124 |
<!-- OAI publisher --> |
|
125 |
<dependency> |
|
126 |
<groupId>eu.dnetlib</groupId> |
|
127 |
<artifactId>dnet-oai-common-workflows</artifactId> |
|
128 |
<version>[3.0.0,4.0.0)</version> |
|
129 |
</dependency> |
|
130 |
<dependency> |
|
131 |
<groupId>eu.dnetlib</groupId> |
|
132 |
<artifactId>cnr-data-information-oai-publisher</artifactId> |
|
133 |
<version>[5.0.0, 6.0.0)</version> |
|
134 |
</dependency> |
|
118 | 135 |
|
119 | 136 |
<!-- Log service --> |
120 | 137 |
<dependency> |
modules/dnet-openaire_dli-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/OAIPublisherConfigurationDSResources/OAIPublisherConfigurationDSResourceType/OAIPublisherConfiguration-OpenAire.xml | ||
---|---|---|
1 |
<RESOURCE_PROFILE> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER value="53b2865b-53a3-444c-a3a5-d09bb7be9374_T0FJUHVibGlzaGVyQ29uZmlndXJhdGlvbkRTUmVzb3VyY2VzL09BSVB1Ymxpc2hlckNvbmZpZ3VyYXRpb25EU1Jlc291cmNlVHlwZQ=="/> |
|
4 |
<RESOURCE_TYPE value="OAIPublisherConfigurationDSResourceType"/> |
|
5 |
<RESOURCE_KIND value="OAIPublisherConfigurationDSResources"/> |
|
6 |
<RESOURCE_URI value=""/> |
|
7 |
<DATE_OF_CREATION value="2014-10-23T12:33:34+00:00"/> |
|
8 |
</HEADER> |
|
9 |
<BODY> |
|
10 |
<CONFIGURATION> |
|
11 |
<IDSCHEME>oai</IDSCHEME> |
|
12 |
<IDNAMESPACE>dnet</IDNAMESPACE> |
|
13 |
<CURRENTDB>oaistore</CURRENTDB> |
|
14 |
<OAISETS/> |
|
15 |
<METADATAFORMATS> |
|
16 |
<METADATAFORMAT exportable="true" metadataPrefix="dli"> |
|
17 |
<NAMESPACE>http://namespace.openaire.eu/dli</NAMESPACE> |
|
18 |
<SCHEMA>http://www.openaire.eu/schema/0.2/dli-0.2.xsd</SCHEMA> |
|
19 |
<SOURCE_METADATA_FORMAT interpretation="oai" layout="cleaned" name="oai_dli"/> |
|
20 |
<TRANSFORMATION_RULE/> |
|
21 |
<BASE_QUERY></BASE_QUERY> |
|
22 |
</METADATAFORMAT> |
|
23 |
</METADATAFORMATS> |
|
24 |
<INDICES> |
|
25 |
<INDEX name="objIdentifier" repeatable="false"> |
|
26 |
<SOURCE interpretation="oai" layout="cleaned" name="oai_dli" path="//*[local-name() ='objIdentifier']"/> |
|
27 |
</INDEX> |
|
28 |
|
|
29 |
</INDICES> |
|
30 |
</CONFIGURATION> |
|
31 |
<STATUS> |
|
32 |
<LAST_UPDATE value="2001-12-31T12:00:00"/> |
|
33 |
</STATUS> |
|
34 |
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS> |
|
35 |
</BODY> |
|
36 |
</RESOURCE_PROFILE> |
modules/dnet-openaire_dli-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/workflows/index/indexWF.xml | ||
---|---|---|
63 | 63 |
|
64 | 64 |
|
65 | 65 |
<NODE name="fetchRecord" type="FetchDLIRecord"> |
66 |
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
|
66 |
<DESCRIPTION>Fetch records from Database</DESCRIPTION>
|
|
67 | 67 |
<PARAMETERS> |
68 | 68 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">clean_epr</PARAM> |
69 | 69 |
</PARAMETERS> |
modules/dnet-openaire_dli-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/workflows/oai/OAIFeed.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
3 |
<HEADER> |
|
4 |
<RESOURCE_IDENTIFIER |
|
5 |
value="d1d72550-7e1b-4534-a58c-0ea5a5abba43_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl" /> |
|
6 |
<RESOURCE_TYPE value="WorkflowDSResourceType" /> |
|
7 |
<RESOURCE_KIND value="WorkflowDSResources" /> |
|
8 |
<RESOURCE_URI value="" /> |
|
9 |
<DATE_OF_CREATION value="2014-08-01T18:13:51.0Z" /> |
|
10 |
</HEADER> |
|
11 |
<BODY> |
|
12 |
<WORKFLOW_NAME>Feed from Database</WORKFLOW_NAME> |
|
13 |
<WORKFLOW_TYPE>Provision</WORKFLOW_TYPE> |
|
14 |
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY> |
|
15 |
<CONFIGURATION start="manual"> |
|
16 |
|
|
17 |
<NODE name="prepareOAIParameter" type="PrepareOAIParameters" isStart="true"> |
|
18 |
<DESCRIPTION>Prepare OAI Parameter </DESCRIPTION> |
|
19 |
<PARAMETERS> |
|
20 |
<PARAM required="true" type="string" name="format" managedBy="user"></PARAM> |
|
21 |
<PARAM required="true" type="string" name="layout" managedBy="user"></PARAM> |
|
22 |
<PARAM required="true" type="string" name="interpretation" managedBy="user"></PARAM> |
|
23 |
</PARAMETERS> |
|
24 |
<ARCS> |
|
25 |
<ARC to="fetchRecord" /> |
|
26 |
</ARCS> |
|
27 |
</NODE> |
|
28 |
|
|
29 |
<NODE name="fetchRecord" type="FetchDLIRecord" > |
|
30 |
<DESCRIPTION>Fetch records from Database</DESCRIPTION> |
|
31 |
<PARAMETERS> |
|
32 |
<PARAM required="true" type="string" name="outputEprParam" |
|
33 |
managedBy="system">clean_epr</PARAM> |
|
34 |
</PARAMETERS> |
|
35 |
<ARCS> |
|
36 |
<ARC to="oaiSync" /> |
|
37 |
</ARCS> |
|
38 |
</NODE> |
|
39 |
|
|
40 |
<NODE name="oaiSync" type="SyncOAIStores"> |
|
41 |
<DESCRIPTION>Synchronizes OAI stores</DESCRIPTION> |
|
42 |
<PARAMETERS> |
|
43 |
<PARAM name="eprParam" managedBy="system" type="string" required="true">clean_epr</PARAM> |
|
44 |
<PARAM name="oai_dbName" managedBy="user" type="string" required="true">oaistore</PARAM> |
|
45 |
<PARAM name="formatParam" managedBy="user" type="string" required="true">oai_format</PARAM> |
|
46 |
<PARAM name="layoutParam" managedBy="user" type="string" required="true">oai_layout</PARAM> |
|
47 |
<PARAM name="interpretationParam" managedBy="user" type="string" required="true">oai_interpretation</PARAM> |
|
48 |
</PARAMETERS> |
|
49 |
<ARCS> |
|
50 |
<ARC to="success" /> |
|
51 |
</ARCS> |
|
52 |
</NODE> |
|
53 |
|
|
54 |
</CONFIGURATION> |
|
55 |
<STATUS /> |
|
56 |
</BODY> |
|
57 |
</RESOURCE_PROFILE> |
|
58 |
|
modules/dnet-openaire_dli-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/workflows/oai/OAIMetaWF.xml | ||
---|---|---|
1 |
<RESOURCE_PROFILE> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER value="70aac42e-b6ce-47a6-90a7-76fb7cbe7286_TWV0YVdvcmtmbG93RFNSZXNvdXJjZXMvTWV0YVdvcmtmbG93RFNSZXNvdXJjZVR5cGU="/> |
|
4 |
<RESOURCE_TYPE value="MetaWorkflowDSResourceType"/> |
|
5 |
<RESOURCE_KIND value="MetaWorkflowDSResources"/> |
|
6 |
<RESOURCE_URI value=""/> |
|
7 |
<DATE_OF_CREATION value="2015-02-25T18:09:02+01:00"/> |
|
8 |
</HEADER> |
|
9 |
<BODY> |
|
10 |
<METAWORKFLOW_NAME family="provision_profiles">OAI Infospace</METAWORKFLOW_NAME> |
|
11 |
<METAWORKFLOW_DESCRIPTION/> |
|
12 |
<METAWORKFLOW_SECTION>InfoSpace Provision</METAWORKFLOW_SECTION> |
|
13 |
<ADMIN_EMAIL/> |
|
14 |
<CONFIGURATION status="EXECUTABLE"> |
|
15 |
<WORKFLOW id="d1d72550-7e1b-4534-a58c-0ea5a5abba43_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl" name="OAI Feed"> |
|
16 |
<WORKFLOW id="440e5de7-7106-469c-8c8d-89c261a1e09d_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl" name="OAI Post feed"/> |
|
17 |
</WORKFLOW> |
|
18 |
</CONFIGURATION> |
|
19 |
<SCHEDULING enabled="false"> |
|
20 |
<CRON>0 0 0 ? * *</CRON> |
|
21 |
<MININTERVAL>10080</MININTERVAL> |
|
22 |
</SCHEDULING> |
|
23 |
</BODY> |
|
24 |
</RESOURCE_PROFILE> |
modules/dnet-openaire_dli-workflows/trunk/src/main/java/eu/dnetlib/msro/dli/workflows/nodes/PrepareOAIParametersJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.dli.workflows.nodes; |
|
2 |
|
|
3 |
import com.googlecode.sarasvati.Arc; |
|
4 |
import com.googlecode.sarasvati.NodeToken; |
|
5 |
|
|
6 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
7 |
|
|
8 |
public class PrepareOAIParametersJobNode extends SimpleJobNode { |
|
9 |
|
|
10 |
private String format; |
|
11 |
private String layout; |
|
12 |
private String interpretation; |
|
13 |
|
|
14 |
@Override |
|
15 |
protected String execute(final NodeToken token) throws Exception { |
|
16 |
token.getEnv().setAttribute("oai_format", format); |
|
17 |
token.getEnv().setAttribute("oai_layout", layout); |
|
18 |
token.getEnv().setAttribute("oai_interpretation", interpretation); |
|
19 |
token.getEnv().setAttribute("oai_recordSource", "dli"); |
|
20 |
return Arc.DEFAULT_ARC; |
|
21 |
} |
|
22 |
|
|
23 |
/** |
|
24 |
* @return the format |
|
25 |
*/ |
|
26 |
public String getFormat() { |
|
27 |
return format; |
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* @param format |
|
32 |
* the format to set |
|
33 |
*/ |
|
34 |
public void setFormat(final String format) { |
|
35 |
this.format = format; |
|
36 |
} |
|
37 |
|
|
38 |
/** |
|
39 |
* @return the layout |
|
40 |
*/ |
|
41 |
public String getLayout() { |
|
42 |
return layout; |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* @param layout |
|
47 |
* the layout to set |
|
48 |
*/ |
|
49 |
public void setLayout(final String layout) { |
|
50 |
this.layout = layout; |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* @return the interpretation |
|
55 |
*/ |
|
56 |
public String getInterpretation() { |
|
57 |
return interpretation; |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* @param interpretation |
|
62 |
* the interpretation to set |
|
63 |
*/ |
|
64 |
public void setInterpretation(final String interpretation) { |
|
65 |
this.interpretation = interpretation; |
|
66 |
} |
|
67 |
|
|
68 |
} |
modules/dnet-openaire_dli-workflows/trunk/src/main/resources/eu/dnetlib/msro/dli_openaire/workflows/repo-hi/applicationContext-nodes.xml | ||
---|---|---|
22 | 22 |
scope="prototype" /> |
23 | 23 |
|
24 | 24 |
|
25 |
<bean id="wfNodePrepareOAIParameters" |
|
26 |
class="eu.dnetlib.msro.dli.workflows.nodes.PrepareOAIParametersJobNode" |
|
27 |
scope="prototype" /> |
|
28 |
|
|
29 |
|
|
25 | 30 |
<bean id="wfNodeResolvingHarvestedPid" |
26 | 31 |
class="eu.dnetlib.msro.dli.workflows.nodes.resolver.ResolvingHarvestedPidJobNode" |
27 | 32 |
p:template="classpath:/eu/dnetlib/msro/workflows/doimanager/xmlTemplate.st" |
Also available in: Unified diff
added OAI Integtration