@@ -, +, @@ duplicate search - tabs was broken - 'duplicate search' have to be replaced with 'duplicate finder' - adds datatable instead of tablesorter --- C4/Suggestions.pm | 4 +- acqui/acqui-home.pl | 1 - acqui/{duplicatesearch.pl => duplicatefinder.pl} | 4 +- .../prog/en/includes/acquisitions-menu.inc | 2 +- .../prog/en/modules/acqui/duplicatefinder.tt | 148 +++++++++++++++++++ .../prog/en/modules/acqui/duplicatesearch.tt | 154 -------------------- 6 files changed, 153 insertions(+), 160 deletions(-) rename acqui/{duplicatesearch.pl => duplicatefinder.pl} (97%) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatefinder.tt delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatesearch.tt --- a/C4/Suggestions.pm +++ a/C4/Suggestions.pm @@ -571,9 +571,9 @@ sub DelSuggestion { =head2 DelSuggestionsOlderThan &DelSuggestionsOlderThan($days) - + Delete all suggestions older than TODAY-$days , that have be accepted or rejected. - + =cut sub DelSuggestionsOlderThan { --- a/acqui/acqui-home.pl +++ a/acqui/acqui-home.pl @@ -94,7 +94,6 @@ my $totavail_active = 0; my @budget_loop; foreach my $budget ( @{$budget_arr} ) { next unless (CanUserUseBudget($loggedinuser, $budget, $userflags)); - $budget->{budget_code_indent} =~ s/\ /\ \;/g; $budget->{'budget_branchname'} = --- a/acqui/duplicatesearch.pl +++ a/acqui/duplicatesearch.pl @@ -22,7 +22,7 @@ =head1 NAME -duplicatesearch.pl +duplicatefinder.pl =head1 DESCRIPTION @@ -49,7 +49,7 @@ my $op = $input->param('op'); # getting the template my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "acqui/duplicatesearch.tmpl", + template_name => "acqui/duplicatefinder.tt", query => $input, type => "intranet", authnotrequired => 0, --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc @@ -5,7 +5,7 @@ [% IF ( CAN_user_acquisition_budget_manage ) %]
  • Budgets
  • Funds
  • -
  • Duplicate finder
  • +
  • Duplicate finder
  • [% END %] [% IF ( CAN_user_parameters ) %]
  • Currencies
  • --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatefinder.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatefinder.tt @@ -0,0 +1,148 @@ +[% USE KohaDates %] +[% INCLUDE 'doc-head-open.inc' %] +Koha › Acquisitions › Duplicate finder + +[% INCLUDE 'doc-head-close.inc' %] + +[% INCLUDE 'datatables-strings.inc' %] + + + + +[% INCLUDE 'header.inc' %] +[% INCLUDE 'acquisitions-search.inc' %] + +
    +
    +
    +
    + +

    Duplicate finder

    +

    Please note that search can be slow on a large database.

    +
    + [% IF ( result ) %] +
    + +
    + [% IF (numresults_order) %] + + + + + + + + + + [% FOREACH orders_loo IN orders_loop %] + + + + + + + [% END %] +
    Basket nameOrder numberSummaryVendor
    [% orders_loo.basketname %][% orders_loo.ordernumber %][% orders_loo.title |html %]
    [% orders_loo.author %]
    [% orders_loo.name %]
    + [% ELSE %] + No results found. + [% END %] +
    +
    +

    Suggestion search results

    + [% IF (numresults_sugg) %] + + + + + + + + + + [% FOREACH sugg_loo IN sugg_loop %] + + + + + + + [% END %] +
    TitleAuthorISBNStatus
    [% sugg_loo.title %][% sugg_loo.author %][% sugg_loo.isbn %][% sugg_loo.STATUS %]
    + [% ELSE %] + No results found. + [% END %] +
    +
    +

    Catalog search results

    + [% IF (numresults_bib) %] + + + + + + + + + [% FOREACH bib_loo IN bib_loop %] + + + + + + [% END %] +
    TitleAuthorISBN
    [% bib_loo.title %][% bib_loo.author %][% bib_loo.isbn %]
    + [% ELSE %] + No results found. + [% END %] +
    +
    +[% ELSE %] +

    Please enter search terms.

    +[% END %] + +
    +
    +
    +
    +
    + +
    +

    Find duplicates:

    +
      +
    1. +
    2. +
    3. +
    + Clear All +
    +
    +[% INCLUDE 'acquisitions-menu.inc' %] +
    +
    +[% INCLUDE 'intranet-bottom.inc' %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatesearch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicatesearch.tt @@ -1,154 +0,0 @@ -[% USE KohaDates %] -[% INCLUDE 'doc-head-open.inc' %] -Koha › Acquisitions › Duplicate finder -[% INCLUDE 'doc-head-close.inc' %] - - - - - - -[% INCLUDE 'header.inc' %] -[% INCLUDE 'acquisitions-search.inc' %] - - -
    -
    -
    -
    - -

    Duplicate finder

    -

    Please note that search can be slow on a large database.

    -
    - [% IF ( result ) %] -
    - -
    - [% IF (numresults_order) %] - [% INCLUDE 'table-pager.inc' perpage='10' %] - - [% ELSE %] -
    - [% END %] - - - - - - - - - [% FOREACH orders_loo IN orders_loop %] - - - - - - - [% END %] -
    Basket nameOrder numberSummaryVendor
    [% orders_loo.basketname %][% orders_loo.ordernumber %][% orders_loo.title |html %]
    [% orders_loo.author %]
    [% orders_loo.name %]
    -
    -
    -

    Suggestion search results

    - [% IF (numresults_sugg) %] - [% INCLUDE 'table-pager.inc' perpage='10' %] - - [% ELSE %] -
    - [% END %] - - - - - - - - - [% FOREACH sugg_loo IN sugg_loop %] - - - - - - - [% END %] -
    TitleAuthorISBNStatus
    [% sugg_loo.title %][% sugg_loo.author %][% sugg_loo.isbn %][% sugg_loo.STATUS %]
    -
    -
    -

    Catalog search results

    - [% IF (numresults_bib) %] - [% INCLUDE 'table-pager.inc' perpage='10' %] - - [% ELSE %] -
    - [% END %] - - - - - - - - [% FOREACH bib_loo IN bib_loop %] - - - - - - [% END %] -
    TitleAuthorISBN
    [% bib_loo.title %][% bib_loo.author %][% bib_loo.isbn %]
    -
    -
    -[% ELSE %] -

    Please enter search terms.

    -[% END %] - -
    -
    -
    -
    -
    - -
    -

    Find duplicates:

    -
      -
    1. -
    2. -
    3. -
    - Clear All -
    -
    -[% INCLUDE 'acquisitions-menu.inc' %] -
    -
    -[% INCLUDE 'intranet-bottom.inc' %] --