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

urgent documentation updates #119

Open
kmcdono2 opened this issue Jun 26, 2023 · 3 comments
Open

urgent documentation updates #119

kmcdono2 opened this issue Jun 26, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@kmcdono2
Copy link
Member

kmcdono2 commented Jun 26, 2023

Requests for documentation:

  • which id and code fields in the lwmdb map onto pre-existing ids from METS/ALTO from newspaper collections (e.g. is newspaper_code = NLP #?)

Would be ideal to include this in db schema somehow.

@griff-rees
Copy link
Collaborator

Quoting https://github.com/Living-with-machines/data-culture-newspapers/issues/25 (thanks @mcollardanuy):

An example in a table provided to link records with lwmdb Newspaper records:

NLP,issue,art_num
3406,1208,art0039

In this case

  • The NLP column -> Newspaper.publication_code field. The import process adds 000 in front -> 0003406
  • The issues column -> Issue.issue_code field (an Issue of a Newspaper). In the example. 1208 is mmdd (and querying indicates the year in that example is 1888). This fits the issue_code field in Issue.issue_code -> 0003406-18881208 which matches 000{NLP}-{YYYY}{MM}{DD}
  • The art_num column -> Item.item_code field (an Item of an Issue, such as an article or add). Here art0039, would be stored as Item.item_code 003406-18881208-art0039.

@griff-rees griff-rees added the documentation Improvements or additions to documentation label Jul 7, 2023
@kmcdono2
Copy link
Member Author

kmcdono2 commented Jul 7, 2023

@griff-rees - fantastic!

Q: is the way issues & art_num expressed the same way/format across providers (e.g. BNA/JISC/HMD/LWM)?

@griff-rees
Copy link
Collaborator

griff-rees commented Jul 19, 2023

Thanks @kmcdono2: will hopefully be easier to test this now #121 is closed (all of those fields have now been indexed).

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

No branches or pull requests

2 participants