Skip to content

Commit

Permalink
Update doi.go
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Jun 27, 2024
1 parent cf05bcc commit c180c68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/doi.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ var (
"field_identifier",
"field_part_detail",
"field_related_item",
"field_extent",
"field_language",
"field_rights",
"field_subject",
Expand Down Expand Up @@ -91,7 +90,7 @@ var (
partDetail = append(partDetail, fmt.Sprintf(`{"type": "volume", "number": "%s"}`, doiObject.Volume))
}
if doiObject.Issue != "" {
partDetail = append(partDetail, fmt.Sprintf(`{"type": "volume", "number": "%s"}`, doiObject.Issue))
partDetail = append(partDetail, fmt.Sprintf(`{"type": "issue", "number": "%s"}`, doiObject.Issue))
}

relatedItem := []string{}
Expand All @@ -100,7 +99,7 @@ var (
}
extent := ""

Check failure on line 100 in cmd/doi.go

View workflow job for this annotation

GitHub Actions / lint-test

extent declared and not used (typecheck)

Check failure on line 100 in cmd/doi.go

View workflow job for this annotation

GitHub Actions / lint-test

extent declared and not used) (typecheck)
if doiObject.Page != "" {
extent = fmt.Sprintf(`{"attr0": "page", "number": "%s"}`, doiObject.Page)
partDetail = append(partDetail, fmt.Sprintf(`{"type": "page", "number": "%s"}`, doiObject.Page))
}

pdf := ""
Expand All @@ -124,7 +123,6 @@ var (
strings.Join(identifiers, "|"),
strings.Join(partDetail, "|"),
strings.Join(relatedItem, "|"),
extent,
doiObject.Language,
fieldRights,
strings.Join(doiObject.Subject, "|"),
Expand Down

0 comments on commit c180c68

Please sign in to comment.