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

--- Comment #4 from Janusz Kaczmarek <[email protected]> ---
Created attachment 192862
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192862&action=edit
Bug 39517: Make books be interpreted by MARC21slim2OPACDetail.xsl as 'Book'
instead of more generic 'Text'

Currently, in OPAC, MARC21slim2OPACDetail.xsl assigns to LDR/6-7 =
'am' a label 'Text' (materialTypeLabel), which is then used in
defining variable schemaOrgType and also for display. The variable
schemaOrgType would be set to 'Book' if materialTypeLabel was 'Book',
but with the current xslt code never will be. Instead
schemaOrgType will be set to a generic type CreativeWork
for 'am'.

materialTypeLabel is also used for display purposes as
the label next to the material type icon (when
DisplayOPACiconsXSLT enabled).

Test plan:
==========
1. Make sure that DisplayOPACiconsXSLT is on.
2. In OPAC open any biblio record (e.g. in standard ktd - sn:1).
3. Note "Material type: [icon] Text" info below author line.
4. Edit the record, setting LDR/6-7 = 'am', 008/24-27 (Nature
   of contents)='    ' (for No specified nature of contents),
   and 008/33 (Literary form)='1' (fiction).
5. Note that the info "Material type: [icon] Text" has not changed.
6. Apply the patch ; restart_all
7. Verify that you get "Material type: [icon] Book" info below author
   line. You can also check in browser dev tools that 'typeof' in
   schema.org div is set to Book now.
8. Edit the record, 008/24-27='j   ' (Patent document), and
   008/33='|' (No attempt to code).
9. Verify that you get "Material type: [icon] Text" info below author
   line.

Signed-off-by: Roman Dolny <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to