diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm
index a4c7c01a21..a8eb1d08f1 100644
--- a/C4/Reports/Guided.pm
+++ b/C4/Reports/Guided.pm
@@ -83,8 +83,12 @@ my $AREA_NAME_SQL_SNIPPET
= "CASE report_area " .
join (" ", map "WHEN '$_->[0]' THEN '$_->[1]'", @REPORT_AREA) .
" END AS areaname";
+
sub get_report_areas {
- return \@REPORT_AREA
+
+ my $report_areas = [ 'CIRC', 'CAT', 'PAT', 'ACQ', 'ACC' ];
+
+ return $report_areas;
}
my %table_areas = (
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
index ee40dcf278..7ca9c82a46 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
@@ -8,6 +8,16 @@
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
+[%- BLOCK area_name -%]
+ [%- SWITCH area -%]
+ [%- CASE 'CIRC' -%]Circulation
+ [%- CASE 'CAT' -%]Catalog
+ [%- CASE 'PAT' -%]Patrons
+ [%- CASE 'ACQ' -%]Acquisitions
+ [%- CASE 'ACC' -%]Accounts
+ [%- END -%]
+[%- END -%]
+
Home ›
Reports ›
Guided reports wizard
[% IF ( new_dictionary ) %] ›
Dictionary ›
Name the new definition
[% ELSIF ( step_2 ) %] ›
Dictionary ›
Step 2: Choose the area
@@ -36,21 +46,22 @@
Current terms
-
- [% END %]
+ [% IF ( areas ) %]
+ Filter by area
+
+
+ [% END %]
+
+
| Name |
@@ -99,24 +110,27 @@
[% END %]
-[% IF ( step_2 ) %]
+[%- IF ( step_2 ) -%]
Add new definition
-[% END %]
+[%- END -%]
[% IF ( step_3 ) %]
Add new definition
@@ -227,33 +241,34 @@
Add new definition
+
+
+ -
+ Name:[%- definition_name -%]
+
+ -
+ Description:[%- definition_description -%]
+
+ -
+ Area:[%- PROCESS area_name area=area -%]
+
+ -
+ Data:
+
+
+ | Columns |
+ Values |
+
+ [%- FOREACH criteria_loo IN criteria_loop -%]
+
+ | [%- criteria_loo.name -%] |
+ [%- criteria_loo.value -%] |
+
+ [%- END -%]
+
+
+
+