Bug 1561 - z39.50 results do not show search terms
authorMarc Véron <veron@veron.ch>
Mon, 28 Jul 2014 22:21:17 +0000 (00:21 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Aug 2014 15:28:58 +0000 (12:28 -0300)
This patch adds a line with search terms results window of z39.50 search.

To test:
- In staff client, go to cataloging.
- Click 'New from z39.50'
- Do a search
- Your search terms should display at the top of the results page.
- Repeat search with several combinations of search terms (with and without results).

- Check the output for correct html.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes tests and QA script, fixed one tab.
Something similar would be nice for the results in the Z39.50 search
in acq as well.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt

index 37b03dc..66a7e12 100644 (file)
@@ -148,6 +148,19 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
 
 [% ELSE %]
     <h2>Results</h2>
+    <p>You searched for:
+        [% IF ( title ) %]<em>Title: </em><span class=term>[% title %]</span> [% END %]
+        [% IF ( author ) %]<em>Author: </em><span class=term>[% author %]</span> [% END %]
+        [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn %]</span> [% END %]
+        [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn %]</span> [% END %]
+        [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall %]</span> [% END %]
+        [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject %]</span> [% END %]
+        [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber %]</span> [% END %]
+        [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey %]</span> [%END %]
+        [% IF ( srchany ) %]<em>Raw (any): </em><span class=term>[% srchany %]</span> [% END %]
+        [% IF ( stdid ) %]<em>Standard ID: </em><span class=term>[% stdid %]</span> [% END %]
+    </p>
+
     [% IF ( breeding_loop ) %]
     <table id="resultst">
 <thead>    <tr>
@@ -222,8 +235,8 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
                 </ul>
             </div>
          [% END %]
-   <div class="dialog message">Nothing found.</div>
-       <p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
+    <div class="dialog message"><h3>Nothing found</h3>
+    <p><form method="gut" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
     [% END %]