aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-19 20:20:44 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-19 20:21:21 -0700
commit698399c49edcefe33c012856b604985925969a77 (patch)
tree04a9dc32cd996522a5d439a5504c404727367791
parent66cdee845f281986ca3fc33743aed2d90776a76d (diff)
downloadfatcat-698399c49edcefe33c012856b604985925969a77.tar.gz
fatcat-698399c49edcefe33c012856b604985925969a77.zip
ISO 639-1 for language codes
-rw-r--r--fatcat-openapi2.yml1
-rw-r--r--notes/alignments.csv2
-rw-r--r--rust/migrations/2018-05-12-001226_init/up.sql2
3 files changed, 3 insertions, 2 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index c4bf9e16..8403f644 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -166,6 +166,7 @@ definitions:
publisher:
type: string
language:
+ description: "Two-letter RFC1766/ISO639-1 language code, with extensions"
type: string
contribs:
type: array
diff --git a/notes/alignments.csv b/notes/alignments.csv
index d6d2c171..b8619ddc 100644
--- a/notes/alignments.csv
+++ b/notes/alignments.csv
@@ -13,7 +13,7 @@ RELEASE,,,,,,,Instance,,,,,,
,doi,always lower-case,DOI,,doi,DOI,,Identifier,,,,citation_doi,
,isbn13,,ISBN (converted),,,ISBN,,Identifier,,,,citation_isbn,
,publisher,,publisher,,publisher,,,Publisher,,,,"citation_dissertation_institution, citation_technical_report_institution",
-,language,NEW; ISO 639-3 (3 char),,,,,,Language,,,,,
+,language,NEW; RFC1766 (ISO 639-1 superset); may transition,,,,,,Language,,,,,
,ref:index,,reference:[index],,,Citation-number,,,,,,,
,ref:key,NEW,reference:key,,,citation-label,,,,,,,
,ref:raw,RENAME,reference:unstructured,,,,,,,,,,
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql
index 1973e69d..165bf123 100644
--- a/rust/migrations/2018-05-12-001226_init/up.sql
+++ b/rust/migrations/2018-05-12-001226_init/up.sql
@@ -141,7 +141,7 @@ CREATE TABLE release_rev (
issue TEXT,
pages TEXT,
publisher TEXT, -- for books, NOT if container exists
- language TEXT -- primary language of the work's fulltext
+ language TEXT -- primary language of the work's fulltext; RFC1766/ISO639-1
-- TODO: identifier table?
);