Browse Source

Bug 29201: Add option to insert biblio_framework runtime parameter in SQL report

This patch modifies the SQL report creation process so that the list of
runtime parameters includes an option for bibliographic framework.

To test, apply the patch and go to Reports -> Create from SQL.

- Click the "Insert runtime parameter" menu button and select
  "Bibliographic framework."
- You should be shown a modal dialog in which you can change the label
  on the framework input.
- Click "Insert parameter." The SQL field should now contain the correct
  parameter, e.g. <<Framework|biblio_framework>>
- Use the parameter to define an SQL query, e.g.

  "SELECT * FROM biblio WHERE frameworkcode =
  <<Framework|biblio_framework>> LIMIT 10"

- Run the report. You should be asked to choose a framework. Confirm
  that the report runs correctly.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Owen Leonard 3 years ago
committed by Jonathan Druart
parent
commit
d14c1f15a4
  1. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

6
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

@ -1536,6 +1536,11 @@
$("#paramLabel").val( _("Source of classification or shelving scheme") );
$("#param_category").val("cn_source");
break;
case "insertFramework":
modalTitle.text( _("Insert bibliographic framework parameter") );
$("#paramLabel").val( _("Framework") );
$("#param_category").val("biblio_framework");
break;
case "insertDate":
modalTitle.text( _("Insert date parameter") );
$("#paramLabel").val( _("Date") );
@ -2289,6 +2294,7 @@
</button>
<ul class="dropdown-menu">
<li><a href="#" class="insertParam" id="insertAuthVal">Authorized values</a></li>
<li><a href="#" class="insertParam" id="insertFramework">Bibliographic framework</a></li>
<li><a href="#" class="insertParam" id="insertCnSource">Classification sources</a></li>
<li><a href="#" class="insertParam" id="insertDate">Date</a></li>
<li><a href="#" class="insertParam" id="insertItemtypes">Item types</a></li>

Loading…
Cancel
Save