Bugzilla – Attachment 12415 Details for
Bug 7873
Title sort in OPAC basket doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7873: fixes sort on Title in OPAC basket
SIGNED-OFF-Bug-7873-fixes-sort-on-Title-in-OPAC-ba.patch (text/plain), 3.06 KB, created by
Marc Véron
on 2012-09-21 12:18:03 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7873: fixes sort on Title in OPAC basket
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-09-21 12:18:03 UTC
Size:
3.06 KB
patch
obsolete
>From a377c70fdacd973e91bc9f5af8697eef1549c123 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Fri, 21 Sep 2012 10:53:03 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 7873: fixes sort on Title in OPAC basket >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Marc Veron <veron@veron.ch> > >Reproduced wront title sort without patch. >Sort works as expected with patch. >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 24 ++++++++++++++++--- > 1 files changed, 20 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >index 2ea6d94..e5a18d3 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >@@ -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 %] >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7873
:
12410
|
12415
|
12431