Hi Fred,
You say 858, do you mean 856? A URL generally goes into 856$u. More info here: http://www.loc.gov/marc/bibliographic/concise/bd856.html

I hope this helps,
Bob Birchall
Calyx

On 17/03/16 05:34, King, Fred wrote:
Hello, all,

I'm using Koha 3.20.05 on Ubuntu 14.04.

I'm trying to add a new MARC field that's a URL. I've created field 858 in the MARC 
framework, then added subfields a and b. Under Advanced Constraints in subfield b I 
checked the box "Is a URL." The description says:
    Subfield, Text, Constraints
    a, ORCID, Tab:8, Repeatable, Not mandatory
    b, ORCID link, Tab:8, Repeatable, Not mandatory, is a URL

Under Cataloging preferences, the URLLinkText is blank.

The coding for the field in the detail xsl file is this:

             <xsl:if test="marc:datafield[@tag=858]">
                   <span class="results_summary authors">
                         <span class="label">ORCID: </span>
                         <xsl:for-each select="marc:datafield[@tag=858]">
                               <xsl:call-template name="subfieldSelect">
                                     <xsl:with-param 
name="codes">ab</xsl:with-param>
                               </xsl:call-template>
                               <!-- added to put semi-colon and space between 
entries -->
                               <xsl:choose>
                                     <xsl:when test="position()=last()">
                                           <xsl:text>.</xsl:text>
                                     </xsl:when>
                                     <xsl:otherwise>
                                           <xsl:text>; </xsl:text>
                                     </xsl:otherwise>
                               </xsl:choose>
                         </xsl:for-each>
                   </span>
             </xsl:if>


The problem is that when I search for a record containing this field, the text for the b 
subfield appears, but it isn't a URL-I can see it, but I can't click on it. I tried 
putting the b subfield in "http://a.web.link.us"; format; I didn't think it 
would work, and it doesn't.

Any suggestions as to what I'm doing wrong? I couldn't find an answer in the 
manual or online.

Fred King
Medical Librarian, MedStar Washington Hospital Center

_______________________________________________
Koha mailing list  http://koha-community.org
[email protected]
https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to