Bug 24281

Summary: Fix the list of types of visual materials
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: MARC Bibliographic data supportAssignee: Maryse Simard <maryse.simard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: 1joynelson, lucas, maryse.simard
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.05.00, 19.11.02
Circulation function:
Attachments: Bug 24281: Fix the list of types of visual materials
Bug 24281: Fix the list of types of visual materials

Description Caroline Cyr La Rose 2019-12-19 16:57:02 UTC
In the MARC21slim2OPACResults and MARC21slim2IntranetResults XSLT files, the type of visual material for code "g" is "legal article" instead of "game"

            <span class="label">; Type of visual material: </span>
            <xsl:choose>

[...]
                <xsl:when test="$controlField008-33='g'">
                    legal article
                </xsl:when>
Comment 1 Maryse Simard 2019-12-20 14:24:42 UTC
Created attachment 96526 [details] [review]
Bug 24281: Fix the list of types of visual materials

In the MARC21 XSLT files for results in both staff and OPAC, the
type of visual material for code "g" is "legal article" instead
of "game". This patch change the value to "game".

To test:
0. Set up:
    - have a MARC21 database
    - use default XSLT file for display of results :
        OPACXSLTResultsDisplay : default
        XSLTResultsDisplay : defaul
    - If needed, catalog a game. In the 008 tag editor :
        Type of Material : VM - Visual Materials
        33 - Type of visual material : g - Game
1. On both staff and OPAC, make a search which returns results
including visual materials of type game (the title catalogued
in previous step).
2. Note that in the list of results, the label "Type of visual
material" is followed by "legal article".
3. Apply patch.
4. Repeat step 1.
5. Note "legal article" has been replaced by "game".
Comment 2 Katrin Fischer 2019-12-22 11:36:55 UTC
Created attachment 96567 [details] [review]
Bug 24281: Fix the list of types of visual materials

In the MARC21 XSLT files for results in both staff and OPAC, the
type of visual material for code "g" is "legal article" instead
of "game". This patch change the value to "game".

To test:
0. Set up:
    - have a MARC21 database
    - use default XSLT file for display of results :
        OPACXSLTResultsDisplay : default
        XSLTResultsDisplay : defaul
    - If needed, catalog a game. In the 008 tag editor :
        Type of Material : VM - Visual Materials
        33 - Type of visual material : g - Game
1. On both staff and OPAC, make a search which returns results
including visual materials of type game (the title catalogued
in previous step).
2. Note that in the list of results, the label "Type of visual
material" is followed by "legal article".
3. Apply patch.
4. Repeat step 1.
5. Note "legal article" has been replaced by "game".

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 3 Martin Renvoize (ashimema) 2019-12-23 12:09:39 UTC
Nice work everyone!

Pushed to master for 20.05
Comment 4 Joy Nelson 2020-01-12 19:03:47 UTC
Pushed to 19.11.x branch for 19.11.02
Comment 5 Lucas Gass (lukeg) 2020-01-13 23:10:28 UTC
backported to 19.05.x for 19.05.07