Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

information in idno should be displayed #14

Closed
holfordm opened this issue Jun 6, 2017 · 1 comment
Closed

information in idno should be displayed #14

holfordm opened this issue Jun 6, 2017 · 1 comment
Assignees

Comments

@holfordm
Copy link
Collaborator

holfordm commented Jun 6, 2017

if I am right the <msIdentifier> section of records with the manuscript shelfmark is currently being supplied by blacklight.
We don't want all the <msidentifier> information included in convert2HTML to be displayed.
However we DO want the Summary Catalogue no. and other identifiers to be displayed - all the following material in fact.

<xsl:when test="idno/@type='SCN' or @type='SCN'">Summary Catalogue no.:</xsl:when>
                           <xsl:when test="@type='TM' or idno/@type='TM'">Trismegistos no.:</xsl:when>
                           <xsl:when test="@type='PR'">Papyrological Reference:</xsl:when>
                           <xsl:when test="@type='diktyon'">Diktyon no.:</xsl:when>
                           <xsl:when test="@type='LDAB'">LDAB no.:</xsl:when>
@IgnatG IgnatG assigned ahankinson and unassigned IgnatG Jun 6, 2017
@holfordm
Copy link
Collaborator Author

I think this should work (as long as there is no conflict with other msIdentifier or altIdentifier rules ... )

<!-- altidentifier/idno is all we want from this section, and not if subtype="alt" -->
    <xsl:template match="msIdentifier/altIdentifier/idno[not(@subtype)]">
        <li class="{name()}">
            <span class="tei-label">
              
                    <xsl:choose>
                            <!--<xsl:when test="idno/@type='shelfmark' or @type='shelfmark'">ShelfMark:</xsl:when>-->
                        <!-- spaces after ':' added 26.6 -->
                            <xsl:when test="@type='SCN'">Summary Catalogue no.: </xsl:when>
                            <xsl:when test="@type='TM' or idno/@type='TM'">Trismegistos no.: </xsl:when>
                            <xsl:when test="@type='PR'">Papyrological Reference: </xsl:when>
                            <xsl:when test="@type='diktyon'">Diktyon no.: </xsl:when>
                            <xsl:when test="@type='LDAB'">LDAB no.: </xsl:when>
                        </xsl:choose>
                 
            </span>
            <xsl:apply-templates/>
        </li>
    </xsl:template>

holfordm pushed a commit that referenced this issue Aug 30, 2019
pull from Bod master to TA 29/8/2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants