<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Andreas,<br>
<br>
I might be misunderstanding your question, but the OPAC visibility
setting should take effect on all pages and views in the OPAC now.
It didn't use to, which was considered a long standing bug and
finally fixed. Now it's possible to hide fields from OPAC that can
still appear in staff in a reliable way. The preconfigured
visibility settings in the frameworks might not always be ideal - if
that's what you mean, we could work on improving them.<br>
<br>
Hope that helps,<br>
<br>
Katrin<br>
<br>
<div class="moz-cite-prefix">On 07.06.2018 09:21, Andreas Roussos
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK0RUrtUaS4hMCHHa1Jm7ZztnHUAMAv+Kg__Vd7sG6WoiuGPvw@mail.gmail.com">
<div dir="ltr">Dear Developers,<br>
<br>
If you:<br>
<br>
1) edit the ISBD and OPACISBD system preferences so that they
contain the following code:<br>
<br>
#453| - translated as: |<a href="/cgi-bin/koha/catalogue/<a
href="http://detail.pl?biblionumber=%7B4530%7D"
moz-do-not-send="true">detail.pl?biblionumber={4530}</a>">{453t}</a>
{(453d)}|<br>
#454| - translation of: |<a href="/cgi-bin/koha/catalogue/<a
href="http://detail.pl?biblionumber=%7B4540%7D"
moz-do-not-send="true">detail.pl?biblionumber={4540}</a>">{454t}</a>
{(454d)}|<br>
<br>
2) set the visibility of (UNIMARC) fields 453$0 and 454$0 to
'hidden' in the OPAC<br>
<br>
...then the generated links will work fine in the Staff client
but will be broken in the OPAC (i.e. the URL will not include
the biblionumber contained in subfield 0 of fields 453/454).<br>
<br>
I've tracked this down to ISBDdetail.pl and opac-ISBDdetail.pl
calling the GetISBDView subroutine, which (for some reason)
excludes subfields that are hidden in the OPAC:<br>
<br>
<a
href="https://github.com/Koha-Community/Koha/blob/master/C4/Biblio.pm#L773-L776"
moz-do-not-send="true">https://github.com/Koha-Community/Koha/blob/master/C4/Biblio.pm#L773-L776</a><br>
<a
href="https://github.com/Koha-Community/Koha/blob/master/C4/Biblio.pm#L812-L815"
moz-do-not-send="true">https://github.com/Koha-Community/Koha/blob/master/C4/Biblio.pm#L812-L815</a><br>
<br>
What is the reasoning behind this?<br>
In other words, why is _OPAC_ subfield visibility taken into
account when displaying the OPAC ISBD view (whereas visibility
in Staff is not considered)?<br>
<br>
If anything, it is more likely to have subfield 0 hidden in
OPAC, while visible in Staff, so one would expect the opposite
logic.<br>
<br>
Thanks in advance for your time.<br>
<br>
Kind regards,<br>
Andreas Roussos<br>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a></pre>
</blockquote>
<br>
</body>
</html>