Ryan, You're a genius. Works perfectly! Many thanks - Russ Russell Franks Librarian Special and Archival Collections Phillips Memorial Library Providence College 1 Cunningham Square Providence, RI 02918-0001 401-865-2578 [log in to unmask]<mailto:[log in to unmask]> [log in to unmask]<mailto:[log in to unmask]> http://www.providence.edu/archives ________________________________ From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Wick, Ryan Sent: Thursday, December 03, 2009 4:51 PM To: [log in to unmask] Subject: Re: New tool on EAD Help Pages When you're outputting the name value for the anchor, don't include the #. So this: <a> <xsl:attribute name="name"> <xsl:text>#subseries</xsl:text> <xsl:number count="c01" from="dsc"/> ... should justhave <xsl:text>subseries</xsl:text> When you are linking to this, use the #. http://www.htmlcodetutorial.com/linking/_A_NAME.html I'm pretty sure that's it, but alsomake sure all of the named anchors are unique. If you're still having problems, please post a page and/or output code we can look at. Ryan Wick Information Technology Consultant Special Collections Oregon State University Libraries http://osulibrary.oregonstate.edu/specialcollections ________________________________ From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Franks, Russell Sent: Thursday, December 03, 2009 1:27 PM To: [log in to unmask] Subject: Re: New tool on EAD Help Pages Thanks Joyce for the new innovations. I unfortunately have not been able to implement Hyperlinked Series Quick Links as in would be nice to have the subseries show up in the arrangement - but I keep getting an xpath error. In any event, my real question along similar lines is that I've been able to get a subseries listing in the TOC. (ex: http://www.providence.edu/library/archives/fa/xml/rppc_qpnas.xml ) The odd thing is that the subseries links works in IE, but not Firefox. Now how bizarre is that! This is the code for the TOC in the modified eadcbs2: <xsl:for-each select="archdesc/dsc/c01[ @level='series' or @level='subseries' or @level='subgrp' or @level='subcollection']"> <p style="margin-top:-5.5pt"> <a> <xsl:attribute name="href"> <xsl:text>#series</xsl:text> <xsl:number count="c01" from="dsc"/> </xsl:attribute> <xsl:choose> <xsl:when test="did/unittitle/unitdate"> <xsl:for-each select="did/unittitle"> <xsl:value-of select="text()"/> <xsl:text> </xsl:text> <xsl:apply-templates select="./unitdate"/> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="did/unittitle"/> <xsl:text> </xsl:text> <xsl:apply-templates select="did/unitdate"/> </xsl:otherwise> </xsl:choose> </a> </p> <xsl:for-each select="c02[@level='subseries']"> <p style="margin-top:-5.5pt; margin-left:15pt"> <a> <xsl:attribute name="href"> <xsl:text>#subseries</xsl:text> <xsl:number count="c01" from="dsc"/> <xsl:text>-</xsl:text> <xsl:number count="c02" from="c01"/> </xsl:attribute> <xsl:choose> <xsl:when test="did/unittitle/unitdate"> <xsl:for-each select="did/unittitle"> <xsl:value-of select="text()"/> <xsl:text> </xsl:text> <xsl:apply-templates select="./unitdate"/> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="did/unittitle"/> <xsl:text> </xsl:text> <xsl:apply-templates select="did/unitdate"/> </xsl:otherwise> </xsl:choose> </a> </p> </xsl:for-each> </xsl:for-each> The code for the subseries template in the modified dsc6: <a> <xsl:attribute name="name"> <xsl:text>#subseries</xsl:text> <xsl:number count="c01" from="dsc"/> <xsl:text>-</xsl:text> <xsl:number count="c02" from="c01"/> </xsl:attribute> <xsl:call-template name="subseries-component-did"/> </a> Generally it's IE that doesn't like to play nice, but in this case it's Firefox that's playing the devil. It's like href anchors are not getting generated for the subseries in Firefox. I get the same result when creating static html pages as well. Any thoughts on what I'm missing or a work around will be greatly helpful. Thanks in advance - Russ Russell Franks Librarian Special and Archival Collections Phillips Memorial Library Providence College 1 Cunningham Square Providence, RI 02918-0001 401-865-2578 [log in to unmask]<mailto:[log in to unmask]> [log in to unmask]<mailto:[log in to unmask]> http://www.providence.edu/archives ________________________________ From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Michele R Combs Sent: Thursday, December 03, 2009 9:25 AM To: [log in to unmask] Subject: Re: New tool on EAD Help Pages Fantastic, can't wait to play with it! Thanks, Joyce - Michele From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Joyce Chapman Sent: Thursday, December 03, 2009 9:15 AM To: [log in to unmask] Subject: New tool on EAD Help Pages For those interested, there's a new tool out on the EAD Help Pages, http://www.archivists.org/saagroups/ead/tools.html (description below). I tried to make the instructions really detailed so that people at institutions without much tech support or who don't have much experience with XSL could implement them. "Objective: Instructions and code for adding three functionalities to your EAD Web display: 1. Collapsible sections 2. Hyperlinked Series Quick Links 3. Alternating colors in the Container List All code is from the 2009 finding aid Web display redesign at Wilson Library at the University of North Carolina at Chapel Hill. This zip file contains an HTML and XML file as well as a PDF file. The PDF contains the necessary XSL, CSS, and JavaScript code, instructions on how to integrate the modifications into your stylesheet, and some troubleshooting hints. The HTML and XML are an example finding aid." Thanks, Joyce -- Joyce Chapman NCSU Libraries Fellow Metadata and Cataloging/ Digital Library Initiatives [log in to unmask]<mailto:[log in to unmask]>