roguescholar

package
v0.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL