Bug 7873: fixes sort on Title in OPAC basket
Signed-off-by: Marc Veron <veron@veron.ch> Reproduced wrong title sort without patch. Sort works as expected with patch. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
238aa44379
commit
98d8e1609a
1 changed files with 20 additions and 4 deletions
|
@ -23,10 +23,28 @@
|
|||
//<![CDATA[
|
||||
|
||||
var MSG_NO_RECORD_SELECTED = _("Please select one or more items");
|
||||
|
||||
$.tablesorter.addParser({
|
||||
// set a unique id
|
||||
id: 'links',
|
||||
is: function(s)
|
||||
{
|
||||
// return false so this parser is not auto detected
|
||||
return false;
|
||||
},
|
||||
format: function(s)
|
||||
{
|
||||
// format your data for normalization
|
||||
return s.replace(new RegExp(/<.*?>/),"");
|
||||
},
|
||||
// set type, either numeric or text
|
||||
type: 'text'
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#itemst").tablesorter({
|
||||
headers: { 0: { sorter: false },4:{sorter:false}}
|
||||
headers: { 0: { sorter: false }, 1: {sorter: 'links'}, 4:{sorter:false}}
|
||||
});
|
||||
$(".cb").click(function(){
|
||||
enableCheckboxActions();
|
||||
|
@ -368,9 +386,7 @@ function enableCheckboxActions(){
|
|||
|
||||
</td> [% END %]
|
||||
<td>
|
||||
<a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest %]',[% BIBLIO_RESULT.biblionumber %])">
|
||||
[% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]
|
||||
</a>
|
||||
<a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest %]',[% BIBLIO_RESULT.biblionumber %])">[% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]</a>
|
||||
<!-- COinS / Openurl -->
|
||||
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.size %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span>
|
||||
[% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]<div id="newtag[% BIBLIO_RESULT.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</div>[% END %][% END %][% END %]
|
||||
|
|
Loading…
Reference in a new issue