added sum by some departments and fixes to garbage data
[koha-bibliografija] / compact.xsl
index f9ccd60..c9bf376 100644 (file)
 
                <br/>
         <xsl:call-template name="showAuthor100">
-                       <xsl:with-param name="authorfield100" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
+                       <xsl:with-param name="authorfield100" select="marc:datafield[@tag=100]"/>
                </xsl:call-template>
                <xsl:choose>
                <xsl:when test="marc:datafield[@tag=942]/marc:subfield[@code='c'] != 'KNJ' or marc:datafield[@tag=100]/marc:subfield[@code='a']">
                                <xsl:call-template name="showAuthor700">
-                                       <xsl:with-param name="authorfield700" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/>
+                                       <xsl:with-param name="authorfield700" select="marc:datafield[@tag=700]"/>
                                </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                                <xsl:call-template name="showAuthor700k">
-                                       <xsl:with-param name="authorfield700k" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/>
+                                       <xsl:with-param name="authorfield700k" select="marc:datafield[@tag=700]"/>
                                </xsl:call-template>
                </xsl:otherwise>
                </xsl:choose>
                                <xsl:text>Recenzija: </xsl:text>
                <xsl:value-of select="marc:subfield[@code='v']"/>
             </xsl:if>
+            <xsl:if test="marc:subfield[@code='r']">
+                               <br/>
+                               <xsl:text>Bibliografske baze: </xsl:text>
+                               <xsl:for-each select="marc:subfield[@code='r']">
+                       <xsl:value-of select="."/>
+                                       <xsl:text> | </xsl:text>
+                               </xsl:for-each>
+            </xsl:if>
         </xsl:for-each>
                </div>
     </xsl:if>
             <xsl:call-template name="chopPunctuation">
                 <xsl:with-param name="chopString">
                     <xsl:call-template name="subfieldSelect">
-                        <xsl:with-param name="codes">abq</xsl:with-param>
+                        <xsl:with-param name="codes">abcq</xsl:with-param>
                     </xsl:call-template>
                 </xsl:with-param>
                 <xsl:with-param name="punctuation">
         </xsl:for-each>
         <xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
                 <xsl:call-template name="subfieldSelect">
-                    <xsl:with-param name="codes">dn</xsl:with-param>
+                    <xsl:with-param name="codes">cdn</xsl:with-param>
                 </xsl:call-template>
         </xsl:if>
     </xsl:template>
 
     <xsl:template name="nameACDEQ">
             <xsl:call-template name="subfieldSelect">
-                <xsl:with-param name="codes">adeq</xsl:with-param>
+                <xsl:with-param name="codes">acdeq</xsl:with-param>
             </xsl:call-template>
     </xsl:template>
 
             <xsl:call-template name="chopPunctuation">
                 <xsl:with-param name="chopString">
                     <xsl:call-template name="subfieldSelect">
-                        <xsl:with-param name="codes">bc</xsl:with-param>
+                        <xsl:with-param name="codes">b</xsl:with-param>
                     </xsl:call-template>
                 </xsl:with-param>
             </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise><xsl:call-template name="nameABCDQ"/></xsl:otherwise>
     </xsl:choose>
-       <xsl:if test="marc:subfield[@code='4' or @code='e'] != 'aut'">
-      <span class="relatorcode">
+       <xsl:if test="marc:subfield[@code='4'] != 'aut'">
       <xsl:text> [</xsl:text>
-         <xsl:choose>
-           <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
-           <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
-         </xsl:choose>
+               <xsl:for-each select="marc:subfield[@code='4']">
+                       <xsl:value-of select="."/>
+            <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>
          <xsl:text>]</xsl:text>
-      </span>
        </xsl:if>
                <xsl:text> ; </xsl:text>
         </xsl:for-each>
                  </xsl:otherwise>
     </xsl:choose>
        </xsl:if>
-       <xsl:if test="marc:subfield[@code='4' or @code='e'] != 'aut'">
-      <span class="relatorcode">
+       <xsl:if test="marc:subfield[@code='4'] != 'aut'">
       <xsl:text> [</xsl:text>
-         <xsl:choose>
-           <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
-           <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
-         </xsl:choose>
+               <xsl:for-each select="marc:subfield[@code='4']">
+                       <xsl:value-of select="."/>
+            <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>
          <xsl:text>]</xsl:text>
-      </span>
        </xsl:if>
         </xsl:for-each>
         </span>