git.iko.soy/typeable/pandoc
on master help sign in
TEI template: improve publicationStmt.

Add support for publisher, address, pubPlace, and date variables.

commit2bc352f30523cceda9c6f25a6ec0f0169254824d authorJohn MacFarlane <jgm@berkeley.edu> dateThu 16 Aug 2018, 21:19 (8 years ago) parent0910e92
2 files changed+17−3
data/templates/default.tei+15−1 test/writer.tei+2−2
data/templates/default.tei+15−1
@@ -9,9 +9,23 @@ $for(author)$
99$endfor$
1010 </titleStmt>
1111 <publicationStmt>
12+$if(publicationStmt)$
1213 <p>$if(publicationStmt)$$publicationStmt$$endif$</p>
13− $if(license)$
14+$endif$
15+$if(license)$
1416 <availability><licence>$license$</licence></availability>
17+$endif$
18+$if(publisher)$
19+ <publisher>$publisher$</publisher>
20+$endif$
21+$if(pubPlace)$
22+ <pubPlace>$pubPlace$</pubPlace>
23+$endif$
24+$if(address)$
25+ <address>$address$</address>
26+$endif$
27+$if(date)$
28+ <date>$date$</date>
1529$endif$
1630 </publicationStmt>
1731 <sourceDesc>
test/writer.tei+2−2
@@ -8,8 +8,8 @@
88 <author>Anonymous</author>
99 </titleStmt>
1010 <publicationStmt>
11− <p></p>
12− </publicationStmt>
11+ <date>July 17, 2006</date>
12+ </publicationStmt>
1313 <sourceDesc>
1414 <p>Produced by pandoc.</p>
1515 </sourceDesc>