View | Details | Raw Unified | Return to bug 9456
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js (+24 lines)
Lines 548-553 jQuery.fn.dataTableExt.oSort['callnumbers-asc'] = function(x,y) { Link Here
548
        x_array.shift();
548
        x_array.shift();
549
        y_array.shift();
549
        y_array.shift();
550
550
551
        x_array = jQuery.map( x_array, function( a ) { 
552
            return parse_callnumber( a ); 
553
        });
554
        y_array = jQuery.map( y_array, function( a ) { 
555
            return parse_callnumber( a ); 
556
        });
557
551
        x_array.sort();
558
        x_array.sort();
552
        y_array.sort();
559
        y_array.sort();
553
560
Lines 565-570 jQuery.fn.dataTableExt.oSort['callnumbers-desc'] = function(x,y) { Link Here
565
        x_array.shift();
572
        x_array.shift();
566
        y_array.shift();
573
        y_array.shift();
567
574
575
        x_array = jQuery.map( x_array, function( a ) { 
576
            return parse_callnumber( a ); 
577
        });
578
        y_array = jQuery.map( y_array, function( a ) { 
579
            return parse_callnumber( a ); 
580
        });
581
568
        x_array.sort();
582
        x_array.sort();
569
        y_array.sort();
583
        y_array.sort();
570
584
Lines 573-575 jQuery.fn.dataTableExt.oSort['callnumbers-desc'] = function(x,y) { Link Here
573
587
574
        return ((x < y) ?  1 : ((x > y) ? -1 : 0));
588
        return ((x < y) ?  1 : ((x > y) ? -1 : 0));
575
};
589
};
590
591
function parse_callnumber ( html ) {
592
    var array = html.split('<span class="callnumber">');
593
    if ( array[1] ) {
594
        array = array[1].split('</span>');
595
        return array[0];
596
    } else {
597
        return "";
598
    }
599
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-2 / +1 lines)
Lines 326-332 function placeHold () { Link Here
326
            <td>
326
            <td>
327
                [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
327
                [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
328
                    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
328
                    [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
329
                        <div><span class="nowrap"><strong>[% ITEM_RESULT.itemcallnumber %]</strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div>
329
                        <div><span class="nowrap"><strong><span class="callnumber">[% ITEM_RESULT.itemcallnumber %]</span></strong> [% ITEM_RESULT.branchname %] <span class="shelvingloc inline">[% ITEM_RESULT.location_description %]</span></span></div>
330
                    [% END %]
330
                    [% END %]
331
                [% ELSE %]
331
                [% ELSE %]
332
                    This record has no items.
332
                    This record has no items.
333
- 

Return to bug 9456