Skip to content

Commit 1caa874

Browse files
authored
Merge pull request #317 from clowder-framework/fix-bagit-spelling
consistent spelling of BagIt
2 parents 17651a4 + f3c30ff commit 1caa874

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## Unreleased
8+
9+
### Fixed
10+
- conf file and code had incosistent spelling of BagIt. Now all have capital B and I.
11+
712
## 1.19.5 - 2022-01-21
813

914
### Fixed

app/api/Collections.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ class Collections @Inject() (datasets: DatasetService,
805805
implicit val user = request.user
806806
collections.get(id) match {
807807
case Some(collection) => {
808-
val bagit = play.api.Play.configuration.getBoolean("downloadCollectionBagit").getOrElse(true)
808+
val bagit = play.api.Play.configuration.getBoolean("downloadCollectionBagIt").getOrElse(true)
809809
// Use custom enumerator to create the zip file on the fly
810810
// Use a 1MB in memory byte array
811811
Ok.chunked(enumeratorFromCollection(collection,1024*1024, compression,bagit,user)).withHeaders(

app/api/Datasets.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2838,7 +2838,7 @@ class Datasets @Inject()(
28382838
implicit val user = request.user
28392839
datasets.get(id) match {
28402840
case Some(dataset) => {
2841-
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagit").getOrElse(true)
2841+
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagIt").getOrElse(true)
28422842
val baseURL = controllers.routes.Datasets.dataset(id).absoluteURL(https(request))
28432843

28442844
// Increment download count if tracking is enabled
@@ -2867,7 +2867,7 @@ class Datasets @Inject()(
28672867
datasets.get(id) match {
28682868
case Some(dataset) => {
28692869
val fileIDs = fileList.split(',').map(fid => new UUID(fid)).toList
2870-
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagit").getOrElse(true)
2870+
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagIt").getOrElse(true)
28712871
val baseURL = controllers.routes.Datasets.dataset(id).absoluteURL(https(request))
28722872

28732873
// Increment download count for each file
@@ -2892,7 +2892,7 @@ class Datasets @Inject()(
28922892
implicit val user = request.user
28932893
datasets.get(id) match {
28942894
case Some(dataset) => {
2895-
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagit").getOrElse(true)
2895+
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagIt").getOrElse(true)
28962896
val baseURL = controllers.routes.Datasets.dataset(id).absoluteURL(https(request))
28972897

28982898

app/api/Selected.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Selected @Inject()(selections: SelectionService,
109109
Logger.debug("Requesting Selected.downloadAll")
110110
request.user match {
111111
case Some(user) => {
112-
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagit").getOrElse(true)
112+
val bagit = play.api.Play.configuration.getBoolean("downloadDatasetBagIt").getOrElse(true)
113113
val selected = selections.get(user.email.get)
114114
Ok.chunked(enumeratorFromSelected(selected,1024*1024,bagit,Some(user))).withHeaders(
115115
"Content-Type" -> "application/zip",

conf/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ addDatasetToCollectionSpace=false
477477
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
478478
# Whether or not collections or datasets download in bagit format
479479
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
480-
downloadCollectionBagit = true
480+
downloadCollectionBagIt = true
481481
downloadDatasetBagIt = false
482482

483483
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)