[Koha-bugs] [Bug 3229] The "Sort By" feature for lists does not work

bugzilla-daemon at liblime.com bugzilla-daemon at liblime.com
Thu Aug 6 15:37:44 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3229





--- Comment #4 from Garry Collum <gcollum at gmail.com>  2009-08-06 13:37:44 ---
I played with this last night.  The title sorting using the jquery tablesorter
works perfectly in IE, well IE 8, but it does not work in Firefox, Opera,
Chrome, or Epiphany.

The problem seems to be the HTML anchors.  The javascript in IE seems to pull
out the anchor text, the actually title, for the 'articles' function that is
used for sorting, the other browsers do not.  The other browsers are sorting
the entire anchor tag, URL + Text.

There are a couple of solutions.
1. Use javascript to pull out the anchor text.  - I didn't get this to work.  I
tried a couple of different methods (.text and .innerHTML) but whenever I
pulled out the text the sorting did not function within the table at all.

2. Add a name tag that includes the title to the anchors before the href tag. 
This works, except the articles are not removed from the title and spaces with
the name defined by a name tag are not valid XHTML.  Would adding another
variable that includes a title with no leading article and no spaces overkill
for this problem?





-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list