The type of the query is given by the loop

su was harcoded, but it was wrong in case we had a $9 subfield (Koha-Auth-Number)
In this case, we have to search an=NNNNN

There is a small graphic problem remaining : each term is hilighted separatly
even if all links point to the same an. Would be better to have only 1 link
but i'm afraid to break something in case there is no $9, so I don't change

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-12-07 11:38:18 +01:00 committed by Joshua Ferraro
parent c511128e12
commit 3daed5d02a

View file

@ -94,7 +94,7 @@
<!-- TMPL_IF NAME="MARCSUBJCTS" -->
<p><span class="label">Subject(s):</span> <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
<!-- TMPL_LOOP NAME="MARCSUBJECT_SUBFIELDS_LOOP" -->
<!-- TMPL_VAR NAME="separator" --><a title="$<!-- TMPL_VAR NAME="code" --> <!-- TMPL_VAR NAME="value" -->" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_LOOP NAME="link_loop" --><!-- TMPL_VAR NAME="operator" -->su:<!-- TMPL_VAR NAME="link" --> <!-- /TMPL_LOOP -->"><!-- TMPL_VAR NAME="value" --></a>
<!-- TMPL_VAR NAME="separator" --><a title="$<!-- TMPL_VAR NAME="code" --> <!-- TMPL_VAR NAME="value" -->" href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_LOOP NAME="link_loop" --><!-- TMPL_VAR NAME="operator" --><!-- TMPL_VAR name="limit" -->:<!-- TMPL_VAR NAME="link" --> <!-- /TMPL_LOOP -->"><!-- TMPL_VAR NAME="value" --></a>
<!-- /TMPL_LOOP --> | <!-- /TMPL_LOOP --></p>
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="subjects" --><p><strong>Subject(s):</strong> <!-- TMPL_LOOP name="subjects" --><a href="/cgi-bin/koha/opac-search.pl?q=su:<!-- TMPL_VAR NAME="subject" escape="HTML"-->"><!-- TMPL_VAR NAME="subject" --></a> | <!-- /TMPL_LOOP --></p><!-- /TMPL_IF --></p>