From c814bee83af9e672ef7d973173ae7fb81f832396 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 12 Feb 2009 17:04:20 -0600 Subject: [PATCH] bug 2952 followup The feature in question is described in bug 2952; to summarize the enhancement, which the earlier patch description did not do, the list of bibs in an import record batch now includes a column linking each import record to the bib that was actually created or updated when the import batch was committed. The improvements in this patch are: * If bib in import batch has not been committed, it has not been linked to a matching new or updated bib. In that case, do not create a link to a guaranteed 404 (/cgi-bin/koha/catalogue/detail.pl?biblionumber=) * When reverting an import batch, set matched_biblionumber to NULL for affected records - otherwise, the Bib column will include links to bibs that may no longer exist. * Fixed a minor HTML validation error. Signed-off-by: Galen Charlton --- C4/ImportBatch.pm | 2 ++ .../prog/en/modules/tools/manage-marc-import.tmpl | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index be671c851b..fe81f71d46 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -654,6 +654,8 @@ sub BatchRevertBibRecords { $num_items_deleted += BatchRevertItems($rowref->{'import_record_id'}, $rowref->{'matched_biblionumber'}); SetImportRecordStatus($rowref->{'import_record_id'}, 'reverted'); } + my $sth2 = $dbh->prepare_cached("UPDATE import_biblios SET matched_biblionumber = NULL WHERE import_record_id = ?"); + $sth2->execute($rowref->{'import_record_id'}); } $sth->finish(); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tmpl index 74b5e65d1f..d71f8865e1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tmpl @@ -78,7 +78,7 @@ " /> " />
    -
  1. +