Bug 6174: Fix ordering of existing title

basketno was treated as local to the resultsloop
also changed the tt variable name for readability

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Colin Campbell 2011-04-12 16:25:51 +01:00 committed by Chris Cormack
parent 25d6beb805
commit f11ba1343c

View file

@ -45,29 +45,29 @@
<th>Copyright</th> <th>Copyright</th>
<th colspan="2">&nbsp;</th> <th colspan="2">&nbsp;</th>
</tr> </tr>
[% FOREACH resultsloo IN resultsloop %] [% FOREACH biblio IN resultsloop %]
<tr> <tr>
<td> <td>
<p><span class="title">[% resultsloo.title |html %]</span> <p><span class="title">[% biblio.title |html %]</span>
[% IF ( resultsloo.author ) %] by <span class="author">[% resultsloo.author %]</span>,[% END %]</p> [% IF ( biblio.author ) %] by <span class="author">[% biblio.author %]</span>,[% END %]</p>
<p>[% IF ( resultsloo.isbn ) %] [% resultsloo.isbn %][% END %] <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
[% IF ( resultsloo.pages ) %] - [% resultsloo.pages %][% END %] [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
[% IF ( resultsloo.notes ) %] : [% resultsloo.notes %][% END %] [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
[% IF ( resultsloo.size ) %] ; [% resultsloo.size %][% END %] [% IF ( biblio.size ) %] ; [% biblio.size %][% END %]
</p> </p>
</td> </td>
<td> <td>
[% resultsloo.publishercode %] [% biblio.publishercode %]
[% IF ( resultsloo.place ) %] ; [% resultsloo.place %][% END %] [% IF ( biblio.place ) %] ; [% biblio.place %][% END %]
</td> </td>
<td> <td>
[% resultsloo.copyrightdate %] [% biblio.copyrightdate %]
</td> </td>
<td> <td>
<a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">View MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">View MARC</a>
</td> </td>
<td> <td>
<a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% resultsloo.booksellerid %]&amp;basketno=[% resultsloo.basketno %]&amp;biblionumber=[% resultsloo.biblionumber %]" title="Order this one"> <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% biblio.booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
Order Order
</a> </a>
</td> </td>