<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="../schemas/london_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="../schemas/london_all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0" xml:id="encode_location_doc">
    <teiHeader>
        <fileDesc>
            <titleStmt>
                <title>Location Document Template</title>
                <respStmt>
                    <resp ref="PERS1.xml#mrk">Encoder<date notBefore="2013-05"/></resp>
                    <name ref="PERS1.xml#LAND2">Tye Landels</name>
                </respStmt>
                <respStmt>
                    <resp ref="PERS1.xml#dtm">Data Manager<date notBefore="2015"/></resp>
                    <name ref="PERS1.xml#LAND2">Tye Landels</name>
                </respStmt>
                <respStmt>
                    <resp ref="PERS1.xml#prg">Junior Programmer<date notBefore="2015"/></resp>
                    <name ref="PERS1.xml#TAKE1">Joey Takeda</name>
                </respStmt>
                <respStmt>
                    <resp ref="PERS1.xml#prg">Programmer<date notBefore="2011"/></resp>
                    <name ref="PERS1.xml#HOLM3">Martin Holmes</name>
                </respStmt>
                <respStmt>
                    <resp ref="PERS1.xml#rth">Associate Project Director<date notBefore="2015"/></resp>
                    <name ref="PERS1.xml#MCFI1">Kim McLean-Fiander</name>
                </respStmt>
                <respStmt>
                    <resp ref="PERS1.xml#pdr">Project Director<date notBefore="1999"/></resp>
                    <name ref="PERS1.xml#JENS1">Janelle Jenstad</name>
                </respStmt>      
         </titleStmt>
            
            <publicationStmt>
                <publisher><title level="m">The Map of Early Modern London</title></publisher><idno type="URL">http://mapoflondon.uvic.ca/includes.xml</idno><pubPlace>Victoria, BC, Canada</pubPlace><address>
        <addrLine>Department of English</addrLine>
        <addrLine>P.O.Box 3070 STNC CSC</addrLine>
        <addrLine>University of Victoria</addrLine>
        <addrLine>Victoria, BC</addrLine>
        <addrLine>Canada</addrLine>
        <addrLine>V8W 3W1</addrLine>
    </address><date when="2016">2016</date><distributor>University of Victoria</distributor><idno type="ISBN">978-1-55058-519-3</idno><authority>
          <name ref="PERS1.xml#JENS1">Janelle Jenstad</name>
          <email>london@uvic.ca</email>
        </authority><availability>
            <p>Copyright held by <title level="m">The Map of Early Modern London</title> on behalf of the contributors.</p>
            <licence target="http://creativecommons.org/licenses/by-sa/4.0/">
              <p>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. </p>
            </licence>
            <p>Further details of licences are available from our
              <ref target="licence.xml">Licences</ref> page. For more
              information, contact the project director, <name ref="PERS1.xml#JENS1">Janelle Jenstad</name>, for
              specific information on the availability and licensing of content
              found in files on this site.</p>
        </availability>
            </publicationStmt>
            
            <sourceDesc>
                <p>Born digital.</p>
            </sourceDesc>
        </fileDesc>
        <profileDesc>
            <textClass>
                <catRef scheme="includes.xml#molDocumentTypes" target="includes.xml#mdtBornDigital"/>
                <catRef scheme="includes.xml#molDocumentTypes" target="includes.xml#mdtDocumentationEncoding"/>
            </textClass>
        </profileDesc>
        
        <encodingDesc>
    <listPrefixDef>
        <prefixDef ident="mol" matchPattern="(.+)(#.+)?" replacementPattern="../../$1.htm$2">
          <p>Most MoEML documents, or significant fragments with <att>xml:id</att> attributes, can
            be addressed using the <code>mol:</code> prefix and accessed through the web application
            with their id + <code>.xml</code>.</p>
        </prefixDef>
        <prefixDef ident="molagas" matchPattern="(.+)" replacementPattern="https://mapoflondon.uvic.ca/agas.htm?locIds=$1">
          <p>The molagas prefix points to the shape representation of a location on 
            MoEML’s OpenLayers3-based
          rendering of the Agas Map.</p>
        </prefixDef>
        <prefixDef ident="moleebo" matchPattern="([0-9]+)\|([0-9]+)" replacementPattern="http://eebo.chadwyck.com/fetchimage?vid=$1&amp;page=$2&amp;width=1200">
          <p>Links to page-images in the Chadwyck-Healey <title level="m">Early English Books Online</title> (EEBO)
            repository. Note that this is a subscription service, and may not be accessible to those
            accessing it from locations outside member institutions.</p>
        </prefixDef>
        <prefixDef ident="molebba" matchPattern="(.+)" replacementPattern="http://ebba.english.ucsb.edu/ballad/$1">
          <p>Links to page-images in the <title level="m">English Broadside Ballad Archive</title> (EBBA).</p>
        </prefixDef>
        <prefixDef ident="mdt" matchPattern="(.+)" replacementPattern="includes.xml#$1">
          <p>The mdt (MoEML Document Type) prefix used on <gi>catRef</gi>/<att>target</att> points
            to a central taxonomy in the includes file.</p>
        </prefixDef>
        <prefixDef ident="mdtlist" matchPattern="(.+)" replacementPattern="$1.xml">
          <p>The mdtlist (MoEML Document Type listing) prefix used in linking attributes points to a listings page constructed from a category in the central MDT taxonomy in the includes file. There are two variants, one with the plain <att>xml:id</att> of the category, meaning all documents in the specified category, and one with the suffix <q>_subcategories</q>, meaning all subcategories of the category.</p>
        </prefixDef>
        <prefixDef ident="molgls" matchPattern="(.+)" replacementPattern="GLOSS1.xml#$1">
          <p>The molgls (MoEML gloss) prefix used on <gi>term</gi>/<att>corresp</att> points
            to a a glossary entry in the GLOSS1.xml file.</p>
        </prefixDef>
        <prefixDef ident="molvariant" matchPattern="(.*)\|(.+)" replacementPattern="spelling_variants.xml#$2">
          <p>This molvariant prefix is used on <gi>ref</gi>/<att>target</att> attributes during automated 
          generation of gazetteer index files. It points to an element in the generated variant spellings
          listing file which lists all documents which contain a particular spelling variant for a 
          location.</p>
        </prefixDef>
        <prefixDef ident="molajax" matchPattern="(.+)" replacementPattern="../../ajax/$1.xml">
          <p>This molajax prefix is used on <gi>ref</gi>/<att>target</att> attributes during the static build 
          process, to specify links which point to MoEML resources which should not be loaded into the source 
          page during standalone processing; instead, these should be turned into links to the XML source 
          documents, and at HTML page load time, these should be turned into AJAX calls. This is to handle 
          the scenario in which a page such as an A-Z index of the whole site would end up containing 
          virtually the whole site inside itself.</p>
        </prefixDef>
        <prefixDef ident="molstow" matchPattern="(.+)|(.+)" replacementPattern="https://hcmc.uvic.ca/stow/$1/SL$1_$2.jpg">
          <p>The molstow prefix is used on <att>facs</att> attributes to link to the HCMC verison of the Stow facsimiles.
          Usually the first group is the year (1633) and then last is the image number (0001).</p>
        </prefixDef>
        
        <prefixDef ident="molshows" matchPattern="([^\|]+)\|([^\|]+)\|([^\|]+)" replacementPattern="https://hcmc.uvic.ca/~london/images/shows/$1/$2/$3.jpg">
          <p>The molshows prefix is used on <att>facs</att> attributes to link to the copies of page-images
            from mayoral shows stored in the london account on the HCMC server.
            The first group is the year (1633), the second is the source repository, and then last is the image
            file name.</p>
        </prefixDef>
        
        <prefixDef ident="sb" matchPattern="(.+)" replacementPattern="https://johnstowsbooks.library.utoronto.ca/admin/items/show/$1">
          <p>The sb prefix is used on <gi>ref</gi>/<att>target</att> attributes to link to 
          Stow’s Books URLs at UToronto.</p>
        </prefixDef>
      </listPrefixDef>
            
            <p>Our editorial and encoding practices are documented in detail in the <ref target="praxis.xml">Praxis</ref> section of our website.</p>
            
        </encodingDesc>
        
        <revisionDesc status="published">
            <change who="PERS1.xml#TAKE1" when="2015-06-23">Standardized <gi>respStmt</gi>s for JENS1, MCFI1, and HOLM3 and added TAKE1 as Junior Programmer.</change>
            <change who="PERS1.xml#HOLM3" when="2014-09-29">Added XInclude for <gi>listPrefixDef</gi> in the header.</change>
            <change who="PERS1.xml#LAND2" when="2014-08-15">Created this document as a test for web-hosted templates.</change>
        </revisionDesc>
    </teiHeader>

    <text>
        <front>
            <docTitle>
                <titlePart type="main">Location Document Template</titlePart>
            </docTitle>
        </front>
        <body>
            <div xml:id="encode_location_doc_template">
                <head>Template</head>
                <p>See <ref target="praxis.xml">Praxis</ref> for written documentation on <ref target="quickstart_adding_places.xml">how to add places</ref>.</p>
                
                
                <list rend="simple">
               <item><tag type="start" scheme="TEI">TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0" xml:id="[Insert document xml:id.]"</tag><note type="editorial" resp="PERS1.xml#LAND2">The value for the <att>xml:id</att> attribute should match the document’s filename. For more information, see docunmentation on <ref target="website_structure.xml#website_structure_docStructure">document structure</ref>.</note>
               <list rend="simple"> 
                   <item><tag type="start" scheme="TEI">teiHeader</tag><note type="editorial" resp="PERS1.xml#LAND2">We use the <gi>teiHeader</gi> to encode metadata for documents. For more information, see documentation on <ref target="encode_teiHeader.xml">encoding a <gi>teiHeader</gi></ref>.</note>
                   <list rend="simple"> 
                       <item><tag type="start" scheme="TEI">fileDesc</tag>
                           <list rend="simple"> 
                               <item><tag type="start" scheme="TEI">titleStmt</tag>
                                   <list rend="simple"> 
                                       <item><tag type="start" scheme="TEI">title</tag><code>[Insert location name.]</code><tag type="end" scheme="TEI">title</tag><note type="editorial" resp="PERS1.xml#LAND2">Use the <gi>title</gi> element to tag the location’s authority name.</note>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag><note type="editorial" resp="PERS1.xml#LAND2">For information about how to add content to the <gi>respStmt</gi> tag, see documentation on the <ref target="encode_teiHeader.xml#encode_teiHeader_respStmt">encoding responsibility statements</ref>. Note that, depending on the location document you are encoding, you may not necessarily include all the responsibilty statements listed in this template. Conversely, you may also include responsibility statements that are not listed in this document.</note>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:aut"</tag><code>Author</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:[Insert author’s xml:id.]</tag><code>[Insert author’s name.]</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:mrk"</tag><code>Encoder</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:[Insert encoder’s xml:id.]</tag><code>[Insert encoder’s name.]</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:gis"</tag><code>Geographic Information Specialist</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:[Insert geographic inofmation specialist’s xml:id.]</tag><code>[Insert geographic information specialist’s name.]</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:rth"</tag><code>Assistant Project Director</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:MCFI1"</tag><code>Kim McLean-Fiander</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:prg"</tag><code>Programmer</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:HOLM3"</tag><code>Martin Holmes</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       <item><tag type="start" scheme="TEI">respStmt</tag>
                                           <list rend="simple"> 
                                               <item><tag type="start" scheme="TEI">resp ref="molresp:pdr"</tag><code>Project Director</code><tag type="end" scheme="TEI">resp</tag>
                                               </item>
                                               <item><tag type="start" scheme="TEI">name ref="mol:JENS1"</tag><code>Janelle Jenstad</code><tag type="end" scheme="TEI">name</tag>
                                               </item>
                                           </list>
                                           <tag type="end" scheme="TEI">respStmt</tag>
                                       </item>
                                       
                                   </list>
                               </item>
                               <item><tag type="start" scheme="TEI">publicationStmt</tag>
                               <list rend="simple">
                                   <item>
                                       <tag type="start" scheme="TEI">xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../boilerplate/includes.xml" xpointer="xpointer(//publicationStmt[@xml:id=[Insert straight apostrophe character.]inc_global_publicationStmt[Insert straight apostrophe character.]]/*)" parse="xml"</tag><note type="editorial" resp="PERS1.xml#LAND2">Note that .xml document templates include actual straight apostrophe characters in the <att>xpointer</att> value field.</note>
                                       <list rend="simple">
                                           <item><tag type="start" scheme="TEI">xi:fallback</tag><tag type="start" scheme="TEI">p</tag><code>Unable to find the publicationStmt element in the includes.xml file.</code><tag type="end" scheme="TEI">p</tag><tag type="end" scheme="TEI">xi:fallback</tag></item>
                                </list>
                                   </item>
                                   <item><tag type="end" scheme="TEI">xi:include</tag></item>
                               </list>
                               <tag type="end" scheme="TEI">publicationStmt</tag>
                               </item>
                               <item><tag type="start" scheme="TEI">sourceDesc</tag><tag type="start" scheme="TEI">p</tag><code>Born digital.</code><tag type="end" scheme="TEI">p</tag><tag type="end" scheme="TEI">sourceDesc</tag></item>
                           </list>
                       </item>
                       <item><tag type="end" scheme="TEI">fileDesc</tag></item>
                       <item><tag type="start" scheme="TEI">profileDesc</tag>
                       <list rend="simple">
                         <item><tag type="start" scheme="TEI">textClass</tag>
                         <list rend="simple">
                             <item><tag type="empty" scheme="TEI">catRef scheme="mdt:molDocumentTypes" target="mdt:mdtBornDigital"</tag><note type="editorial" resp="PERS1.xml#LAND2">We use the <gi>catRef</gi> element to classify documents according to the MoEML Document Type Taxonomy. For more information, see documentation on <ref target="encode_teiHeader.xml#encode_teiHeader_mdtTaxonomy">understanding the mdt taxonomy</ref>.</note></item>
                             <item><tag type="empty" scheme="TEI">catRef scheme="mdt:molDocumentTypes" target="mdt:mdtEncyclopediaLocation"</tag></item>
                         </list>
                         </item>  
                           <item><tag type="end" scheme="TEI">textClass</tag></item>
                       </list>
                       </item>
                       <item><tag type="end" scheme="TEI">profileDesc</tag></item>
                       <item><tag type="start" scheme="TEI">encodingDesc</tag>
                       <list rend="simple">
                           <item><tag type="start" scheme="TEI">p</tag><code>Our editorial and encoding practices are documented in detail in the </code><tag type="start" scheme="TEI">ref target="mol:praxis"</tag><code>Praxis</code><tag type="end" scheme="TEI">ref</tag><code> section of our website.</code><tag type="end" scheme="TEI">p</tag></item>
                       </list>   
                       </item>
                       <item><tag type="end" scheme="TEI">encodingDesc</tag></item>
                       <item><tag type="comment" scheme="TEI"> Changes recorded here are only major changes or those resulting from 
        automated processing. Later changes should be placed first. A complete
        record of the history of any of our files is available through the Subversion
        log.</tag></item>
                       <item><tag type="start" scheme="TEI">revisionDesc status="[Insert document status.]"</tag><note type="editorial" resp="PERS1.xml#LAND2">For information about how to add content to the <gi>revisionDesc</gi> tag, see documentation on the <ref target="encode_teiHeader.xml#encode_teiHeader_revDesc">encoding revision descriptions</ref>.</note>
                           <list rend="simple">
                               <item><tag type="start" scheme="TEI">change who="[Insert your xml:id.]"</tag><code>Created document.</code><tag type="end" scheme="TEI">change</tag></item>
                               
                           </list>
                       </item>
                       <item><tag type="end" scheme="TEI">revisionDesc</tag></item>
                   </list>
               </item>
                  <item><tag type="end" scheme="TEI">teiHeader</tag></item>
                   <item><tag type="start" scheme="TEI">facsimile</tag><note type="editorial" resp="PERS1.xml#LAND2">For information about how to add content to the <gi>facsimile</gi> tag, see documentation on the <ref target="website_structure.xml#website_structure_location_docs">location document structure</ref>.</note>
               <list rend="simple">
                   <item><tag type="start" scheme="TEI">surface</tag>
                   <list rend="simple">
                      <item><tag type="empty" scheme="TEI">graphic url="[Insert image url for the Agas map square in which the location is depicted.]"</tag></item>
                       <item><tag type="empty" scheme="TEI">zone xml:id="[Insert unique xml:id.] points="[Insert pixel points of where the location is depicted in the specified Agas map image.]"</tag></item>
                   </list>
                   </item>
                   <item><tag type="end" scheme="TEI">surface</tag></item>
               </list>
               </item>
               <item><tag type="end" scheme="TEI">facsimile</tag></item>
               <item><tag type="start" scheme="TEI">text</tag>
                   <list rend="simple">
               <item><tag type="start" scheme="TEI">front</tag>
                       <list rend="simple">
                           <item><tag type="start" scheme="TEI">docTitle</tag>
                           <list rend="simple">
                               <item><tag type="start" scheme="TEI">titlePart type="main"</tag><code>[Insert location name.]</code><tag type="end" scheme="TEI">titlePart</tag><note type="editorial" resp="PERS1.xml#LAND2">Use the <gi>titlePart</gi> element to tag the location’s authority name again.</note></item>
                           </list>
                           </item>
                           <item><tag type="end" scheme="TEI">docTitle</tag></item>
                       </list>
               </item>
                       <item><tag type="end" scheme="TEI">front</tag></item>
                       <item><tag type="start" scheme="TEI">body</tag>
                       <list rend="simple">
                           <item><tag type="start" scheme="TEI">div type="placeInfo"</tag><note type="editorial" resp="PERS1.xml#LAND2">For information about how to add content to the <tag type="start" scheme="TEI">div type="placeInfo"</tag> tag, see documentation on <ref target="website_structure.xml#website_structure_location_docs">location document structure</ref> and <ref target="geo.xml">geocoding locations</ref>.</note>
                           <list rend="simple">
                               <item><tag type="start" scheme="TEI">head</tag><code>[Insert location name.]</code><tag type="end" scheme="TEI">head</tag></item>
                               <item><tag type="start" scheme="TEI">listPlace</tag>
                                  <list rend="simple">
                                      <item><tag type="start" scheme="TEI">place corresp="[Insert Agas grid identifier and location xml:id, seperated by underscore character.]"</tag>
                                          <list rend="simple">
                                              <item><tag type="start" scheme="TEI">placeName</tag><code>[Insert location name.]</code><tag type="end" scheme="TEI">placeName</tag></item>
                                              <item><tag type="start" scheme="TEI">location</tag>
                                              <list rend="simple">
                                                  <item><tag type="start" scheme="TEI">geo</tag><code>[Insert geo-coordinates.]</code><tag type="end" scheme="TEI">geo</tag><note type="editorial" resp="PERS1.xml#LAND2">For information about how to obtain and encode geo-coordinates, see documentation on <ref target="geo.xml">geocoding MoEML locations</ref>.</note></item>
                                                  
                                              </list>
                                              </item>
                                              <item><tag type="end" scheme="TEI">location</tag></item>
                                              
                                          </list>
                                      </item>
                                      <item><tag type="end" scheme="TEI">place</tag></item>
                                  </list>
                               </item>
                               <item><tag type="end" scheme="TEI">listPlace</tag></item>
                           
                           </list>
                           </item>
                           <item><tag type="end" scheme="TEI">div</tag></item>
                           <item><tag type="start" scheme="TEI">div xml:id="[Insert unique xml:id for div.]"</tag><note type="editorial" resp="PERS1.xml#LAND2">Use this <gi>div</gi> (and further <gi>div</gi> elements) to encode the main content of a location document (i.e., a stub entry, an encyclopedia article, etc.).</note></item>
                               <item><code>[Add document content.]</code></item>
                               <item><tag type="end" scheme="TEI">div</tag>
                           </item>
                          </list>
                       </item>
                       <item><tag type="end" scheme="TEI">body</tag></item>
                   </list>
               </item>
               <item><tag type="end" scheme="TEI">text</tag></item>
           </list>
            </item>
               <item><tag type="end" scheme="TEI">TEI</tag></item>
           </list></div>
        </body>
    </text>
</TEI>