Bug 15366 - Fix breadcrumbs and html page title in guided reports
This patch fixes following issues with breadcrumbs and html page title in Home > Reports > Guided reports wizard: - Sometimes, breadcrumbs display a stray > at the end - While creating a report, steps are not displayed in breadcrumbs and do not appear in html page title - html page title is divided by newlines To test: - Apply patch - Go to Home > Reports > Guided reports wizard - Go to all pages including the steps for creating a new report and verify - that the breadcrumbs display properly and make sense - in html source, the page title makes sense and displays on one line. Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as descrived Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
bc2e4ba862
commit
639ccd469f
2 changed files with 29 additions and 30 deletions
|
@ -12,22 +12,21 @@
|
|||
[%- END -%]
|
||||
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Reports › Guided reports wizard
|
||||
[% IF ( saved1 ) %]› Saved reports
|
||||
[% ELSIF ( create ) %]› Create from SQL
|
||||
[% ELSIF ( showsql ) %]› Saved reports › SQL view
|
||||
[% ELSIF ( execute ) %]› Saved reports › [% name %] Report
|
||||
[% ELSIF ( editsql ) %]› Saved reports › Edit SQL report
|
||||
[% ELSIF ( buildx ) %]› Build a report, step [% buildx %] of 6:
|
||||
[% IF ( build1 ) %]Choose a module
|
||||
[% ELSIF ( build2 ) %]Pick a report type
|
||||
[% ELSIF ( build3 ) %]Select columns for display
|
||||
[% ELSIF ( build4 ) %]Select criteria to limit on
|
||||
[% ELSIF ( build5 ) %]Pick which columns to total
|
||||
[% ELSIF ( build6 ) %]Select how you want the report ordered
|
||||
[% END %]
|
||||
[% END %]
|
||||
</title>
|
||||
|
||||
<title>Koha › Reports › Guided reports wizard [%- IF ( saved1 ) -%]› Saved reports
|
||||
[%- ELSIF ( create ) -%]› Create from SQL
|
||||
[%- ELSIF ( showsql ) -%]› Saved reports › SQL view
|
||||
[%- ELSIF ( execute ) -%]› Saved reports › [% name %] Report
|
||||
[%- ELSIF ( editsql ) -%]› Saved reports › Edit SQL report
|
||||
[%- END -%]
|
||||
[%- IF ( build1 ) -%]› Build a report, step 1 of 6: Choose a module
|
||||
[%- ELSIF ( build2 ) -%]› Build a report, step 2 of 6: Pick a report type
|
||||
[%- ELSIF ( build3 ) -%]› Build a report, step 3 of 6: Select columns for display
|
||||
[%- ELSIF ( build4 ) -%]› Build a report, step 4 of 6: Select criteria to limit on
|
||||
[%- ELSIF ( build5 ) -%]› Build a report, step 5 of 6: Pick which columns to total
|
||||
[%- ELSIF ( build6 ) -%]› Build a report, step 6 of 6: Select how you want the report ordered
|
||||
[%- END -%]</title>
|
||||
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
<style type="text/css">
|
||||
|
@ -226,19 +225,19 @@ $(document).ready(function(){
|
|||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
||||
› <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
|
||||
› <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
|
||||
›
|
||||
[% IF ( saved1 ) %]Saved reports
|
||||
[% ELSIF ( create ) %]Create from SQL
|
||||
[% ELSIF ( showsql ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › SQL view
|
||||
[% ELSIF ( editsql ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › Edit SQL report
|
||||
[% ELSIF ( execute ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › <em>[% name %]</em> Report
|
||||
[% ELSIF ( buildx ) %]<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a report</a> › Step [% buildx %] of 6:
|
||||
[% IF ( build1 ) %]Choose a module
|
||||
[% ELSIF ( build2 ) %]Pick a report type
|
||||
[% ELSIF ( build3 ) %]Select columns for display
|
||||
[% ELSIF ( build4 ) %]Select criteria to limit on
|
||||
[% ELSIF ( build5 ) %]Pick which columns to total
|
||||
[% ELSIF ( build6 ) %]Select how you want the report ordered
|
||||
|
||||
[% IF ( saved1 ) %]› Saved reports
|
||||
[% ELSIF ( create ) %]› Create from SQL
|
||||
[% ELSIF ( showsql ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › SQL view
|
||||
[% ELSIF ( editsql ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › Edit SQL report
|
||||
[% ELSIF ( execute ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved">Saved reports</a> › <em>[% name %]</em> Report
|
||||
[% ELSIF ( build1 || build2 || build3 || build4 || build5 || build6 ) %]› <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">Build a report</a>
|
||||
[% IF ( build1 ) %]› Step 1 of 6: Choose a module
|
||||
[% ELSIF ( build2 ) %]› Step 2 of 6: Pick a report type
|
||||
[% ELSIF ( build3 ) %]› Step 3 of 6: Select columns for display
|
||||
[% ELSIF ( build4 ) %]› Step 4 of 6: Select criteria to limit on
|
||||
[% ELSIF ( build5 ) %]› Step 5 of 6: Pick which columns to total
|
||||
[% ELSIF ( build6 ) %]› Step 6 of 6: Select how you want the report ordered
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div>
|
||||
|
|
|
@ -954,7 +954,7 @@ sub header_cell_loop {
|
|||
}
|
||||
|
||||
foreach (1..6) {
|
||||
$template->{VARS}->{'build' . $_} and $template->{VARS}->{'buildx' . $_} and last;
|
||||
$template->{VARS}->{'build' . $_} and last;
|
||||
}
|
||||
$template->param( 'referer' => $input->referer(),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue