[Archivesspace_Users_Group] Redundant date expression issue - another solution

Kari R Smith smithkr at mit.edu
Fri Feb 10 10:10:06 EST 2017


Hi all,
We had the same issue here at MIT and suppressed the second date line so it only shows the Date Expression.  There are a few other customizations that we put into it (like suppressing some notes and adding an MIT specific header/footer) but you can at least copy / look at the bit that suppressed the second printed unitdate.

Available at:   https://raw.githubusercontent.com/frrrances/ASpace-style/master/as-ead-pdf.xsl

Kari

Kari R. Smith
Digital Archivist and Program Head for Born-digital Archives
Institute Archives and Special Collections
Massachusetts Institute of Technology Libraries, Cambridge, Massachusetts
617.253.5690   smithkr at mit.edu   http://libraries.mit.edu/archives/  @karirene69

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Thursday, February 09, 2017 3:28 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Redundant date expression issue


Try editing archivesspace/stylesheets/as-ead-pdf.xsl

It looks like this template at the end is appending comma “,” and unitdate to the unit title in the first block, and then calling the unitdate template a second time in the next block.

If you edit one of those out, it should produce what you want.  — Steve.


    <!-- Unittitles and all other clevel elements -->
    <xsl:template match="ead:did" mode="dsc">
        <fo:block margin-bottom="0">
            <xsl:apply-templates select="ead:unittitle"/>
            <xsl:if test="(string-length(ead:unittitle[1]) > 1) and (string-length(ead:unitdate[1]) > 1)">, </xsl:if>
            <xsl:apply-templates select="ead:unitdate" mode="did"/>
        </fo:block>
        <fo:block margin-bottom="4pt" margin-top="0">
            <xsl:apply-templates select="ead:repository" mode="dsc"/>
            <xsl:apply-templates select="ead:origination" mode="dsc"/>
            <xsl:apply-templates select="ead:unitdate" mode="dsc"/>
            <xsl:apply-templates select="ead:physdesc" mode="dsc"/>
            <xsl:apply-templates select="ead:physloc" mode="dsc"/>
            <xsl:apply-templates select="ead:dao" mode="dsc"/>
            <xsl:apply-templates select="ead:daogrp" mode="dsc"/>
            <xsl:apply-templates select="ead:langmaterial" mode="dsc"/>
            <xsl:apply-templates select="ead:materialspec" mode="dsc"/>
            <xsl:apply-templates select="ead:abstract" mode="dsc"/>
            <xsl:apply-templates select="ead:note" mode="dsc"/>
        </fo:block>
    </xsl:template>



On Feb 9, 2017, at 2:43 PM, Lewis, Kylie <lewis at towson.edu<mailto:lewis at towson.edu>> wrote:

Good afternoon,

While exporting finished finding aids to PDFs, we noticed that the date expression field is creating a visually redundant copy of the date such as the image attached. Is there a way to remove the redundancy while being able to maintain a date expression? Or is this a case of possibly having to include the date in the title to remove the redundancy? Any tips would be greatly appreciated!


Kylie Lewis · Library Associate
Special Collections and University Archives
Towson University<https://www.towson.edu/> · 8000 York Road · Towson, Maryland,  21252-0001
t. 410-704-3389 · f. 410-704-3760
<image001.png><https://www.facebook.com/towsonuniversity> <image002.png><https://twitter.com/TowsonU> <image003.png><https://www.linkedin.com/edu/school?id=18562> <image004.png><https://www.instagram.com/towsonuniversity/>

<image005.gif>

Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Special Collections and University Archives at 410-704-2093.

<Redundant dates.JPG>_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170210/858960d4/attachment.html>


More information about the Archivesspace_Users_Group mailing list