Bug 9685: Allow sort baskets by number
In acqui/booksellers.pl, first column of baskets tables is "name (#number)". This allows to sort by name but not by numnber. This patch splits acutal first column into 2 columns number and name to allow sorting on number. Sets default sort on name like existing. Test plan: Look at page and use sorting on name and number columns. Signed-off-by: Marc Sabin <marc.sabin@sciencespo-grenoble.fr> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Nice change for better usability. Sorting of both columns works nicely. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
b3aace1d82
commit
6df7652ac8
|
|
@ -21,6 +21,7 @@ $(document).ready(function() {
|
|||
'bPaginate': false,
|
||||
'bFilter': false,
|
||||
'bInfo': false,
|
||||
"aaSorting": [[ 1, "asc" ]],
|
||||
'aoColumnDefs': [
|
||||
{ 'aTargets': [-1], 'bSortable': false }
|
||||
]
|
||||
|
|
@ -85,7 +86,8 @@ $(document).ready(function() {
|
|||
<table class="baskets">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Basket (#)</th>
|
||||
<th>N°</th>
|
||||
<th>Name</th>
|
||||
<th>Item count</th>
|
||||
<th>Biblio count</th>
|
||||
<th>Items expected</th>
|
||||
|
|
@ -101,7 +103,8 @@ $(document).ready(function() {
|
|||
[% ELSE %]
|
||||
<tr>
|
||||
[% END %]
|
||||
<td>[% basket.basketname %] (#[% basket.basketno %])</td>
|
||||
<td>[% basket.basketno %]</td>
|
||||
<td>[% basket.basketname %]</td>
|
||||
<td>[% basket.total_items %]</td>
|
||||
<td>[% basket.total_biblios %]</td>
|
||||
<td>[% basket.expected_items %]</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue