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

(-)a/C4/ImportBatch.pm (-2 / +4 lines)
Lines 1032-1039 sub GetImportRecordsRange { Link Here
1032
1032
1033
    my $dbh = C4::Context->dbh;
1033
    my $dbh = C4::Context->dbh;
1034
1034
1035
    my $order_by =
1035
    my $order_by = $parameters->{order_by} || 'import_record_id';
1036
      $dbh->quote_identifier( $parameters->{order_by} || 'import_record_id' );
1036
    ( $order_by ) = grep( /^$order_by$/, qw( import_record_id title status overlay_status ) ) ? $order_by : 'import_record_id';
1037
    $order_by .= ",authorized_heading" if $order_by eq 'title';
1038
1037
    my $order_by_direction =
1039
    my $order_by_direction =
1038
      uc( $parameters->{order_by_direction} ) eq 'DESC' ? 'DESC' : 'ASC';
1040
      uc( $parameters->{order_by_direction} ) eq 'DESC' ? 'DESC' : 'ASC';
1039
1041
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-3 / +9 lines)
Lines 58-63 $(document).ready(function(){ Link Here
58
              });
58
              });
59
          },
59
          },
60
          "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
60
          "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
61
            [% IF ( record_type == 'auth' ) %]
62
                var record_details_url = "/cgi-bin/koha/authorities/detail.pl?authid=";
63
            [% ELSE %]
64
                var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=";
65
            [% END %]
66
61
            $('td:eq(1)', nRow).html(
67
            $('td:eq(1)', nRow).html(
62
                '<a href="javascript:void(0)" onclick="show_marc('
68
                '<a href="javascript:void(0)" onclick="show_marc('
63
                + aData['import_record_id']
69
                + aData['import_record_id']
Lines 86-99 $(document).ready(function(){ Link Here
86
                    + aData['match_id']
92
                    + aData['match_id']
87
                    + " (" + _("score") + "="
93
                    + " (" + _("score") + "="
88
                    + aData['score']
94
                    + aData['score']
89
                    + '):' + '<a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber='
95
                    + '):' + '<a target="_blank" href="' + record_details_url
90
                    + aData['match_id'] + '">' + aData['match_citation'] + '</a>'
96
                    + aData['match_id'] + '">' + aData['match_citation'] + '</a>'
91
                );
97
                );
92
            }
98
            }
93
99
94
            $('td:eq(5)', nRow).html(
100
            $('td:eq(5)', nRow).html(
95
                '<a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber='
101
                '<a target="_blank" href="' + record_details_url
96
                + aData['matched'] + '">' + aData['matched'] + '</a>'
102
                    + aData['matched'] + '">' + aData['matched'] + '</a>'
97
            );
103
            );
98
          },
104
          },
99
      });
105
      });
(-)a/tools/batch_records_ajax.pl (-3 lines)
Lines 1-7 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
4
5
# Copyright 2013 ByWater Solutions
3
# Copyright 2013 ByWater Solutions
6
# Based on circ/ysearch.pl: Copyright 2007 Tamil s.a.r.l.
4
# Based on circ/ysearch.pl: Copyright 2007 Tamil s.a.r.l.
7
#
5
#
8
- 

Return to bug 10558