]> git.koha-community.org Git - koha.git/commit
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)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 17 Oct 2012 19:36:15 +0000 (08:36 +1300)
commit6bee13520d96446f26eec858b2670830fd6e6498
treee038f8a596f89cade3b057534ebd418e4c99b1d8
parentcd4bdff75ed5ccc1922c92803876c2e9091d1a4c
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>
Conflicts:

koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
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