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

(-)a/C4/Serials.pm (+10 lines)
Lines 612-617 sub GetSubscriptions { Link Here
612
    my $odd           = 1;
612
    my $odd           = 1;
613
613
614
    while ( my $line = $sth->fetchrow_hashref ) {
614
    while ( my $line = $sth->fetchrow_hashref ) {
615
        if ( $previousbiblio eq $line->{biblionumber} ) {
616
            # Disabled for sorting and filtering on issn and title
617
            # to work on serials-home.pl
618
            #$line->{title} = "";
619
            #$line->{issn}  = "";
620
        } else {
621
            $previousbiblio = $line->{biblionumber};
622
            $odd           = -$odd;
623
        }
624
        $line->{toggle} = 1 if $odd == 1;
615
        $line->{'cannotedit'} =
625
        $line->{'cannotedit'} =
616
          (      C4::Context->preference('IndependantBranches')
626
          (      C4::Context->preference('IndependantBranches')
617
              && C4::Context->userenv
627
              && C4::Context->userenv
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-11 / +26 lines)
Lines 1-18 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
2
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
5
<script type="text/javascript">
8
<script type="text/javascript">
6
//<![CDATA[
9
//<![CDATA[
7
 $(document).ready(function() {
10
 $(document).ready(function() {
8
        $("#srlt").tablesorter({
11
    var srlt = $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
9
            headers: {
12
        "aoColumnDefs": [
10
                2: { sorter: false },
13
            { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
11
                4: { sorter: false },
14
        ],
12
				5: { sorter: false }
15
        "sPaginationType": "full_numbers"
13
            }
16
    } ) );
14
        }); 
17
15
 }); 
18
    srlt.fnAddFilters("filter", 750);
19
 });
16
 //]]>
20
 //]]>
17
</script>
21
</script>
18
</head>
22
</head>
Lines 85-93 Serials updated : Link Here
85
            [% IF ( routing ) %]
89
            [% IF ( routing ) %]
86
              <th>Routing list</th>
90
              <th>Routing list</th>
87
            [% END %]        
91
            [% END %]        
88
            <th colspan="2">&nbsp;</th>
92
            <th>&nbsp;</th>
93
            <th>&nbsp;</th>
89
        </tr>
94
        </tr>
90
	</thead>
95
	</thead>
96
    <tfoot>
97
        <tr>
98
            <td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td>
99
            <td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td>
100
            <td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td>
101
            <td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td>
102
            <td></td>
103
            <td></td>
104
            <td></td>
105
        </tr>
106
    </tfoot>
91
	<tbody> 
107
	<tbody> 
92
        [% FOREACH subscription IN subscriptions %]
108
        [% FOREACH subscription IN subscriptions %]
93
        [% UNLESS ( loop.odd ) %]
109
        [% UNLESS ( loop.odd ) %]
94
- 

Return to bug 6838