Revision 45978
Added by Panagiotis Kanakakis about 7 years ago
PublicationManagerImpl.java | ||
---|---|---|
60 | 60 |
publication.setId("portal::" + DigestUtils.md5Hex(publication.getTitle())); |
61 | 61 |
} |
62 | 62 |
|
63 |
publicationDAO.savePublication(publication); |
|
64 |
/* |
|
65 |
deletePublicationRelations(publication); |
|
66 | 63 |
|
64 |
//deletePublicationRelations(publication); |
|
65 |
|
|
67 | 66 |
try { |
68 | 67 |
insertPublicationRelations(publication); |
69 | 68 |
} catch (PersonManagerException e) { |
... | ... | |
92 | 91 |
|
93 | 92 |
publication.setPublisher(publisherManager.getPublisher(publication.getPublisher().getId())); |
94 | 93 |
} |
95 |
*/
|
|
94 |
publicationDAO.savePublication(publication);
|
|
96 | 95 |
return publication; |
97 | 96 |
} |
98 | 97 |
|
... | ... | |
172 | 171 |
publication.setJournal(this.parseJournal(root.path("message").path("container-title"), root.path("message").path("ISSN"))); |
173 | 172 |
publication.getJournal().setPublisher(this.parsePublisher(root.path("message").path("publisher"))); |
174 | 173 |
|
175 |
publication.setAffiliations(new ArrayList<Affiliation>()); |
|
174 |
/*publication.setAffiliations(new ArrayList<Affiliation>());
|
|
176 | 175 |
for (JsonNode author : root.path("message").path("author")) { |
177 | 176 |
publication.getAffiliations().add(this.parseAffiliation(author)); |
178 |
} |
|
177 |
}*/
|
|
179 | 178 |
|
180 | 179 |
publication.setLicense(root.path("message").path("license").path(0).path("URL").textValue()); |
181 | 180 |
|
... | ... | |
208 | 207 |
user.setAffiliations(new ArrayList<Affiliation>()); |
209 | 208 |
|
210 | 209 |
Affiliation af = new Affiliation(); |
211 |
AffiliationPK afpk = new AffiliationPK(); |
|
212 |
afpk.setUser(user); |
|
213 |
af.setPk(afpk); |
|
214 | 210 |
user.getAffiliations().add(af); |
215 | 211 |
return af; |
216 | 212 |
} |
Also available in: Unified diff