Print

Print


Yes, that should fix the problem alright, since <extref> can never be a 
direct child of <dsc>, it will never match that template now (unless, of 
course, your XML is EAD invalid). ;)

Franks, Russell wrote:
> Thank you everyone,
> 
> I have the exact same <xsl:template match="extref | archref"> template in my style sheet, but that wasn't the issue.  A few lines down is <!--TEMPLATE 16.2: OUTPUT <extref> TO HTML <a href>, puts link on a new line.-->
> 
> <xsl:template match="ead/archdesc/dsc/extref">.  
> 
> Instead of the preceding, somehow an extra '/' was between dsc/extref (dsc//extref).  I removed that extra '/' and now the links open up in a new browser window as they should.
> 
> Thanks again for the pointers!   
> 
> 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]
> [log in to unmask]
> http://www.providence.edu/archives
>  
> 
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Michele R Combs
> Sent: Monday, June 08, 2009 11:45 AM
> To: [log in to unmask]
> Subject: Re: <extref> in <addressline>
> 
> What were you trying to change in the DTD?  The DTD shouldn't affect what you want to output in your HTML.  We use show="new" with no problem.  The style sheet may need editing, though.  Ours is as follows  (note that the proper HTML code is "_blank" with the first character being an underscore):
> 
>    <xsl:template match="extref | archref">
>       <xsl:choose>
>          <xsl:when test="self::extref[@show='new']">
>             <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
>          </xsl:when>
>          <xsl:otherwise>
>             <a href="{@href}"><xsl:apply-templates/></a>
>          </xsl:otherwise>
>       </xsl:choose>
>    </xsl:template>
> 
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Franks, Russell
> Sent: Monday, June 08, 2009 10:46 AM
> To: [log in to unmask]
> Subject: Re: <extref> in <addressline>
> 
> Hello,
> 
> 
> While we have been able to implement the use of the <extref> tags successfully, using the show="new" attribute has no effect. I want the user to be able to open the resource in a new browser window. The HTML coding for this should be target="blank", but the DTD, and apparently the schema version as well, doesn't allow for this.
> 
> I tried hacking my local copy of the DTD as an experiment, but that didn't work. So do I not worry about the user employing the browser back button to return to the finding aid, or do I need to look at my style sheets to solve this. What am I missing?  Any ideas would be greatly helpful.
> 
> 
> Thanks in advance, 
> 
> 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]
> [log in to unmask]
> http://www.providence.edu/archives
>  
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Custer, Mark
> Sent: Wednesday, May 27, 2009 1:31 PM
> To: [log in to unmask]
> Subject: Re: <extref> in <addressline>
> 
> To clarify:  When I said "full-fledged" I should've said "fully hosted."  These two examples are listed in ArchiveGrid, but they point back to your website (where you could easily display whatever Addresss/URL information via your stylesheet or su_address.xml file).  I was speculating about a different issue/problem.
> 
> It'd be nice if there was something like a consortial database of EAD records that could be searched cross-institutionally.  Give me everything they've got that has material from 1818, for example.
> 
> Otherwise, I'd say that Google ranks as the best online directory for archival records (especially if you limit the domains that are searched).  In fact, nearly 75% of our traffic over the last year has been driven by external search engines.  For that reason and more, yes, we include links to our homepages on all of our finding aids.
> 
> Back to the question at hand, though:
> 
> I guess that everything comes down to the design philosophy of EAD.  It seems to be created to be generic enough for a multitude of uses, whether those uses be termed standardized, abusive, or innovative (For instance, I've encoded relative links to our MARC records by means of the <num> tags and our ILS's "bib numbers").  Though it's meant to be human-readable, I wouldn't say that it's meant to be semantic (though perhaps future revisions will go that route).
> 
> So, after thinking about it some more, I wouldn't see a problem with any of those three options, assuming that you did want/need to encode that information in the EAD itself:
> 
> <addressline><extptr xlink:href="www.wherever.com"/>...  [After looking again, the documentation does include the example of "pointers to an institution's web page", so I'd assume that that's why they didn't include the more robust <extref> in the <addressline> field]
> 
> Or
> 
> <addressline>URL:www.wherever.com...
> 
> OR
> 
> ...</addressline>
> <p><extref xlink:href="www.wherever.com">www.wherever.com... 
> 
> 
> 
> 
> Mark Custer
> 
> 
> 
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Michele R Combs
> Sent: Wednesday, May 27, 2009 11:31 AM
> To: [log in to unmask]
> Subject: Re: <extref> in <addressline>
> 
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Custer, Mark
> Sent: Wednesday, May 27, 2009 10:36 AM
> To: [log in to unmask]
> Subject: Re: <extref> in <addressline>
> 
>> After doing some cursory searching in ArchiveGrid and Archives USA, however, I couldn't find 
>> any examples of full-fledged finding aids that had links back to the institution's homepage 
> 
> All of ours do -- two examples: William Langner Papers, http://archivegrid.org/web/jsp/s.jsp?q=william+langner or  http://library.syr.edu/digital/guides/l/langner_w.htm  and Adams Wistar Record Book http://archivegrid.org/web/jsp/s.jsp?q=adams+wistar or http://library.syr.edu/digital/guides/a/adams_wistar.htm .
> 	
> One excellent argument for including a link back to the home page is that increasingly people run across finding aids via a Google search, which means they didn't navigate through our home page and may have no idea where this stuff they're looking at lives.
> 
> Michele
> 
> (be green - don't print this email!)
> ~~~~~~~~~~~~~~~~~~
> Michele Combs
> Manuscripts Librarian
> Special Collections Research Center
> Syracuse University Libraries
> 222 Waverly Ave.
> Syracuse, NY  13244
> 315-443-2081
> [log in to unmask]
> ~~~~~~~~~~~~~~~~~~