diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-08-16 21:19:03 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-08-16 21:19:03 -0700 |
commit | 2bc352f30523cceda9c6f25a6ec0f0169254824d (patch) | |
tree | 3d6d35accb5e0bee29df546bd94e4df520b39de6 | |
parent | 0910e9218728c85feb562745ed5eb44d586e824d (diff) | |
download | pandoc-2bc352f30523cceda9c6f25a6ec0f0169254824d.tar.gz |
TEI template: improve publicationStmt.
Add support for publisher, address, pubPlace, and date variables.
-rw-r--r-- | data/templates/default.tei | 16 | ||||
-rw-r--r-- | test/writer.tei | 4 |
2 files changed, 17 insertions, 3 deletions
diff --git a/data/templates/default.tei b/data/templates/default.tei index 824c9f0e7..757347886 100644 --- a/data/templates/default.tei +++ b/data/templates/default.tei @@ -9,10 +9,24 @@ $for(author)$ $endfor$ </titleStmt> <publicationStmt> +$if(publicationStmt)$ <p>$if(publicationStmt)$$publicationStmt$$endif$</p> - $if(license)$ +$endif$ +$if(license)$ <availability><licence>$license$</licence></availability> $endif$ +$if(publisher)$ + <publisher>$publisher$</publisher> +$endif$ +$if(pubPlace)$ + <pubPlace>$pubPlace$</pubPlace> +$endif$ +$if(address)$ + <address>$address$</address> +$endif$ +$if(date)$ + <date>$date$</date> +$endif$ </publicationStmt> <sourceDesc> $if(sourceDesc)$ diff --git a/test/writer.tei b/test/writer.tei index 779aa337b..587a6fcca 100644 --- a/test/writer.tei +++ b/test/writer.tei @@ -8,8 +8,8 @@ <author>Anonymous</author> </titleStmt> <publicationStmt> - <p></p> - </publicationStmt> + <date>July 17, 2006</date> + </publicationStmt> <sourceDesc> <p>Produced by pandoc.</p> </sourceDesc> |