Il 28/03/23 17:55, King, Fred ha scritto:
Welcome to Koha, Daniele!
Thanks so much :)
You may have/want to add the 521 tag to the index, too. If you're using
Elasticsearch, it's fairly easy.
I recently redesigned our MedStar Authors catalog, part of which included
modifying the xsl templates. You can see and download my files at
medstarauthors.org/cgi-bin/koha/opac-page.pl?page_id=9.
I've just added the 521$a tag to one record, and it shows up regularly
in the OPAC Resuls (I've added custom XSLT like explained here:
https://wiki.koha-community.org/wiki/XSLT_Library)
Now I'd like to show a different images based of content of this field.
I've already generated the images and copied them on the server.
I need to select the content of subfield and then configure which images
show based on the match
For instance,
- if subfiled contain "text1" --> show image1.png
- if subfiled contain "text2" --> show image2.png
I was thinking something like:
<xsl:if test="marc:datafield[@tag=521]">
<img src="/opac-tmpl/lib/famfamfam/image1.png" alt="web site"
class="label"/>
</xsl>
Thanks for your advices
Fred King, MSLS, AHIP
Medical Librarian, MedStar Washington Hospital Center
fred.k...@medstar.net
202-877-6670
ORCID 0000-0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org
Daniele
_______________________________________________
Koha mailing list http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha