Skip to content

Commit

Permalink
collection selection support bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Mar 7, 2023
1 parent 6d85cb9 commit 83aa923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions image/app/dataverse/dataverse_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func DvObjects(ctx context.Context, objectType, collection, token, user string)
func listDvObjects(ctx context.Context, objectType, collection, token, user string) ([]Item, error) {
searchTerm := ""
if collection != "" {
searchTerm = "identifierOfDataverse=" + collection
searchTerm = "identifierOfDataverse:" + collection
}
res := []Item{}
hasNextPage := true
Expand All @@ -279,7 +279,7 @@ func listDvObjects(ctx context.Context, objectType, collection, token, user stri
}
for page := 1; hasNextPage; page++ {
url := config.GetConfig().DataverseServer + "/api/v1/mydata/retrieve?" +
"&selected_page=" + fmt.Sprint(page) +
"selected_page=" + fmt.Sprint(page) +
"&dvobject_types=" + objectType +
"&published_states=Published&published_states=Unpublished&published_states=Draft&published_states=In%20Review" +
roleIds + "&mydata_search_term=" + searchTerm
Expand Down
2 changes: 1 addition & 1 deletion image/app/local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
DataverseServerName string
RootDataverseId string
DefaultHash string = "MD5"
MyDataRoleIds string = "6,7"
MyDataRoleIds string = "1,6,7"
MaxFileSize string = "21474836480"
)

Expand Down

0 comments on commit 83aa923

Please sign in to comment.