How to generate icon for "electronic - remote" books
We get a lot of MARC records for ebooks that do not display the right icons when XSLT is turned on. I have looked at the manual(s), but it only lists a few of the icons and states that these are controlled by certain leader positions. Other icons are not even mentioned. The specific icons I want displayed for our ebooks are the ones for Type: Book, and Format: electronic remote. They are correct for our ebrary books and can be seen on this search result page: < http://wxman.sandbox.kohalibrary.com/cgi-bin/koha/opac-search.pl?q=ebrary> I've looked at the manuals on both the koha.org and koha-community.org site, and do not see the "electronic - remote" display listed. Actually, only about half of the icons I've seen in the catalog are listed. We're using LEK but it looks like the XSLT display is the same for both LEK and official Koha, and the XSLT display documentation is not very thorough. Can anyone help me figure out which fields generate the "electronic - remote" text and icon? Advance thanks. -- Stacy Pober Information Alchemist Manhattan College Library Riverdale, NY 10471 stacy.pober@manhattan.edu -- Stacy Pober Information Alchemist Manhattan College Library Riverdale, NY 10471 stacy.pober@manhattan.edu
Hi,
The specific icons I want displayed for our ebooks are the ones for Type: Book, and Format: electronic remote. They are correct for our ebrary books and can be seen on this search result page: <
http://wxman.sandbox.kohalibrary.com/cgi-bin/koha/opac-search.pl?q=ebrary> if you want to personalize the icon on result display you need to change the file ../koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl I suggest to start in the section: <xsl:if test="$DisplayOPACiconsXSLT!='0'"> [...] </xsl:if> it is around line 510 - 531 in 3.2 Bye Zeno Tajoli
Zeno, You misunderstood. I am not looking to generate custom icons. There are icons that appear to be standard in the XSLT display that are not documented in the Koha manuals. One example is the icon for biography, which does show up with XSLT turned on, but is not listed in the documentation. An example would be the icon for "biography", which looks like a little Playskool weeble. The icon isn't documented in the manual as far as I can determine. Same goes for the "remote" icon for electronic remote resources. (i.e. internet accessible ebooks). I searched the catalog at some independent Koha sites and found the same sort of icons showing up when XSLT was turned on, so this isn't a LEK issue as such. Whether there are some specific additions to the icon lists in the LEK software is something I don't know. because the manual doesn't seem to be different in this section. Anyone have more information on which MARC field and fixed-field positions generate each icon? I would like to customize our MARC records for ebooks so that they produce the correct icons. Some of the MARC records from publishers are somewhat sloppy in this regard. Some use coding that will put the "computer file" icon in the XSLT display. (Springer Link ebook records directly from Springer have this issue, though the OCLC supplied sets for those books do not.) I have also sent this query to PTFS. Best, Stacy -- Stacy Pober Information Alchemist Manhattan College Library Riverdale, NY 10471 stacy.pober@manhattan.ed <stacy.pober@manhattan.edu> On Fri, Nov 5, 2010 at 3:37 AM, tajoli <tajoli@cilea.it> wrote:
Hi,
The specific icons I want displayed for our ebooks are the ones for Type: Book, and Format: electronic remote. They are correct for our ebrary books and can be seen on this search result page: <
http://wxman.sandbox.kohalibrary.com/cgi-bin/koha/opac-search.pl?q=ebrary>
if you want to personalize the icon on result display you need to change the file ../koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl I suggest to start in the section:
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> [...] </xsl:if>
it is around line 510 - 531 in 3.2
Bye Zeno Tajoli
2010/11/6 Stacy Pober <stacy.pober@manhattan.edu>:
Zeno,
You misunderstood. I am not looking to generate custom icons. There are icons that appear to be standard in the XSLT display that are not documented in the Koha manuals. One example is the icon for biography, which does show up with XSLT turned on, but is not listed in the documentation.
An example would be the icon for "biography", which looks like a little Playskool weeble. The icon isn't documented in the manual as far as I can determine. Same goes for the "remote" icon for electronic remote resources. (i.e. internet accessible ebooks).
I searched the catalog at some independent Koha sites and found the same sort of icons showing up when XSLT was turned on, so this isn't a LEK issue as such. Whether there are some specific additions to the icon lists in the LEK software is something I don't know. because the manual doesn't seem to be different in this section.
Anyone have more information on which MARC field and fixed-field positions generate each icon? I would like to customize our MARC records for ebooks so that they produce the correct icons. Some of the MARC records from publishers are somewhat sloppy in this regard. Some use coding that will put the "computer file" icon in the XSLT display. (Springer Link ebook records directly from Springer have this issue, though the OCLC supplied sets for those books do not.)
Hi Stacy The way Koha choses its icons is by following the Library of Congress specification for doing so. It is a combo of leader position 6, and the 006, 007, and 008 fields http://www.loc.gov/marc/formatintegration.html For instance for your Biography example above, the position 6 of the leader will have a value that corresponds to BK (Book), now we know we have to look in 008 to find out more info Now, if position 34 of the 008 field has a value in it, we have a biography (it might be a for autobiography, b for individual biography .. .and so on). Thats how we find out something is a biography, isn't MARC fun! Now for your ebooks, they would/should be of type CF (which is either determined by position 6 of the leader being 'a' and position 7 being 'b', 'i', or 's'. Or by position 6 of the leader being 'm'. From that we know we have a computer file Now, we have to look at position 0, and position 0 of the 007 field, position 0 should be 'c' (for computer I guess), position 1 should be 'r' for remote. http://www.loc.gov/marc/bibliographic/concise/bd007c.html Clear as mud? Yeah, MARC is awesome! Chris
participants (3)
-
Chris Cormack -
Stacy Pober -
tajoli