Skip to content

Commit 9b2c07c

Browse files
Merge branch 'develop' into 11733-api-get-file-citation-format
2 parents b90beb9 + da0ed77 commit 9b2c07c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed a problem in the BagPack generator, which caused the export to fail for datasets with multiple Contact Points, of which some had no name while others did.

modules/dataverse-parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@
461461
Once the release has been made (tag created), change this back to "${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}"
462462
(These properties are provided by the build-helper plugin below.)
463463
-->
464-
<!-- <base.image.version>${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}</base.image.version> -->
465-
<base.image.version>${revision}</base.image.version>
464+
<base.image.version>${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}</base.image.version>
465+
<!-- <base.image.version>${revision}</base.image.version> -->
466466
<!-- This is used by the maintenance CI jobs, no need to adapt during releases. -->
467467
<app.image.version>${base.image.version}</app.image.version>
468468
</properties>

src/main/java/edu/harvard/iq/dataverse/util/bagit/BagGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ private String generateInfoFile() {
938938
info.append(CRLF);
939939

940940
} else {
941-
if (contactNameTerm != null) {
941+
if (contactNameTerm != null && ((JsonObject) person).has(contactNameTerm.getLabel())) {
942942
info.append(multilineWrap(CONTACT_NAME + ((JsonObject) person).get(contactNameTerm.getLabel()).getAsString()));
943943
info.append(CRLF);
944944
}

0 commit comments

Comments
 (0)