Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add conceptual mapping
- Loading branch information
Klaus Thoden
committed
Aug 17, 2018
1 parent
735a675
commit 501cf86
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
This is a mapping of the fields in `publication.cfg` to their counterparts in a TEI header | ||
|
||
# Mandatory values (according to database schema) | ||
- publicationdate: //t:teiHeader/t:fileDesc/t:publicationStmt/t:date/@when | ||
- language: //t:teiHeader/t:profileDesc/t:langUsage/t:language/@ident | ||
- license: //t:teiHeader/t:fileDesc/t:publicationStmt/t:availability/t:licence/text() | ||
- number: //t:teiHeader/t:fileDesc/t:titleStmt/t:title[@level='s']/@n | ||
- series: //t:teiHeader/t:fileDesc/t:titleStmt/t:title[@level='s']/text() | ||
- title: //t:teiHeader/t:fileDesc/t:titleStmt/t:title[@type='main']/text() | ||
|
||
# Optional values (according to database schema) | ||
- subtitle: //t:teiHeader/t:fileDesc/t:titleStmt/t:title[@type='sub']/text() | ||
- isbn: //t:teiHeader/t:fileDesc/t:publicationStmt/t:idno[@type='ISBN']/text() | ||
- pages: //t:teiHeader/t:fileDesc/t:extent/t:measure[@commodity='pages']/@quantity | ||
- price: //t:teiHeader/t:fileDesc/t:extent/t:measure[@type='price']/@quantity | ||
- shoplink_url: //t:teiHeader/t:fileDesc/t:publicationStmt/t:idno[@type='shoplink'] | ||
- brief_desc: //t:teiHeader/t:profileDesc/t:abstract[@n='BriefDescription'] | ||
- detail_desc: //t:teiHeader/t:profileDesc/t:abstract[@n='DetailedDescription'] | ||
- additional_info: //t:teiHeader/t:fileDesc/t:sourceDesc/t:abstract[@n='additionalinformation'] | ||
- dedication: //t:text/t:front/t:div[@type='dedication']/t:ab/text() | ||
- submitters: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='submitter']" | ||
- publicationmanagers: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='publicationmanager']" | ||
- publicationassistants: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='publicationassistant']" | ||
- editorialcoordinators: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='editorialcoordinator']" | ||
- copyeditors: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='copyeditor']" | ||
- translators: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='translator']" | ||
- keywords: //t:teiHeader/t:profileDesc/t:textClass/t:keywords/t:list/t:item" | ||
- authors: //t:teiHeader/t:fileDesc/t:titleStmt/t:author" | ||
- editors: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor[@role='volumeditor']" | ||
- zusatz: //t:teiHeader/t:fileDesc/t:titleStmt/t:editor" | ||
- suggestedcitation: //t:teiHeader/t:fileDesc/t:sourceDesc/t:bibl/text() |