Ny xsd för API:et efter 3013 (stöd för nyckelord för examensarbetespublikationer)

This commit is contained in:
nikos dimitrakas 2023-06-02 06:16:13 +02:00
parent 2b1ffd8d60
commit cd4cb23b93
2 changed files with 6 additions and 2 deletions
core/src/main/xsd
daisy-integration/src/main/java/se/su/dsv/scipro/daisyExternal/impl

@ -453,6 +453,10 @@
</xs:element>
<xs:element name="englishAbstract" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="swedishKeywords" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="englishKeywords" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="comment" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="file" type="fil" minOccurs="0">
@ -550,7 +554,7 @@
<xs:sequence>
<xs:element name="courseCode" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="credits" type="xs:int" minOccurs="1">
<xs:element name="credits" type="xs:float" minOccurs="1">
</xs:element>
<xs:element name="id" type="xs:int" minOccurs="0">
</xs:element>

@ -231,7 +231,7 @@ public class ImporterTransactionsImpl implements ImporterTransactions {
final int oldCredits = project.getCredits();
for (AuthorProjectParticipant contributor : authors) {
Course course = contributor.getCourse();
project.setCredits(course.getCredits());
project.setCredits(Math.round(course.getCredits()));
}
if (oldCredits != project.getCredits()) {
projectService.save(project);