@@ -, +, @@
---
C4/ImportBatch.pm | 6 ++++--
.../prog/en/modules/tools/manage-marc-import.tt | 12 +++++++++---
tools/batch_records_ajax.pl | 2 --
3 files changed, 13 insertions(+), 7 deletions(-)
--- a/C4/ImportBatch.pm
+++ a/C4/ImportBatch.pm
@@ -1032,8 +1032,10 @@ sub GetImportRecordsRange {
my $dbh = C4::Context->dbh;
- my $order_by =
- $dbh->quote_identifier( $parameters->{order_by} || 'import_record_id' );
+ my $order_by = $parameters->{order_by} || 'import_record_id';
+ ( $order_by ) = grep( /^$order_by$/, qw( import_record_id title status overlay_status ) ) ? $order_by : 'import_record_id';
+ $order_by .= ",authorized_heading" if $order_by eq 'title';
+
my $order_by_direction =
uc( $parameters->{order_by_direction} ) eq 'DESC' ? 'DESC' : 'ASC';
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
@@ -58,6 +58,12 @@ $(document).ready(function(){
});
},
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
+ [% IF ( record_type == 'auth' ) %]
+ var record_details_url = "/cgi-bin/koha/authorities/detail.pl?authid=";
+ [% ELSE %]
+ var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=";
+ [% END %]
+
$('td:eq(1)', nRow).html(
'' + aData['match_citation'] + ''
);
}
$('td:eq(5)', nRow).html(
- '' + aData['matched'] + ''
+ '' + aData['matched'] + ''
);
},
});
--- a/tools/batch_records_ajax.pl
+++ a/tools/batch_records_ajax.pl
@@ -1,7 +1,5 @@
#!/usr/bin/perl
-# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
-
# Copyright 2013 ByWater Solutions
# Based on circ/ysearch.pl: Copyright 2007 Tamil s.a.r.l.
#
--