Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateLegacyRecord ¶
func UpdateLegacyRecord(record commonmeta.APIResponse, legacyKey string, field string) (commonmeta.APIResponse, error)
UpdateLegacyRecord updates a record in Rogue Scholar legacy database.
Example ¶
package main
import (
"fmt"
"github.com/front-matter/commonmeta/commonmeta"
"github.com/front-matter/commonmeta/roguescholar"
)
func main() {
record := commonmeta.APIResponse{
ID: "https://doi.org/10.7554/elife.01567",
}
_, err := roguescholar.UpdateLegacyRecord(record, "", "doi")
fmt.Println(err)
}
Output: no legacy key provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.