Commit fbb5d8bc9f76165e0be8a2e649b7ddc3a5525a12

Authored by Tiago Guimarães
1 parent 5a4279185b
Exists in researchcenters

finit

dspace-jspui/src/main/resources/researchcenters.xml
... ... @@ -1,10 +0,0 @@
1   -<centers>
2   - <center>
3   - <name>HASLab</name>
4   - <handle>123456789/1</handle>
5   - </center>
6   - <center>
7   - <name>Centro ALGORITMI</name>
8   - <handle>123456789/15</handle>
9   - </center>
10   -</centers>
11 0 \ No newline at end of file
dspace-jspui/src/main/webapp/researchcenters-list.jsp
... ... @@ -185,7 +185,7 @@
185 185  
186 186 JAXBContext jc = JAXBContext.newInstance(CentersType.class);
187 187 Unmarshaller u = jc.createUnmarshaller();
188   - CentersType o =(CentersType) u.unmarshal( new File( "researchcenters.xml" ) );
  188 + CentersType o =(CentersType) u.unmarshal( new File( "/dspace/config/modules/researchcenters.xml" ) );
189 189  
190 190  
191 191 for (CenterType center : o.getCenter()) {
... ...
dspace/config/modules/researchcenters.xml
... ... @@ -0,0 +1,10 @@
  1 +<centers>
  2 + <center>
  3 + <name>HASLab</name>
  4 + <handle>123456789/1</handle>
  5 + </center>
  6 + <center>
  7 + <name>Centro ALGORITMI</name>
  8 + <handle>123456789/15</handle>
  9 + </center>
  10 +</centers>
0 11 \ No newline at end of file
... ...