| 
      
            Lines 8-13
          
      
      
        Link Here
      
     | 
  
        
          | 8 | 
            exclude-result-prefixes="marc items">  | 
          8 | 
            exclude-result-prefixes="marc items">  | 
        
        
          | 9 | 
              <xsl:import href="MARC21slimUtils.xsl"/>  | 
          9 | 
              <xsl:import href="MARC21slimUtils.xsl"/>  | 
        
        
          | 10 | 
              <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>  | 
          10 | 
              <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>  | 
        
            
               | 
               | 
              11 | 
               | 
            
        
          | 11 | 
              <xsl:template match="/">  | 
          12 | 
              <xsl:template match="/">  | 
        
        
          | 12 | 
                      <xsl:apply-templates/>  | 
          13 | 
                      <xsl:apply-templates/>  | 
        
        
          | 13 | 
              </xsl:template>  | 
          14 | 
              </xsl:template>  | 
        
  
    | 
      
            Lines 91-100
          
      
      
        Link Here
      
     | 
  
        
          | 91 | 
                      </xsl:choose>  | 
          92 | 
                      </xsl:choose>  | 
        
        
          | 92 | 
                  </xsl:variable>  | 
          93 | 
                  </xsl:variable>  | 
        
        
          | 93 | 
           | 
          94 | 
           | 
        
            
               | 
               | 
              95 | 
                      <!-- Schema.org type -->  | 
            
            
              | 96 | 
                      <xsl:variable name="schemaOrgType">  | 
            
            
              | 97 | 
                          <xsl:choose>  | 
            
            
              | 98 | 
                              <xsl:when test="$materialTypeLabel='Book'">Book</xsl:when>  | 
            
            
              | 99 | 
                              <xsl:when test="$materialTypeLabel='Map'">Map</xsl:when>  | 
            
            
              | 100 | 
                              <xsl:when test="$materialTypeLabel='Music'">MusicAlbum</xsl:when>  | 
            
            
              | 101 | 
                              <xsl:otherwise>CreativeWork</xsl:otherwise>  | 
            
            
              | 102 | 
                          </xsl:choose>  | 
            
            
              | 103 | 
                      </xsl:variable>  | 
            
            
              | 104 | 
               | 
            
            
              | 105 | 
                      <!-- Wrapper div for our schema.org object -->  | 
            
            
              | 106 | 
                      <xsl:element name="div">  | 
            
            
              | 107 | 
                          <xsl:attribute name="class">record</xsl:attribute>  | 
            
            
              | 108 | 
                          <xsl:attribute name="vocab">http://schema.org/</xsl:attribute>  | 
            
            
              | 109 | 
                          <xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /> Product</xsl:attribute>  | 
            
            
              | 110 | 
                          <xsl:attribute name="resource">#record</xsl:attribute>  | 
            
            
              | 111 | 
               | 
            
        
          | 94 | 
                  <!-- Title Statement -->  | 
          112 | 
                  <!-- Title Statement -->  | 
        
        
          | 95 | 
                  <!-- Alternate Graphic Representation (MARC 880) -->  | 
          113 | 
                  <!-- Alternate Graphic Representation (MARC 880) -->  | 
        
        
          | 96 | 
                  <xsl:if test="$display880">  | 
          114 | 
                  <xsl:if test="$display880">  | 
        
          
            
              | 97 | 
                          <h1 class="title">  | 
              115 | 
                          <h1 class="title" property="alternativeHeadline">  | 
            
        
          | 98 | 
                          <xsl:call-template name="m880Select">  | 
          116 | 
                          <xsl:call-template name="m880Select">  | 
        
        
          | 99 | 
                              <xsl:with-param name="basetags">245</xsl:with-param>  | 
          117 | 
                              <xsl:with-param name="basetags">245</xsl:with-param>  | 
        
        
          | 100 | 
                              <xsl:with-param name="codes">abhfgknps</xsl:with-param>  | 
          118 | 
                              <xsl:with-param name="codes">abhfgknps</xsl:with-param>  | 
        
  
    | 
      
            Lines 103-109
          
      
      
        Link Here
      
     | 
  
        
          | 103 | 
                  </xsl:if>  | 
          121 | 
                  </xsl:if>  | 
        
        
          | 104 | 
           | 
          122 | 
           | 
        
        
          | 105 | 
                  <xsl:if test="marc:datafield[@tag=245]">  | 
          123 | 
                  <xsl:if test="marc:datafield[@tag=245]">  | 
        
          
            
              | 106 | 
                      <h1 class="title">  | 
              124 | 
                      <h1 class="title" property="name">  | 
            
        
          | 107 | 
                      <xsl:for-each select="marc:datafield[@tag=245]">  | 
          125 | 
                      <xsl:for-each select="marc:datafield[@tag=245]">  | 
        
        
          | 108 | 
                              <xsl:call-template name="subfieldSelect">  | 
          126 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
        
          | 109 | 
                                  <xsl:with-param name="codes">a</xsl:with-param>  | 
          127 | 
                                  <xsl:with-param name="codes">a</xsl:with-param>  | 
        
  
    | 
      
            Lines 141-147
          
      
      
        Link Here
      
     | 
  
        
          | 141 | 
                  </xsl:if>  | 
          159 | 
                  </xsl:if>  | 
        
        
          | 142 | 
                  <xsl:choose>  | 
          160 | 
                  <xsl:choose>  | 
        
        
          | 143 | 
                      <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">  | 
          161 | 
                      <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">  | 
        
          
            
              | 144 | 
                              <h5 class="author">by  | 
              162 | 
                              <h5 class="author" property="author">by  | 
            
        
          | 145 | 
                              <xsl:call-template name="showAuthor">  | 
          163 | 
                              <xsl:call-template name="showAuthor">  | 
        
        
          | 146 | 
                                  <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>  | 
          164 | 
                                  <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>  | 
        
        
          | 147 | 
                                  <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>  | 
          165 | 
                                  <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>  | 
        
  
    | 
      
            Lines 308-335
          
      
      
        Link Here
      
     | 
  
        
          | 308 | 
                  <xsl:if test="marc:datafield[@tag=260]">  | 
          326 | 
                  <xsl:if test="marc:datafield[@tag=260]">  | 
        
        
          | 309 | 
                  <span class="results_summary publisher"><span class="label">Publisher: </span>  | 
          327 | 
                  <span class="results_summary publisher"><span class="label">Publisher: </span>  | 
        
        
          | 310 | 
                      <xsl:for-each select="marc:datafield[@tag=260]">  | 
          328 | 
                      <xsl:for-each select="marc:datafield[@tag=260]">  | 
        
            
               | 
               | 
              329 | 
                              <span property="publisher" typeof="Organization">  | 
            
        
          | 311 | 
                          <xsl:if test="marc:subfield[@code='a']">  | 
          330 | 
                          <xsl:if test="marc:subfield[@code='a']">  | 
        
            
               | 
               | 
              331 | 
                                  <span property="location">  | 
            
        
          | 312 | 
                              <xsl:call-template name="subfieldSelect">  | 
          332 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
        
          | 313 | 
                                  <xsl:with-param name="codes">a</xsl:with-param>  | 
          333 | 
                                  <xsl:with-param name="codes">a</xsl:with-param>  | 
        
        
          | 314 | 
                              </xsl:call-template>  | 
          334 | 
                              </xsl:call-template>  | 
        
            
               | 
               | 
              335 | 
                                  </span>  | 
            
        
          | 315 | 
                          </xsl:if>  | 
          336 | 
                          </xsl:if>  | 
        
        
          | 316 | 
                          <xsl:text> </xsl:text>  | 
          337 | 
                          <xsl:text> </xsl:text>  | 
        
        
          | 317 | 
                          <xsl:if test="marc:subfield[@code='b']">  | 
          338 | 
                          <xsl:if test="marc:subfield[@code='b']">  | 
        
          
            
              | 318 | 
                              <a href="/cgi-bin/koha/opac-search.pl?q=pb:{marc:subfield[@code='b']}"> | 
              339 | 
                              <span property="name"><a href="/cgi-bin/koha/opac-search.pl?q=pb:{marc:subfield[@code='b']}"> | 
            
        
          | 319 | 
                              <xsl:call-template name="subfieldSelect">  | 
          340 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
        
          | 320 | 
                                  <xsl:with-param name="codes">b</xsl:with-param>  | 
          341 | 
                                  <xsl:with-param name="codes">b</xsl:with-param>  | 
        
        
          | 321 | 
                              </xsl:call-template>  | 
          342 | 
                              </xsl:call-template>  | 
        
          
            
              | 322 | 
                             </a>  | 
              343 | 
                              </a></span>  | 
            
            
              | 323 | 
                             </xsl:if>  | 
              344 | 
                              </xsl:if>  | 
            
            
              | 324 | 
                             <xsl:text> </xsl:text>  | 
              345 | 
                              </span>  | 
            
            
              | 325 | 
                              <xsl:call-template name="chopPunctuation">  | 
              346 | 
                              <xsl:text> </xsl:text>  | 
            
            
              | 326 | 
                                <xsl:with-param name="chopString">  | 
              347 | 
                              <xsl:if test="marc:subfield[@code='c' or @code='g']">  | 
            
            
              | 327 | 
                                  <xsl:call-template name="subfieldSelect">  | 
              348 | 
                              <span property="datePublished">  | 
            
            
              | 328 | 
                                      <xsl:with-param name="codes">cg</xsl:with-param>  | 
              349 | 
                                  <xsl:call-template name="chopPunctuation">  | 
            
            
              | 329 | 
                                  </xsl:call-template>  | 
              350 | 
                                    <xsl:with-param name="chopString">  | 
            
            
              | 330 | 
                                 </xsl:with-param>  | 
              351 | 
                                      <xsl:call-template name="subfieldSelect">  | 
            
            
              | 331 | 
                             </xsl:call-template>  | 
              352 | 
                                          <xsl:with-param name="codes">cg</xsl:with-param>  | 
            
            
              | 332 | 
                                  <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
              353 | 
                                      </xsl:call-template>  | 
            
            
               | 
               | 
              354 | 
                                     </xsl:with-param>  | 
            
            
              | 355 | 
                                 </xsl:call-template>  | 
            
            
              | 356 | 
                              </span>  | 
            
            
              | 357 | 
                              </xsl:if>  | 
            
            
              | 358 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
            
        
          | 333 | 
                      </xsl:for-each>  | 
          359 | 
                      </xsl:for-each>  | 
        
        
          | 334 | 
                  </span>  | 
          360 | 
                  </span>  | 
        
        
          | 335 | 
                  </xsl:if>  | 
          361 | 
                  </xsl:if>  | 
        
  
    | 
      
            Lines 347-352
          
      
      
        Link Here
      
     | 
  
        
          | 347 | 
                  <xsl:if test="marc:datafield[@tag=250]">  | 
          373 | 
                  <xsl:if test="marc:datafield[@tag=250]">  | 
        
        
          | 348 | 
                  <span class="results_summary edition"><span class="label">Edition: </span>  | 
          374 | 
                  <span class="results_summary edition"><span class="label">Edition: </span>  | 
        
        
          | 349 | 
                      <xsl:for-each select="marc:datafield[@tag=250]">  | 
          375 | 
                      <xsl:for-each select="marc:datafield[@tag=250]">  | 
        
            
               | 
               | 
              376 | 
                              <span property="bookEdition">  | 
            
        
          | 350 | 
                          <xsl:call-template name="chopPunctuation">  | 
          377 | 
                          <xsl:call-template name="chopPunctuation">  | 
        
        
          | 351 | 
                            <xsl:with-param name="chopString">  | 
          378 | 
                            <xsl:with-param name="chopString">  | 
        
        
          | 352 | 
                              <xsl:call-template name="subfieldSelect">  | 
          379 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
  
    | 
      
            Lines 354-359
          
      
      
        Link Here
      
     | 
  
        
          | 354 | 
                              </xsl:call-template>  | 
          381 | 
                              </xsl:call-template>  | 
        
        
          | 355 | 
                             </xsl:with-param>  | 
          382 | 
                             </xsl:with-param>  | 
        
        
          | 356 | 
                         </xsl:call-template>  | 
          383 | 
                         </xsl:call-template>  | 
        
            
               | 
               | 
              384 | 
                              </span>  | 
            
        
          | 357 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          385 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
        
          | 358 | 
                      </xsl:for-each>  | 
          386 | 
                      </xsl:for-each>  | 
        
        
          | 359 | 
                  </span>  | 
          387 | 
                  </span>  | 
        
  
    | 
      
            Lines 372-377
          
      
      
        Link Here
      
     | 
  
        
          | 372 | 
                  <xsl:if test="marc:datafield[@tag=300]">  | 
          400 | 
                  <xsl:if test="marc:datafield[@tag=300]">  | 
        
        
          | 373 | 
                  <span class="results_summary description"><span class="label">Description: </span>  | 
          401 | 
                  <span class="results_summary description"><span class="label">Description: </span>  | 
        
        
          | 374 | 
                      <xsl:for-each select="marc:datafield[@tag=300]">  | 
          402 | 
                      <xsl:for-each select="marc:datafield[@tag=300]">  | 
        
            
               | 
               | 
              403 | 
                              <span property="description">  | 
            
        
          | 375 | 
                          <xsl:call-template name="chopPunctuation">  | 
          404 | 
                          <xsl:call-template name="chopPunctuation">  | 
        
        
          | 376 | 
                            <xsl:with-param name="chopString">  | 
          405 | 
                            <xsl:with-param name="chopString">  | 
        
        
          | 377 | 
                              <xsl:call-template name="subfieldSelect">  | 
          406 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
  
    | 
      
            Lines 379-384
          
      
      
        Link Here
      
     | 
  
        
          | 379 | 
                              </xsl:call-template>  | 
          408 | 
                              </xsl:call-template>  | 
        
        
          | 380 | 
                             </xsl:with-param>  | 
          409 | 
                             </xsl:with-param>  | 
        
        
          | 381 | 
                         </xsl:call-template>  | 
          410 | 
                         </xsl:call-template>  | 
        
            
               | 
               | 
              411 | 
                              </span>  | 
            
        
          | 382 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          412 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
        
          | 383 | 
                      </xsl:for-each>  | 
          413 | 
                      </xsl:for-each>  | 
        
        
          | 384 | 
                  </span>  | 
          414 | 
                  </span>  | 
        
  
    | 
      
            Lines 387-395
          
      
      
        Link Here
      
     | 
  
        
          | 387 | 
                 <xsl:if test="marc:datafield[@tag=020]">  | 
          417 | 
                 <xsl:if test="marc:datafield[@tag=020]">  | 
        
        
          | 388 | 
                  <span class="results_summary isbn"><span class="label">ISBN: </span>  | 
          418 | 
                  <span class="results_summary isbn"><span class="label">ISBN: </span>  | 
        
        
          | 389 | 
                  <xsl:for-each select="marc:datafield[@tag=020]">  | 
          419 | 
                  <xsl:for-each select="marc:datafield[@tag=020]">  | 
        
            
               | 
               | 
              420 | 
                      <span property="isbn">  | 
            
        
          | 390 | 
                  <xsl:variable name="isbn" select="marc:subfield[@code='a']"/>  | 
          421 | 
                  <xsl:variable name="isbn" select="marc:subfield[@code='a']"/>  | 
        
        
          | 391 | 
                          <xsl:value-of select="marc:subfield[@code='a']"/>  | 
          422 | 
                          <xsl:value-of select="marc:subfield[@code='a']"/>  | 
        
        
          | 392 | 
                          <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          423 | 
                          <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
            
               | 
               | 
              424 | 
                      </span>  | 
            
        
          | 393 | 
                  </xsl:for-each>  | 
          425 | 
                  </xsl:for-each>  | 
        
        
          | 394 | 
                  </span>  | 
          426 | 
                  </span>  | 
        
        
          | 395 | 
                  </xsl:if>  | 
          427 | 
                  </xsl:if>  | 
        
  
    | 
      
            Lines 441-446
          
      
      
        Link Here
      
     | 
  
        
          | 441 | 
                  <xsl:if test="marc:datafield[@tag=246]">  | 
          473 | 
                  <xsl:if test="marc:datafield[@tag=246]">  | 
        
        
          | 442 | 
                  <span class="results_summary other_title"><span class="label">Other title: </span>  | 
          474 | 
                  <span class="results_summary other_title"><span class="label">Other title: </span>  | 
        
        
          | 443 | 
                      <xsl:for-each select="marc:datafield[@tag=246]">  | 
          475 | 
                      <xsl:for-each select="marc:datafield[@tag=246]">  | 
        
            
               | 
               | 
              476 | 
                              <span property="alternativeHeadline">  | 
            
        
          | 444 | 
                          <xsl:call-template name="chopPunctuation">  | 
          477 | 
                          <xsl:call-template name="chopPunctuation">  | 
        
        
          | 445 | 
                            <xsl:with-param name="chopString">  | 
          478 | 
                            <xsl:with-param name="chopString">  | 
        
        
          | 446 | 
                              <xsl:call-template name="subfieldSelect">  | 
          479 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
  
    | 
      
            Lines 448-453
          
      
      
        Link Here
      
     | 
  
        
          | 448 | 
                              </xsl:call-template>  | 
          481 | 
                              </xsl:call-template>  | 
        
        
          | 449 | 
                             </xsl:with-param>  | 
          482 | 
                             </xsl:with-param>  | 
        
        
          | 450 | 
                         </xsl:call-template>  | 
          483 | 
                         </xsl:call-template>  | 
        
            
               | 
               | 
              484 | 
                              </span>  | 
            
        
          | 451 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          485 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
        
          | 452 | 
                      </xsl:for-each>  | 
          486 | 
                      </xsl:for-each>  | 
        
        
          | 453 | 
                  </span>  | 
          487 | 
                  </span>  | 
        
  
    | 
      
            Lines 457-462
          
      
      
        Link Here
      
     | 
  
        
          | 457 | 
                  <xsl:if test="marc:datafield[@tag=242]">  | 
          491 | 
                  <xsl:if test="marc:datafield[@tag=242]">  | 
        
        
          | 458 | 
                  <span class="results_summary translated_title"><span class="label">Title translated: </span>  | 
          492 | 
                  <span class="results_summary translated_title"><span class="label">Title translated: </span>  | 
        
        
          | 459 | 
                      <xsl:for-each select="marc:datafield[@tag=242]">  | 
          493 | 
                      <xsl:for-each select="marc:datafield[@tag=242]">  | 
        
            
               | 
               | 
              494 | 
                              <span property="alternativeHeadline">  | 
            
        
          | 460 | 
                          <xsl:call-template name="chopPunctuation">  | 
          495 | 
                          <xsl:call-template name="chopPunctuation">  | 
        
        
          | 461 | 
                            <xsl:with-param name="chopString">  | 
          496 | 
                            <xsl:with-param name="chopString">  | 
        
        
          | 462 | 
                              <xsl:call-template name="subfieldSelect">  | 
          497 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
  
    | 
      
            Lines 464-469
          
      
      
        Link Here
      
     | 
  
        
          | 464 | 
                              </xsl:call-template>  | 
          499 | 
                              </xsl:call-template>  | 
        
        
          | 465 | 
                             </xsl:with-param>  | 
          500 | 
                             </xsl:with-param>  | 
        
        
          | 466 | 
                         </xsl:call-template>  | 
          501 | 
                         </xsl:call-template>  | 
        
            
               | 
               | 
              502 | 
                              </span>  | 
            
        
          | 467 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          503 | 
                              <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
        
          | 468 | 
                      </xsl:for-each>  | 
          504 | 
                      </xsl:for-each>  | 
        
        
          | 469 | 
                  </span>  | 
          505 | 
                  </span>  | 
        
  
    | 
      
            Lines 471-487
          
      
      
        Link Here
      
     | 
  
        
          | 471 | 
           | 
          507 | 
           | 
        
        
          | 472 | 
                  <!-- Uniform Title  Statement: Alternate Graphic Representation (MARC 880) -->  | 
          508 | 
                  <!-- Uniform Title  Statement: Alternate Graphic Representation (MARC 880) -->  | 
        
        
          | 473 | 
                  <xsl:if test="$display880">  | 
          509 | 
                  <xsl:if test="$display880">  | 
        
            
               | 
               | 
              510 | 
                          <span property="alternativeHeadline">  | 
            
        
          | 474 | 
                      <xsl:call-template name="m880Select">  | 
          511 | 
                      <xsl:call-template name="m880Select">  | 
        
        
          | 475 | 
                          <xsl:with-param name="basetags">130,240</xsl:with-param>  | 
          512 | 
                          <xsl:with-param name="basetags">130,240</xsl:with-param>  | 
        
        
          | 476 | 
                          <xsl:with-param name="codes">adfklmor</xsl:with-param>  | 
          513 | 
                          <xsl:with-param name="codes">adfklmor</xsl:with-param>  | 
        
        
          | 477 | 
                          <xsl:with-param name="class">results_summary uniform_title</xsl:with-param>  | 
          514 | 
                          <xsl:with-param name="class">results_summary uniform_title</xsl:with-param>  | 
        
        
          | 478 | 
                          <xsl:with-param name="label">Uniform titles: </xsl:with-param>  | 
          515 | 
                          <xsl:with-param name="label">Uniform titles: </xsl:with-param>  | 
        
        
          | 479 | 
                      </xsl:call-template>  | 
          516 | 
                      </xsl:call-template>  | 
        
            
               | 
               | 
              517 | 
                          </span>  | 
            
        
          | 480 | 
                  </xsl:if>  | 
          518 | 
                  </xsl:if>  | 
        
        
          | 481 | 
           | 
          519 | 
           | 
        
        
          | 482 | 
                  <xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">  | 
          520 | 
                  <xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">  | 
        
        
          | 483 | 
                  <span class="results_summary uniform_titles"><span class="label">Uniform titles: </span>  | 
          521 | 
                  <span class="results_summary uniform_titles"><span class="label">Uniform titles: </span>  | 
        
        
          | 484 | 
                  <xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">  | 
          522 | 
                  <xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">  | 
        
            
               | 
               | 
              523 | 
                          <span property="alternativeHeadline">  | 
            
        
          | 485 | 
                      <xsl:variable name="str">  | 
          524 | 
                      <xsl:variable name="str">  | 
        
        
          | 486 | 
                          <xsl:for-each select="marc:subfield">  | 
          525 | 
                          <xsl:for-each select="marc:subfield">  | 
        
        
          | 487 | 
                              <xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))"> | 
          526 | 
                              <xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))"> | 
        
  
    | 
      
            Lines 496-501
          
      
      
        Link Here
      
     | 
  
        
          | 496 | 
           | 
          535 | 
           | 
        
        
          | 497 | 
                          </xsl:with-param>  | 
          536 | 
                          </xsl:with-param>  | 
        
        
          | 498 | 
                      </xsl:call-template>  | 
          537 | 
                      </xsl:call-template>  | 
        
            
               | 
               | 
              538 | 
                          </span>  | 
            
        
          | 499 | 
                      <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
          539 | 
                      <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
        
        
          | 500 | 
                  </xsl:for-each>  | 
          540 | 
                  </xsl:for-each>  | 
        
        
          | 501 | 
                  </span>  | 
          541 | 
                  </span>  | 
        
  
    | 
      
            Lines 504-509
          
      
      
        Link Here
      
     | 
  
        
          | 504 | 
                  <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">  | 
          544 | 
                  <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">  | 
        
        
          | 505 | 
                      <span class="results_summary subjects"><span class="label">Subject(s): </span>  | 
          545 | 
                      <span class="results_summary subjects"><span class="label">Subject(s): </span>  | 
        
        
          | 506 | 
                      <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">  | 
          546 | 
                      <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">  | 
        
            
               | 
               | 
              547 | 
                          <span property="keywords">  | 
            
        
          | 507 | 
                      <a>  | 
          548 | 
                      <a>  | 
        
        
          | 508 | 
                      <xsl:choose>  | 
          549 | 
                      <xsl:choose>  | 
        
        
          | 509 | 
                      <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
          550 | 
                      <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
        
  
    | 
      
            Lines 532-537
          
      
      
        Link Here
      
     | 
  
        
          | 532 | 
                          </xsl:with-param>  | 
          573 | 
                          </xsl:with-param>  | 
        
        
          | 533 | 
                      </xsl:call-template>  | 
          574 | 
                      </xsl:call-template>  | 
        
        
          | 534 | 
                      </a>  | 
          575 | 
                      </a>  | 
        
            
               | 
               | 
              576 | 
                          </span>  | 
            
        
          | 535 | 
                      <xsl:if test="marc:subfield[@code=9]">  | 
          577 | 
                      <xsl:if test="marc:subfield[@code=9]">  | 
        
        
          | 536 | 
                          <a class='authlink'>  | 
          578 | 
                          <a class='authlink'>  | 
        
        
          | 537 | 
                              <xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
          579 | 
                              <xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
        
  
    | 
      
            Lines 552-558
          
      
      
        Link Here
      
     | 
  
        
          | 552 | 
                  <span class="results_summary online_resources"><span class="label">Online resources: </span>  | 
          594 | 
                  <span class="results_summary online_resources"><span class="label">Online resources: </span>  | 
        
        
          | 553 | 
                  <xsl:for-each select="marc:datafield[@tag=856]">  | 
          595 | 
                  <xsl:for-each select="marc:datafield[@tag=856]">  | 
        
        
          | 554 | 
                      <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>  | 
          596 | 
                      <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>  | 
        
          
            
              | 555 | 
              	    <a>  | 
              597 | 
              	    <a property="url">  | 
            
        
          | 556 | 
          	    <xsl:choose>  | 
          598 | 
          	    <xsl:choose>  | 
        
        
          | 557 | 
          	      <xsl:when test="$OPACTrackClicks='track'">  | 
          599 | 
          	      <xsl:when test="$OPACTrackClicks='track'">  | 
        
        
          | 558 | 
          	        <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>  | 
          600 | 
          	        <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="marc:subfield[@code='u']"/>;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>  | 
        
  
    | 
      
            Lines 628-634
          
      
      
        Link Here
      
     | 
  
        
          | 628 | 
                      </xsl:otherwise>  | 
          670 | 
                      </xsl:otherwise>  | 
        
        
          | 629 | 
                      </xsl:choose>  | 
          671 | 
                      </xsl:choose>  | 
        
        
          | 630 | 
                  </xsl:if>  | 
          672 | 
                  </xsl:if>  | 
        
          
            
              | 631 | 
                      <div class='contentblock'>  | 
              673 | 
                      <div class='contentblock' property='description'>  | 
            
        
          | 632 | 
                  <xsl:choose>  | 
          674 | 
                  <xsl:choose>  | 
        
        
          | 633 | 
                  <xsl:when test="@ind2=0">  | 
          675 | 
                  <xsl:when test="@ind2=0">  | 
        
        
          | 634 | 
                      <xsl:call-template name="subfieldSelectSpan">  | 
          676 | 
                      <xsl:call-template name="subfieldSelectSpan">  | 
        
  
    | 
      
            Lines 847-852
          
      
      
        Link Here
      
     | 
  
        
          | 847 | 
                      <span class="label">Separated from:</span>  | 
          889 | 
                      <span class="label">Separated from:</span>  | 
        
        
          | 848 | 
                  </xsl:when>  | 
          890 | 
                  </xsl:when>  | 
        
        
          | 849 | 
                  </xsl:choose>  | 
          891 | 
                  </xsl:choose>  | 
        
            
               | 
               | 
              892 | 
                      <xsl:text> </xsl:text>  | 
            
        
          | 850 | 
                          <xsl:variable name="f780">  | 
          893 | 
                          <xsl:variable name="f780">  | 
        
        
          | 851 | 
                              <xsl:call-template name="subfieldSelect">  | 
          894 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
        
          | 852 | 
                                  <xsl:with-param name="codes">a_t</xsl:with-param>  | 
          895 | 
                                  <xsl:with-param name="codes">a_t</xsl:with-param>  | 
        
  
    | 
      
            Lines 859-865
          
      
      
        Link Here
      
     | 
  
        
          | 859 | 
                              </a>  | 
          902 | 
                              </a>  | 
        
        
          | 860 | 
                          </xsl:when>  | 
          903 | 
                          </xsl:when>  | 
        
        
          | 861 | 
                          <xsl:otherwise>  | 
          904 | 
                          <xsl:otherwise>  | 
        
          
            
              | 862 | 
                                  <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>  | 
              905 | 
                                  <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>  | 
            
        
          | 863 | 
                                  <xsl:value-of select="translate($f780, '()', '')"/>  | 
          906 | 
                                  <xsl:value-of select="translate($f780, '()', '')"/>  | 
        
        
          | 864 | 
                              </a>  | 
          907 | 
                              </a>  | 
        
        
          | 865 | 
                          </xsl:otherwise>  | 
          908 | 
                          </xsl:otherwise>  | 
        
  
    | 
      
            Lines 907-914
          
      
      
        Link Here
      
     | 
  
        
          | 907 | 
                  <xsl:when test="@ind2=8">  | 
          950 | 
                  <xsl:when test="@ind2=8">  | 
        
        
          | 908 | 
                      <span class="label">Changed back to:</span>  | 
          951 | 
                      <span class="label">Changed back to:</span>  | 
        
        
          | 909 | 
                  </xsl:when>  | 
          952 | 
                  </xsl:when>  | 
        
            
              | 910 | 
               | 
               | 
               | 
            
        
          | 911 | 
                  </xsl:choose>  | 
          953 | 
                  </xsl:choose>  | 
        
            
               | 
               | 
              954 | 
                      <xsl:text> </xsl:text>  | 
            
        
          | 912 | 
                             <xsl:variable name="f785">  | 
          955 | 
                             <xsl:variable name="f785">  | 
        
        
          | 913 | 
                              <xsl:call-template name="subfieldSelect">  | 
          956 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
        
          | 914 | 
                                  <xsl:with-param name="codes">a_t</xsl:with-param>  | 
          957 | 
                                  <xsl:with-param name="codes">a_t</xsl:with-param>  | 
        
  
    | 
      
            Lines 922-928
          
      
      
        Link Here
      
     | 
  
        
          | 922 | 
                              </a>  | 
          965 | 
                              </a>  | 
        
        
          | 923 | 
                          </xsl:when>  | 
          966 | 
                          </xsl:when>  | 
        
        
          | 924 | 
                          <xsl:otherwise>  | 
          967 | 
                          <xsl:otherwise>  | 
        
          
            
              | 925 | 
                                  <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>  | 
              968 | 
                                  <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>  | 
            
        
          | 926 | 
                                  <xsl:value-of select="translate($f785, '()', '')"/>  | 
          969 | 
                                  <xsl:value-of select="translate($f785, '()', '')"/>  | 
        
        
          | 927 | 
                              </a>  | 
          970 | 
                              </a>  | 
        
        
          | 928 | 
                          </xsl:otherwise>  | 
          971 | 
                          </xsl:otherwise>  | 
        
  
    | 
      
            Lines 938-943
          
      
      
        Link Here
      
     | 
  
        
          | 938 | 
                  </xsl:for-each>  | 
          981 | 
                  </xsl:for-each>  | 
        
        
          | 939 | 
                  </xsl:if>  | 
          982 | 
                  </xsl:if>  | 
        
        
          | 940 | 
           | 
          983 | 
           | 
        
            
               | 
               | 
              984 | 
                  </xsl:element>  | 
            
        
          | 941 | 
              </xsl:template>  | 
          985 | 
              </xsl:template>  | 
        
        
          | 942 | 
           | 
          986 | 
           | 
        
        
          | 943 | 
              <xsl:template name="showAuthor">  | 
          987 | 
              <xsl:template name="showAuthor">  | 
        
  
    | 
      
            Lines 958-971
          
      
      
        Link Here
      
     | 
  
        
          | 958 | 
                      <a>  | 
          1002 | 
                      <a>  | 
        
        
          | 959 | 
                          <xsl:choose>  | 
          1003 | 
                          <xsl:choose>  | 
        
        
          | 960 | 
                              <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
          1004 | 
                              <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
        
          
            
              | 961 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
              1005 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:"<xsl:value-of select="marc:subfield[@code=9]"/>"</xsl:attribute>  | 
            
        
          | 962 | 
                              </xsl:when>  | 
          1006 | 
                              </xsl:when>  | 
        
        
          | 963 | 
                              <xsl:otherwise>  | 
          1007 | 
                              <xsl:otherwise>  | 
        
          
            
              | 964 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>  | 
              1008 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>  | 
            
        
          | 965 | 
                              </xsl:otherwise>  | 
          1009 | 
                              </xsl:otherwise>  | 
        
        
          | 966 | 
                          </xsl:choose>  | 
          1010 | 
                          </xsl:choose>  | 
        
        
          | 967 | 
                          <xsl:choose>  | 
          1011 | 
                          <xsl:choose>  | 
        
          
            
              | 968 | 
                                  <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>  | 
              1012 | 
                                  <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>  | 
            
        
          | 969 | 
                              <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>  | 
          1013 | 
                              <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>  | 
        
        
          | 970 | 
                              <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>  | 
          1014 | 
                              <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>  | 
        
        
          | 971 | 
                          </xsl:choose>  | 
          1015 | 
                          </xsl:choose>  | 
        
  
    | 
      
            Lines 991-1008
          
      
      
        Link Here
      
     | 
  
        
          | 991 | 
                  <xsl:text>.</xsl:text>  | 
          1035 | 
                  <xsl:text>.</xsl:text>  | 
        
        
          | 992 | 
              </xsl:template>  | 
          1036 | 
              </xsl:template>  | 
        
        
          | 993 | 
           | 
          1037 | 
           | 
        
          
            
              | 994 | 
                  <xsl:template name="nameABCDQ">  | 
              1038 | 
                  <xsl:template name="nameABCQ">  | 
            
        
          | 995 | 
                      <xsl:call-template name="chopPunctuation">  | 
          1039 | 
                      <xsl:call-template name="chopPunctuation">  | 
        
        
          | 996 | 
                          <xsl:with-param name="chopString">  | 
          1040 | 
                          <xsl:with-param name="chopString">  | 
        
        
          | 997 | 
                              <xsl:call-template name="subfieldSelect">  | 
          1041 | 
                              <xsl:call-template name="subfieldSelect">  | 
        
          
            
              | 998 | 
                                      <xsl:with-param name="codes">aq</xsl:with-param>  | 
              1042 | 
                                      <xsl:with-param name="codes">abcq</xsl:with-param>  | 
            
        
          | 999 | 
                              </xsl:call-template>  | 
          1043 | 
                              </xsl:call-template>  | 
        
        
          | 1000 | 
                          </xsl:with-param>  | 
          1044 | 
                          </xsl:with-param>  | 
        
        
          | 1001 | 
                          <xsl:with-param name="punctuation">  | 
          1045 | 
                          <xsl:with-param name="punctuation">  | 
        
        
          | 1002 | 
                              <xsl:text>:,;/ </xsl:text>  | 
          1046 | 
                              <xsl:text>:,;/ </xsl:text>  | 
        
        
          | 1003 | 
                          </xsl:with-param>  | 
          1047 | 
                          </xsl:with-param>  | 
        
        
          | 1004 | 
                      </xsl:call-template>  | 
          1048 | 
                      </xsl:call-template>  | 
        
            
              | 1005 | 
                      <xsl:call-template name="termsOfAddress"/>  | 
               | 
               | 
            
        
          | 1006 | 
              </xsl:template>  | 
          1049 | 
              </xsl:template>  | 
        
        
          | 1007 | 
           | 
          1050 | 
           | 
        
        
          | 1008 | 
              <xsl:template name="nameABCDN">  | 
          1051 | 
              <xsl:template name="nameABCDN">  | 
        
  
    | 
      
            Lines 1031-1047
          
      
      
        Link Here
      
     | 
  
        
          | 1031 | 
                          <xsl:with-param name="codes">acdeq</xsl:with-param>  | 
          1074 | 
                          <xsl:with-param name="codes">acdeq</xsl:with-param>  | 
        
        
          | 1032 | 
                      </xsl:call-template>  | 
          1075 | 
                      </xsl:call-template>  | 
        
        
          | 1033 | 
              </xsl:template>  | 
          1076 | 
              </xsl:template>  | 
        
            
              | 1034 | 
                  <xsl:template name="termsOfAddress">  | 
               | 
               | 
            
            
              | 1035 | 
                      <xsl:if test="marc:subfield[@code='b' or @code='c']">  | 
            
            
              | 1036 | 
                          <xsl:call-template name="chopPunctuation">  | 
            
            
              | 1037 | 
                              <xsl:with-param name="chopString">  | 
            
            
              | 1038 | 
                                  <xsl:call-template name="subfieldSelect">  | 
            
            
              | 1039 | 
                                      <xsl:with-param name="codes">bc</xsl:with-param>  | 
            
            
              | 1040 | 
                                  </xsl:call-template>  | 
            
            
              | 1041 | 
                              </xsl:with-param>  | 
            
            
              | 1042 | 
                          </xsl:call-template>  | 
            
            
              | 1043 | 
                      </xsl:if>  | 
            
            
              | 1044 | 
                  </xsl:template>  | 
            
        
          | 1045 | 
           | 
          1077 | 
           | 
        
        
          | 1046 | 
              <xsl:template name="part">  | 
          1078 | 
              <xsl:template name="part">  | 
        
        
          | 1047 | 
                  <xsl:variable name="partNumber">  | 
          1079 | 
                  <xsl:variable name="partNumber">  |