custom intranet templates
authorMarijana Glavica <mglavica@ffzg.hr>
Sun, 3 Nov 2013 15:26:55 +0000 (16:26 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Mar 2019 14:43:14 +0000 (15:43 +0100)
koha-tmpl/intranet-tmpl/prog/en/css/ffzg_staff-global.css
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetailISBD.xsl

index 095c6f0..30a3126 100644 (file)
@@ -9,15 +9,6 @@
        float: right;
 }
 
-.title {
-       font-size: 100%;
-       font-weight: normal;
-}
-
-#header {
-}
-
-
 .inv_nr a:link {
        color: #7A7A7A;
 }
 .isbd1 {
        font-size: 120%;
 }
+
+.results_summary {
+       color: black;
+       font-size: 100%;
+       font-weight: normal;
+       padding: 0.5em 0 0;
+}
+
+.results_summary.edition, .results_summary.title, .results_summary.series, .results_summary.publisher, .results_summary.description, .results_summary.type, .results_summary.isn {
+       display: inline;
+}
+
+.results_summary.type {
+       display: block;
+}
+
+.results_summary.author {
+}
index ace43b4..16294d7 100644 (file)
             </xsl:call-template>
         </xsl:if>
 
-   <xsl:if test="$materialTypeCode!=''">
-        <span class="results_summary type"><span class="label">Type: </span>
-        <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
-        <xsl:text> </xsl:text>
-        <xsl:value-of select="$materialTypeLabel"/>
-        </span>
-   </xsl:if>
 
        <xsl:if test="marc:datafield[@tag=080]">
         <span class="results_summary udc"><span class="label">UDC </span>
 
         <!-- Author Statement -->
         <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
-        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
-
 
         <xsl:if test="marc:datafield[@tag=245]">
         <span class="results_summary title">
         </xsl:for-each>
         </span>
         </xsl:if>
+                  <xsl:if test="$materialTypeCode!=''">
+                               <span class="results_summary type"><span class="label">Type: </span>
+                               <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
+                               <xsl:text> </xsl:text>
+                               <xsl:value-of select="$materialTypeLabel"/>
+                               </span>
+                  </xsl:if>
 
-       <xsl:if test="marc:datafield[@tag=020]">
+        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
+
+        <xsl:if test="marc:datafield[@tag=020]">
         <span class="results_summary isbn"><span class="label">ISBN: </span>
         <xsl:for-each select="marc:datafield[@tag=020]">
         <xsl:variable name="isbn" select="marc:subfield[@code='a']"/>
        <xsl:param name="authorfield"/>
     <xsl:param name="UseAuthoritiesForTracings"/>
        <xsl:if test="count($authorfield)&gt;0">
-        <h5 class="author">
+        <span class="results_summary author">
         <xsl:for-each select="$authorfield">
        <!--
         <xsl:choose>
             </xsl:otherwise>
         </xsl:choose>
        <xsl:choose>
-          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>
+          <xsl:when test="(@tag=100 or @tag=700) and marc:subfield[@code=9]">
+                               <span style="color: green"><xsl:call-template name="nameABCDQ"/></span>
+                 </xsl:when>
+                 <xsl:otherwise><xsl:call-template name="nameABCDQ"/></xsl:otherwise>
+    </xsl:choose>
+       <xsl:choose>
           <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
           <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
        </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>
-        </h5>
+        </span>
         </xsl:if>
     </xsl:template>