-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding working crossref and datacite reader
- Loading branch information
Showing
146 changed files
with
5,681 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
package cff | ||
|
||
import "commonmeta/metadata" | ||
import "commonmeta/types" | ||
|
||
type Record struct { | ||
URL string `json:"URL"` | ||
func GetCFF(pid string) (types.Content, error) { | ||
var content types.Content | ||
return content, nil | ||
} | ||
|
||
var result Record | ||
|
||
func GetCFF(pid string) (Record, error) { | ||
var r Record | ||
return r, nil | ||
} | ||
|
||
func ReadCFF(record Record) (metadata.Metadata, error) { | ||
var m metadata.Metadata | ||
return m, nil | ||
func ReadCFF(content types.Content) (types.Data, error) { | ||
var data types.Data | ||
return data, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
package codemeta | ||
|
||
import "commonmeta/metadata" | ||
import "commonmeta/types" | ||
|
||
type Record struct { | ||
URL string `json:"URL"` | ||
func GetCodemeta(pid string) (types.Content, error) { | ||
var content types.Content | ||
return content, nil | ||
} | ||
|
||
var result Record | ||
|
||
func GetCodemeta(pid string) (Record, error) { | ||
var r Record | ||
return r, nil | ||
} | ||
|
||
func ReadCodemeta(record Record) (metadata.Metadata, error) { | ||
var m metadata.Metadata | ||
return m, nil | ||
func ReadCodemeta(content types.Content) (types.Data, error) { | ||
var data types.Data | ||
return data, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package commonmeta | ||
|
||
import "commonmeta/types" | ||
|
||
func ReadCommonmeta(content types.Content) (types.Data, error) { | ||
var data types.Data | ||
return data, nil | ||
} |
Oops, something went wrong.