Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch and parse NIST documents using relaton-nist fetcher and parser #237

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mico
Copy link
Contributor

@mico mico commented Oct 15, 2024

closes #233

@mico mico requested a review from ronaldtse October 15, 2024 10:21
@mico mico force-pushed the allrecords-new-schema branch from 3eb525b to b30cfc6 Compare November 1, 2024 07:12
@mico mico requested a review from andrew2net November 3, 2024 13:11
.xpath("/body/query/doi_record/report-paper/report-paper_metadata")
.map { |doc| parse_docid doc }
LocMods::Collection.from_xml(OpenURI.open_uri(URL)).mods.map do |doc|
url = doc.location.reduce(nil) { |m, l| m || l.url.detect { |u| u.usage == "primary display" } }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have class methods that parses title and DOI outside the loop? So these methods could be used in relaton-nist

Pubid::List::NistTechPubs.parse_doi(doc) => "NIST.IR.841"
Pubid::List::NistTechPubs.parse_title(doc) => "Status report ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update schema parser and data source for all records.xml
2 participants