DCLP / dclpxsltbox

Sandbox for development, testing, and review of XSLT for DCLP

Home Page:http://dclp.github.io/dclpxsltbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No DCLP data templates

ryanfb opened this issue · comments

I would expect a template for DCLP data here: https://github.com/DCLP/sosol/tree/master/data/templates

See e.g. https://github.com/DCLP/sosol/blob/master/app/models/identifier.rb#L217-L256

I would expect this to be used when creating a new DCLP text+meta file from scratch.

Related to #326.

@ryanfb

Is this in any way a helpful suggestion (made by my hack of ddb and hgv identifer templates) ? :

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.stoa.org/epidoc/schema/8.23/tei-epidoc.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
   <!-- changed 8.16 to 8.23 -->
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title><%= title %></title>
      </titleStmt>
      <publicationStmt>
        <authority>Duke Collaboratory for Classics Computing (DC3)</authority>
        <idno type="filename"><%= id %></idno>
        <idno type="dclp"><%= id %></idno>
        <idno type="dclp-hybrid"><%= n %></idno>
        <idno type="LDAB"><%= id %></idno>
        <idno type="TM"><%= id %></idno>
   <!-- all idnos are the same apart from dclp-hybrid. I suspect we have to declare a SoSOL 2017 \d+ 
        here. We can enter the TM number (= <%= id %>) when we know it, as we very often will, but 
        will still need the SoSOL 2017 \d+ as a placeholder.
        As there are no dependencies on HGV, no cross references, because everything is in one file
        there is no need for related_metas here, I think-->
        <%- end -%>
        <availability>
          <p>© Duke Databank of Documentary Papyri. This work is licensed under a
          <ref type="license" target="http://creativecommons.org/licenses/by/3.0/">Creative 
          Commons Attribution 3.0 License</ref>.</p>
        </availability>
      </publicationStmt>
      <sourceDesc>
        <msDesc>
          <msIdentifier>
            <placeName>
               <settlement>unbekannt</settlement>
            </placeName>
          </msIdentifier>
          <physDesc>
            <objectDesc>
              <supportDesc>
                <support>
                  <material>Papyrus</material>
                </support>
              </supportDesc>
            </objectDesc>
          </physDesc>
          <history>
            <origin>
              <origPlace>unbekannt</origPlace>
              <origDate>unbekannt</origDate>
            </origin>
          </history>
        </msDesc>
  <!-- as found in the relevant position in 
      https://github.com/DCLP/sosol/blob/master/data/templates/hgv_meta_identifier.xml.erb
      -->
      </sourceDesc>
    </fileDesc>
    <encodingDesc>
         <p>
                This file encoded to comply with EpiDoc Guidelines and Schema version 8
                <ref>http://www.stoa.org/epidoc/gl/5/</ref>
         </p>
    </encodingDesc>
    <profileDesc>
      <langUsage>
        <language ident="en">English</language>
        <language ident="grc">Greek</language>
      </langUsage>
    </profileDesc>
    <revisionDesc>
      <change when="<%= Time.now.xmlschema %>" who="http://papyri.info/editor">Automated creation from template</change>
    </revisionDesc>
  </teiHeader>
  <text>
    <body>
      <head xml:lang="en"/>
      <div xml:lang="grc" type="edition" xml:space="preserve">
<ab>
<lb n="1"/>
</ab>
      </div>
    </body>
    <div type="bibliography" subtype="principalEdition">
        <listBibl>
          <bibl type="publication" subtype="principal">
            <title level="s" type="abbreviated"><%= n %></title><!-- provide meaningful data -->
            <biblScope unit="volume"><%= n %></biblScope><!-- provide meaningful data -->
            <biblScope unit="number"><%= n %></biblScope><!-- provide meaningful data -->
    <!-- I do not think that this is where we need SoSOL 2017 \d+ -->
          </bibl>
        </listBibl>
    </div>
  </text>
</TEI>

Have I missed something out? I am sure I will have.