Skip to content

Commit

Permalink
adding working crossref and datacite reader
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Apr 17, 2024
1 parent 4b30c80 commit d0cf495
Show file tree
Hide file tree
Showing 146 changed files with 5,681 additions and 743 deletions.
20 changes: 7 additions & 13 deletions cff/cff.go
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
}
20 changes: 7 additions & 13 deletions codemeta/codemeta.go
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
}
8 changes: 8 additions & 0 deletions commonmeta/commonmeta.go
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
}
Loading

0 comments on commit d0cf495

Please sign in to comment.