[Koha-bugs] [Bug 25269] New: MARC21slim2OPACResults.xsl does not display all formats (physical descriptions)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 23 22:32:57 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25269

            Bug ID: 25269
           Summary: MARC21slim2OPACResults.xsl does not display all
                    formats (physical descriptions)
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Staff Client
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: lucas at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

In MARC21slim2OPACResults.xsl we set the 'Format' or physical description by a
combination of the 007 first position and 007 second position.

In most cases this displays some text (example: chip cartridge or
magneto-optical disc)

But some set an png icon instead of any text. Like:

<img src="/opac-tmpl/lib/famfamfam/world.png" alt="earth moon globe"
class="format"/>

These will not display at all that is because of this:

    <xsl:if test="string-length(normalize-space($physicalDescription))">
         <span class="results_format">
             <span class="label">; Format: </span><xsl:copy-of
select="$physicalDescription"></xsl:copy-of>
         </span>
    </xsl:if>


Without any text the string length is 0 and nothing at all displays. We need to
add text along with each png icon.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list