After change in test_http_urls
[pazpar2-moved-to-github.git] / etc / tmarc.xsl
index f561f81..f652de1 100644 (file)
        <xsl:when test="$typeofrec='c' or $typeofrec='d'">music-score</xsl:when>
        <xsl:when test="$form1='a' or $form1='b' or $form1='c'">microform</xsl:when>
        <xsl:when test="$typeofrec='t'">thesis</xsl:when>
-        <xsl:when test="$journal_title">article</xsl:when>
+        <!-- <xsl:when test="$journal_title">article</xsl:when> -->
        <xsl:when test="$typeofrec='a' or $typeofrec='i' and
-           ($typeofserial='d' or $typeofserial='w')">data</xsl:when>
+           ($typeofserial='d' or $typeofserial='w')">web</xsl:when>
        <xsl:when test="$typeofrec='a' and $biblevel='b'">article</xsl:when>
-       <xsl:when test="$typeofrec='m'">software</xsl:when>
+       <xsl:when test="$typeofrec='m'">electronic</xsl:when>
         <xsl:when test="$title_medium">
           <xsl:value-of select="translate($title_medium, ' []/:', '')" />
         </xsl:when>
 
       <pz:metadata type="medium">
         <xsl:value-of select="$medium" />
-      </pz:metadata>
-
-      <pz:metadata type="electronic">
-        <xsl:value-of select="$electronic"/>
+       <xsl:if test="string-length($electronic) and $medium != 'electronic'">
+         <xsl:text> (electronic)</xsl:text>
+       </xsl:if>
       </pz:metadata>
 
       <xsl:for-each select="tmarc:d900/tmarc:sa">