Discussion:
[Koha] Display 9xx field in OPAC
drojup
2018-07-28 12:57:32 UTC
Permalink
Hi community,

I want to display 905 field $a in OPAC as we use it for our local needs and
we want the patrons to be able to see it.

I changed the options here:
/Home › Administration › MARC frameworks › Default framework structure › Tag
905 Subfield structure/

and selected the subfield $a to be visible in opac but with no luck...

Here (https://lists.katipo.co.nz/public/koha/2016-December/046874.html) they
suggest to edit this file:
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language>/xslt/MARC21slim2OPACDetail.xsl

Is this correct?

Thank you



--
Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman
Katrin Fischer
2018-07-30 15:27:26 UTC
Permalink
Hi,

it's correct. The visibility setting will work on the MARC views, but
have only limited effect on the normal view that is based on XSLT. If
your fields and subfields are not in the XSLT file to begin with, you
can't make them show up, but you can hide what would show up.

Some example XSLT code can be found here:

https://wiki.koha-community.org/wiki/XSLT_Library

Hope that made sense,

Katrin
Post by drojup
Hi community,
I want to display 905 field $a in OPAC as we use it for our local needs and
we want the patrons to be able to see it.
/Home › Administration › MARC frameworks › Default framework structure › Tag
905 Subfield structure/
and selected the subfield $a to be visible in opac but with no luck...
Here (https://lists.katipo.co.nz/public/koha/2016-December/046874.html) they
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language>/xslt/MARC21slim2OPACDetail.xsl
Is this correct?
Thank you
--
Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://l
Katrin Fischer
2018-07-30 15:32:34 UTC
Permalink
Another note:

Keep in mind that if you change standard files, those change will be
lost with the next update. I'd recommend to copy the existing files and
then set the path to them in the |*XSLTDetailsDisplay and |
||*XSLTResultsDisplay system preferences.
||
Post by Katrin Fischer
Hi,
it's correct. The visibility setting will work on the MARC views, but
have only limited effect on the normal view that is based on XSLT. If
your fields and subfields are not in the XSLT file to begin with, you
can't make them show up, but you can hide what would show up.
https://wiki.koha-community.org/wiki/XSLT_Library
Hope that made sense,
Katrin
Post by drojup
Hi community,
I want to display 905 field $a in OPAC as we use it for our local needs and
we want the patrons to be able to see it.
/Home › Administration › MARC frameworks › Default framework structure › Tag
905 Subfield structure/
and selected the subfield $a to be visible in opac but with no luck...
Here
(https://lists.katipo.co.nz/public/koha/2016-December/046874.html) they
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language>/xslt/MARC21slim2OPACDetail.xsl
Is this correct?
Thank you
--
Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
_______________________________________________
Koha mailing list  http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list  http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.c
Tomas Cohen Arazi
2018-07-30 15:32:46 UTC
Permalink
Katrin is right: the visibility settings will make the fields available for
XSLT processing, but the XSLTs need to have rules defined to show your
fields.

Good luck!
Post by Katrin Fischer
Hi,
it's correct. The visibility setting will work on the MARC views, but
have only limited effect on the normal view that is based on XSLT. If
your fields and subfields are not in the XSLT file to begin with, you
can't make them show up, but you can hide what would show up.
https://wiki.koha-community.org/wiki/XSLT_Library
Hope that made sense,
Katrin
Post by drojup
Hi community,
I want to display 905 field $a in OPAC as we use it for our local needs
and
Post by drojup
we want the patrons to be able to see it.
/Home › Administration › MARC frameworks › Default framework structure ›
Tag
Post by drojup
905 Subfield structure/
and selected the subfield $a to be visible in opac but with no luck...
Here (https://lists.katipo.co.nz/public/koha/2016-December/046874.html)
they
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language>/xslt/MARC21slim2OPACDetail.xsl
Post by drojup
Is this correct?
Thank you
--
Sent from: http://koha.1045719.n5.nabble.com/Koha-general-f3047918.html
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
ht
King, Fred
2018-07-30 15:52:52 UTC
Permalink
I've modified OPAC display XSL files for our MedStar Authors Catalog (see below). A few suggestions:

In the OPAC Preferences page, you can change the location and name of the OPACXSLTDetailsDisplay file and OPACXSLTResults file. Put them in a directory where they won't get overwritten when you do a general upgrade. You also have to put the location of the Utils xslt in Results and Display. I don't think I've needed to rewrite them after recent upgrades.

Copy and paste works really well when adding a new MARC field. It's much easier to figure out what to change than to learn xsl.

It's fairly easy to break the display when you're editing xslt files, especially if your knowledge of xsl is rudimentary. Keep backup files, take notes, and practice on a test system.

Don't experiment on your production system.

Did I mention practicing on a test system?

Fred King
Medical Librarian, MedStar Washington Hospital Center
***@medstar.net
202-877-6670
ORCID 0000-0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always gotten there first, and is waiting for it.
--Terry Pratchett


-----Original Message-----
From: Koha [mailto:koha-***@lists.katipo.co.nz] On Behalf Of Tomas Cohen Arazi
Sent: Monday, July 30, 2018 11:33 AM
To: Katrin Fischer
Cc: ***@lists.katipo.co.nz
Subject: Re: [Koha] Display 9xx field in OPAC


** ATTENTION: This email originated from outside of the MedStar network.** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.

Katrin is right: the visibility settings will make the fields available for
XSLT processing, but the XSLTs need to have rules defined to show your
fields.

Good luck!
Post by Katrin Fischer
Hi,
it's correct. The visibility setting will work on the MARC views, but
have only limited effect on the normal view that is based on XSLT. If
your fields and subfields are not in the XSLT file to begin with, you
can't make them show up, but you can hide what would show up.
https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.koha-2Dcommunity.org_wiki_XSLT-5FLibrary&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=Vk0iFwLo-TtOuK2Gg8BL7JvXexwR_TbycQFJqn5KU0s&e=
Hope that made sense,
Katrin
Post by drojup
Hi community,
I want to display 905 field $a in OPAC as we use it for our local needs
and
Post by drojup
we want the patrons to be able to see it.
/Home › Administration › MARC frameworks › Default framework structure ›
Tag
Post by drojup
905 Subfield structure/
and selected the subfield $a to be visible in opac but with no luck...
Here (https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_public_koha_2016-2DDecember_046874.html&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=trHxSIwHwMGGXKca2_TgneFO5c6vlGzGJQ89GI3pmSU&e=)
they
/usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/<language>/xslt/MARC21slim2OPACDetail.xsl
Post by drojup
Is this correct?
Thank you
--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-3A__koha.1045719.n5.nabble.com_Koha-2Dgeneral-2Df3047918.html&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=dc0q5VCaY4YwfyY4jiTbaJFkEAiM2EiNU6cFa-jpaaM&e=
_______________________________________________
Koha mailing list https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=pA2BzySVJNyaTluyR1eviLG_QcZubv97PyAi4HrZmAw&e=
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=ncaq9wYvP127OY5Q3JYVvjkomhXmCgxImBu8n2uO0zQ&e=
_______________________________________________
Koha mailing list https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=pA2BzySVJNyaTluyR1eviLG_QcZubv97PyAi4HrZmAw&e=
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=ncaq9wYvP127OY5Q3JYVvjkomhXmCgxImBu8n2uO0zQ&e=
--
Tomás Cohen Arazi
Theke Solutions (https://urldefense.proofpoint.com/v2/url?u=https-3A__theke.io&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=ykPjRGalUG4yX91NRzXjjHH8IsGWA2UWMWV9feOBIt4&e= <https://urldefense.proofpoint.com/v2/url?u=http-3A__theke.io_&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=nDaoFXl8InQ54rpEz8WOKBT0uiFMUR5-4yR8JixjrlE&e=>)
✆ +54 9351 3513384
GPG: B2F3C15F
_______________________________________________
Koha mailing list https://urldefense.proofpoint.com/v2/url?u=http-3A__koha-2Dcommunity.org&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=pA2BzySVJNyaTluyR1eviLG_QcZubv97PyAi4HrZmAw&e=
***@lists.katipo.co.nz
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.katipo.co.nz_mailman_listinfo_koha&d=DwIGaQ&c=RvBXVp2Kc-itN3g6r3sN0QK_zL4whPpndVxj8-bJ04M&r=vKh6XwOmjyC51IkP1OfsdjQZoWT2vpi6VZl8El8EPRI&m=ZGqshJ5iAt_maHE3gwHBQR2lCTm3kYKrgyGKhi3F2xo&s=ncaq9wYvP127OY5Q3JYVvjkomhXmCgxImBu8n2uO0zQ&e=
_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/

Loading...