@@ -, +, @@ with cardnumber or borrowernumber 1 - Write a report like: SELECT cardnumber FROM borrowers ORDER BY rand() LIMIT 35 2 - Run report 3 - Click "Batch operations.." -> "Batch patron modification" 4 - Confirm it works 5 - Edit report: SELECT borrowernumber FROM borrowers ORDER BY rand() LIMIT 35 6 - Run report 7 - No option for batch modifying patrons 8 - Apply patch 9 - Run report SELECT cardnumber,borrowernumber FROM borrowers ORDER BY rand() LIMIT 35 --- .../prog/en/modules/reports/guided_reports_start.tt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1003,8 +1003,15 @@ [% INCLUDE 'csrf-token.inc' %] [% # Preserve the whitespace of the following textarea in order to format the values correctly %] + [%- borrowernumbers = PROCESS batch_list results=results batch_type='borrowernumber' | trim | html -%] + [%- IF borrowernumbers -%] + [%- SET batch_borrowernumbers = 1 -%] + + [%- END -%] [%- cardnumbers = PROCESS batch_list results=results batch_type='cardnumber' | trim | html %] - [% IF cardnumbers %] + [% IF !batch_borrowernumbers && cardnumbers %] [% SET batch_cardnumbers = cardnumbers.length %] [% FOR b IN cardnumbers.split("\n") %] @@ -1067,7 +1074,7 @@ [% END %] [% IF show_cardnumber_ops || show_borrowernumber_ops %]