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 colspan="2">&nbsp;</th>
</tr>
[% FOREACH resultsloo IN resultsloop %]
[% FOREACH biblio IN resultsloop %]
<tr>
<td>
<p><span class="title">[% resultsloo.title |html %]</span>
[% IF ( resultsloo.author ) %] by <span class="author">[% resultsloo.author %]</span>,[% END %]</p>
<p>[% IF ( resultsloo.isbn ) %] [% resultsloo.isbn %][% END %]
[% IF ( resultsloo.pages ) %] - [% resultsloo.pages %][% END %]
[% IF ( resultsloo.notes ) %] : [% resultsloo.notes %][% END %]
[% IF ( resultsloo.size ) %] ; [% resultsloo.size %][% END %]
<p><span class="title">[% biblio.title |html %]</span>
[% IF ( biblio.author ) %] by <span class="author">[% biblio.author %]</span>,[% END %]</p>
<p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
[% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
[% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
[% IF ( biblio.size ) %] ; [% biblio.size %][% END %]
</p>
</td>
<td>
[% resultsloo.publishercode %]
[% IF ( resultsloo.place ) %] ; [% resultsloo.place %][% END %]
[% biblio.publishercode %]
[% IF ( biblio.place ) %] ; [% biblio.place %][% END %]
</td>
<td>
[% resultsloo.copyrightdate %]
[% biblio.copyrightdate %]
</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>
<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
</a>
</td>