Bug 8793 - Fix materialTypeCode/typeOf008 icons for NORMARC XSLT
authorMagnus Enger <magnus@enger.priv.no>
Sun, 23 Sep 2012 10:28:49 +0000 (12:28 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 12 Oct 2012 20:28:16 +0000 (22:28 +0200)
commit8ec52a8e23695f2277aaae4a9d216ea8fb079064
treeca59874cf05ff8b0847a1b3c12d0f0958acaff45
parent16a0975f313748aea48abf067a297638d0ccabe0
Bug 8793 - Fix materialTypeCode/typeOf008 icons for NORMARC XSLT

This patch fixes some issues with icons related to materialtypes in NORMARC:

Remove references to opac-tmpl in the *intranet* NORMARC XSLT files.

Add two new icons to koha-tmpl/intranet-tmpl/prog/img/famfamfam/ and
koha-tmpl/opac-tmpl/lib/famfamfam/
GR.png - Graphical materials
TD.png - Three dimentional objects

Copy PR.png from koha-tmpl/intranet-tmpl/prog/img/famfamfam/ to
koha-tmpl/opac-tmpl/lib/famfamfam/

Rename the XSLT variable materialTypeCode to typeOf008 for increased consistency
between stylesheets.

Make sure the XSLT uses icons that are actually available.

To test:
- No use testing all the different permutations of leader pos. 06 and 019b, I think.
- Set marcflavour = NORMARC and turn on default XSLT for OPAC and Intranet, details
  and results.
- Make sure you have a record with something relevant in leader position 6, like
  g for movies or c for music
- Check that the icon turns up in results and details, in the OPAC and Intranet
- Toggle DisplayOPACiconsXSLT and check that the results in the OPAC are as expected

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetDetail.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl
koha-tmpl/intranet-tmpl/prog/img/famfamfam/GR.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/famfamfam/TD.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/famfamfam/GR.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/famfamfam/PR.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/famfamfam/TD.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl