Commit 28a9b363b3aa380e25dbfbc304c740b2fc8368e9

Authored by Fernando Ribeiro
1 parent 3c3d730012
Exists in DSpace52++

Workaround to the new response from RenatesService

dspace-api/src/main/java/pt/uminho/sdum/dspace/submit/lookup/RenatesService.java
... ... @@ -82,8 +82,13 @@ public class RenatesService {
82 82 inDoc.getDocumentElement().normalize();
83 83  
84 84  
85   - NodeList nList = inDoc.getElementsByTagName("Table");
86   - Node nNode = nList.item(0);
  85 + /*NodeList nList = inDoc.getElementsByTagName("Table");
  86 + Node nNode = nList.item(0);*/
  87 + //Workaround to the xml response from RENATES
  88 + NodeList nList = inDoc.getElementsByTagName("Tese");
  89 + Node n1 = nList.item(0);
  90 + nList = n1.getChildNodes();
  91 + Node nNode = nList.item(1);
87 92 if(nNode.getNodeType() == Node.ELEMENT_NODE )
88 93 r = RenatesUtils.convertRenatesDomToRecord((Element) nNode);
89 94  
... ...