@@ -2133,7 +2133,7 @@ class Datasets @Inject()(
21332133 (level, file_type) match {
21342134 case (" dataset" , " metadata" ) => {
21352135 is = addDatasetMetadataToZip(dataFolder, dataset, zip)
2136- is = addMD5Entry(" _metadata .json" , is, md5Files)
2136+ is = addMD5Entry(dataFolder + " _dataset_metadata .json" , is, md5Files)
21372137 level = " file"
21382138 file_type = " info"
21392139 }
@@ -2176,19 +2176,19 @@ class Datasets @Inject()(
21762176 case (" bag" , " bagit.txt" ) => {
21772177 // BagIt "header" data e.g. date, author
21782178 is = addBagItTextToZip(totalBytes, filenameMap.size, zip, dataset, user)
2179- is = addMD5Entry(" bagit.txt" , is, md5Files )
2179+ is = addMD5Entry(" bagit.txt" , is, md5Bag )
21802180 file_type = " bag-info.txt"
21812181 }
21822182 case (" bag" , " bag-info.txt" ) => {
21832183 // BagIt version & encoding
21842184 is = addBagInfoToZip(zip)
2185- is = addMD5Entry(" bag-info.txt" , is, md5Files )
2185+ is = addMD5Entry(" bag-info.txt" , is, md5Bag )
21862186 file_type = " manifest-md5.txt"
21872187 }
21882188 case (" bag" , " manifest-md5.txt" ) => {
21892189 // List of all dataset (i.e. not BagIt) files and their checksums
21902190 is = addManifestMD5ToZip(md5Files.toMap[String ,MessageDigest ], zip)
2191- is = addMD5Entry(" manifest-md5.txt" , is, md5Files )
2191+ is = addMD5Entry(" manifest-md5.txt" , is, md5Bag )
21922192 file_type = " datacite.xml"
21932193 }
21942194 case (" bag" , " datacite.xml" ) => {
@@ -2199,7 +2199,6 @@ class Datasets @Inject()(
21992199 case (" bag" , " tagmanifest-md5.txt" ) => {
22002200 // List of all BagIt, xml or non-dataset files and their checksums
22012201 is = addTagManifestMD5ToZip(md5Bag.toMap[String ,MessageDigest ], zip)
2202- is = addMD5Entry(" tagmanifest-md5.txt" , is, md5Files)
22032202 level = " done"
22042203 file_type = " none"
22052204 }
0 commit comments