Skip to content

Commit

Permalink
Fixup supplemental_file
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Dec 16, 2024
1 parent 0ae5fd9 commit 2d422cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handlers/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func readCSVWithJSONTags(r *http.Request) (map[string]bool, []map[string][]strin
case "field_related_item.identifier_type=issn":
column = "field_related_item"
str = fmt.Sprintf(`{"type": "issn", "identifier": "%s"}`, str)
case "file":
case "file", "supplemental_file":
str = strings.ReplaceAll(str, `\`, `/`)
str = strings.TrimLeft(str, "/")
if len(str) > 3 && str[0:3] != "mnt" {
Expand Down

0 comments on commit 2d422cb

Please sign in to comment.