-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxoai.diff
More file actions
129 lines (123 loc) · 3.73 KB
/
xoai.diff
File metadata and controls
129 lines (123 loc) · 3.73 KB
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
diff --git a/dspace/config/launcher.xml b/dspace/config/launcher.xml
index c6e86b3..83bffc3 100644
--- a/dspace/config/launcher.xml
+++ b/dspace/config/launcher.xml
@@ -346,6 +346,13 @@
<class>org.dspace.discovery.IndexClient</class>
</step>
</command>
-
+
+ <command>
+ <name>xoai</name>
+ <description>XOAI script manager</description>
+ <step>
+ <class>org.dspace.xoai.app.XOAI</class>
+ </step>
+ </command>
</commands>
diff --git a/dspace/modules/pom.xml b/dspace/modules/pom.xml
index c77a762..435045a 100644
--- a/dspace/modules/pom.xml
+++ b/dspace/modules/pom.xml
@@ -59,6 +59,15 @@
<module>oai</module>
</modules>
</profile>
+ <profile>
+ <id>dspace-xoai</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>xoai</module>
+ </modules>
+ </profile>
<profile>
<id>dspace-jspui</id>
<activation>
diff --git a/dspace/pom.xml b/dspace/pom.xml
index 2152642..c1934c1 100644
--- a/dspace/pom.xml
+++ b/dspace/pom.xml
@@ -215,6 +215,10 @@
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.dspace</groupId>
+ <artifactId>dspace-xoai-api</artifactId>
+ </dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api-lang</artifactId>
diff --git a/dspace/solr/solr.xml b/dspace/solr/solr.xml
index 2990656..41a32ce 100644
--- a/dspace/solr/solr.xml
+++ b/dspace/solr/solr.xml
@@ -31,6 +31,7 @@
<cores adminPath="/admin/cores">
<core name="search" instanceDir="search" />
<core name="statistics" instanceDir="statistics" />
+ <core name="xoai" instanceDir="xoai" />
</cores>
</solr>
diff --git a/dspace/src/main/config/build.xml b/dspace/src/main/config/build.xml
index 7fcb750..903df8e 100644
--- a/dspace/src/main/config/build.xml
+++ b/dspace/src/main/config/build.xml
@@ -729,6 +729,8 @@ Common usage:
<mkdir dir="${report.dir}" />
<mkdir dir="${dspace.dir}/solr" />
+
+ <mkdir dir="${dspace.dir}/var" />
</target>
diff --git a/pom.xml b/pom.xml
index b733d24..ecaa457 100644
--- a/pom.xml
+++ b/pom.xml
@@ -150,6 +150,19 @@
</modules>
</profile>
+ <!--
+ Builds XOAI Gateway WAR for DSpace
+ -->
+ <profile>
+ <id>dspace-xoai</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>dspace-xoai</module>
+ </modules>
+ </profile>
+
<!--
Builds JSPUI WAR for DSpace
-->
@@ -248,6 +261,7 @@
<module>dspace-xmlui</module>
<module>dspace-lni</module>
<module>dspace-oai</module>
+ <module>dspace-xoai</module>
<module>dspace-sword</module>
<module>dspace-swordv2</module>
<module>dspace-sword-client</module>
@@ -389,6 +403,17 @@
<version>${project.version}</version>
<type>war</type>
</dependency>
+ <dependency>
+ <groupId>org.dspace</groupId>
+ <artifactId>dspace-xoai-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.dspace</groupId>
+ <artifactId>dspace-xoai-webapp</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ </dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-lni-core</artifactId>