Ny xsd för API:et efter 3013 (stöd för nyckelord för examensarbetespublikationer)
This commit is contained in:
parent
2b1ffd8d60
commit
cd4cb23b93
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user