diff --git a/about.pl b/about.pl index 3cb2ec3231..20b46cb572 100755 --- a/about.pl +++ b/about.pl @@ -511,6 +511,10 @@ $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; q|select b.biblionumber from biblio b join deletedbiblio db on b.biblionumber=db.biblionumber|, { Slice => {} } ); + my $biblioitems = $dbh->selectall_arrayref( + q|select bi.biblioitemnumber from biblioitems bi join deletedbiblioitems dbi on bi.biblionumber=dbi.biblionumber|, + { Slice => {} } + ); my $items = $dbh->selectall_arrayref( q|select i.itemnumber from items i join deleteditems di on i.itemnumber=di.itemnumber|, { Slice => {} } @@ -523,11 +527,12 @@ $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; q|select r.reserve_id from reserves r join old_reserves o on r.reserve_id=o.reserve_id|, { Slice => {} } ); - if ( @$patrons or @$biblios or @$items or @$checkouts or @$holds ) { + if ( @$patrons or @$biblios or @$biblioitems or @$items or @$checkouts or @$holds ) { $template->param( has_ai_issues => 1, ai_patrons => $patrons, ai_biblios => $biblios, + ai_biblioitems=> $biblioitems, ai_items => $items, ai_checkouts => $checkouts, ai_holds => $holds, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 2903094203..da6183cbbd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -321,6 +321,16 @@ [% END %]
[% END %] + [% IF ai_biblioitems %] +The following IDs exist in both tables [% "biblio" | $HtmlTags tag="strong" %] and [% "deletedbiblioitems" | $HtmlTags tag="strong" %]:
++ [% FOR b IN ai_biblioitems %] + [% b.biblioitemnumber | html %] + [% UNLESS loop.last %], [% END %] + [% END %] +
+ [% END %] [% IF ai_items %]The following IDs exist in both tables [% "items" | $HtmlTags tag="strong" %] and [% "deleteditems" | $HtmlTags tag="strong" %]: