Owen Leonard
255c0af989
The "highlight" class on table rows is unnecessary since we have a CSS rule which defines colors for alternating row colors. This patch removes use of the "highlight" class from templates and removes the definition from staff-global.css To test, view the affected pages and confirm that the change has not broken anything. Acquisitions -> Vendor -> View basket Acquisitions -> Late orders Acquisitions -> Ordered Acquisitions -> Vendor -> Receive shipment Acquisitions -> Spent Acquisitions -> Vendor details -> Contracts table Administration -> MARC frameworks (comment removed only) Administration -> Class sources Authorities -> Authority search results Catalog -> Bibliographic detail page -> Items -> View item's checkout history Catalog -> subject.tt (is this template used?) Cataloging -> Cataloging search results Patrons -> Patron account Reports -> Patrons who haven't checked out Reports -> Statistics wizards -> Patrons Reports -> Top lists -> Most-circulated items Reports -> Inactive -> Items with no checkouts Reports -> Reports dictionary Reports -> Statistics wizards -> Circulation Reports -> Statistics wizards -> Holds Holds -> Place a hold -> Existing holds table Serials -> New subscription -> Search for a vendor -> Search results Serials -> Check expiration Serials -> Subscription -> Serial collection Serials -> Subscription -> Serial collection -> Edit serials Suggestions Tags -> View tags -> View titles with a tag Tools -> Manage staged MARC records -> Batch (I think the affected section of this template is obsolete) Tools -> Log viewer -> Log result Lists -> View lists (May be broken by Bug 15916) Note that if you search the templates for instances of a <tr> with a "highlight" class you'll find two instances in slip templates which refer to a class defined in printreceiptinvoice.css. Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Looks good. Haven't seen any regression. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
268 lines
9.9 KiB
Text
268 lines
9.9 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Reports › Guided reports › Dictionary</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<style type="text/css">fieldset.rows table { clear: none; margin: 0;}</style>
|
|
</head>
|
|
<body id="rep_dictionary" class="rep">
|
|
[% 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 -%]
|
|
|
|
<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 ( new_dictionary ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Name the new definition</strong>
|
|
[% ELSIF ( step_2 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 2: Choose the area </strong>
|
|
[% ELSIF ( step_3 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 3: Choose a column </strong>
|
|
[% ELSIF ( step_4 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 4: Specify a value </strong>
|
|
[% ELSIF ( step_5 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 5: Confirm definition</strong>
|
|
[% ELSE %] › <strong> Dictionary </strong>[% END %]</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% IF ( start_dictionary ) %]
|
|
<div id="toolbar">
|
|
<ul class="toolbar">
|
|
<li><a id="newdictionary" class="btn btn-small" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition"><i class="fa fa-plus"></i> New definition</a></li>
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
<h1>Dictionary</h1>
|
|
[% IF ( start_dictionary ) %]
|
|
<p>Use the dictionary to define custom criteria for reporting.</p>
|
|
|
|
[% IF ( definitions ) %]
|
|
<h2>Current terms</h2>
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<input type="hidden" name="phase" value="View Dictionary" />
|
|
[% IF ( areas ) %]
|
|
Filter by area
|
|
<select name="area">
|
|
<option value="">All</option>
|
|
[% FOREACH area IN areas %]
|
|
[%- IF ( area.selected ) -%]
|
|
<option value="[% area.id %]" selected="selected">[%- PROCESS area_name area=area.id -%]</option>
|
|
[%- ELSE -%]
|
|
<option value="[% area.id %]">[%- PROCESS area_name area=area.id -%]</option>
|
|
[%- END -%]
|
|
[% END %]
|
|
</select>
|
|
<input name="submit" value="Go" type="submit" />
|
|
[% END %]
|
|
</form>
|
|
<br />
|
|
<table border="1" cellspacing="0" cellpadding="5">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Area</th>
|
|
<th>Definition</th>
|
|
<th> </th>
|
|
</tr>
|
|
[% FOREACH definition IN definitions %]
|
|
<tr>
|
|
<td>[% definition.name %]</td>
|
|
<td>[% definition.description %]</td>
|
|
<td>[% definition.areaname %]</td>
|
|
<td>[% definition.saved_sql %]</td>
|
|
<td><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
|
|
<input type="hidden" name="id" value="[% definition.id %]" />
|
|
<input type="hidden" name="phase" value="Delete Definition" />
|
|
<input type="submit" name="submit" value="Delete Definition" />
|
|
</form></td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( new_dictionary ) %]
|
|
<h3>Add new definition</h3>
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<fieldset class="rows"><legend>Step 1 of 5: Name the new definition</legend><ol>
|
|
<li>
|
|
<label for="definition_name">Definition name:</label>
|
|
<input type="text" id="definition_name" name="definition_name" />
|
|
</li>
|
|
<li>
|
|
<label for="definition_description">Definition description:</label>
|
|
<textarea name="definition_description" id="definition_description" rows="3" cols="20"></textarea>
|
|
</li>
|
|
</ol></fieldset>
|
|
|
|
<fieldset class="action"><input type="hidden" name="phase" value="New Term step 2" />
|
|
<input name="submit" value="Next" type="submit" /></fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
[%- IF ( step_2 ) -%]
|
|
<h3>Add new definition</h3>
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<fieldset class="rows">
|
|
<legend>Step 2 of 5: Choose the area</legend>
|
|
<ol>
|
|
<li>
|
|
<input type="hidden" name="phase" value="New Term step 3" />
|
|
<input type="hidden" name="definition_name" value="[% definition_name %]" />
|
|
<input type="hidden" name="definition_description" value="[% definition_description %]" />
|
|
<label for="area">Select table </label><select name="area" id="area">
|
|
[%- FOREACH area IN areas -%]
|
|
<option value="[%- area.id -%]">[%- PROCESS area_name area=area.id -%]</option>
|
|
[%- END -%]
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action"><input name="submit" value="Next" type="submit" /></fieldset>
|
|
</form>
|
|
[%- END -%]
|
|
|
|
[% IF ( step_3 ) %]
|
|
<h3>Add new definition</h3>
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<fieldset class="rows">
|
|
<legend>Step 3 of 5: Choose a column</legend>
|
|
<input type="hidden" name="area" value="[% area %]" />
|
|
<input type="hidden" name="definition_name" value="[% definition_name %]" />
|
|
<input type="hidden" name="definition_description" value="[% definition_description %]" />
|
|
|
|
<select id="availableColumns" name="columns" size="25" style="width:200px;height:300px;margin:1em;">
|
|
[% FOREACH column IN columns %]
|
|
[% IF ( column.table ) %]
|
|
[% IF ( loop.first ) %]
|
|
[% ELSE %]
|
|
</optgroup>
|
|
[% END %]
|
|
|
|
<optgroup label="[% column.table %]">
|
|
[% ELSE %]
|
|
<option value="[% column.name %]">
|
|
[% IF ( column.description ) %][% column.description %]
|
|
[% ELSE %]
|
|
[% column.name %]
|
|
[% END %]
|
|
</option>
|
|
[% END %]
|
|
[% END %]
|
|
</optgroup>
|
|
</select>
|
|
|
|
<input type="hidden" name="phase" value="New Term step 4" />
|
|
</fieldset>
|
|
<fieldset class="action"><input type="submit" name="submit" value="Next" /></fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
[% IF ( step_4 ) %]
|
|
<h3>Add new definition</h3>
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<fieldset class="rows">
|
|
<legend>Step 4 of 5: Specify a value</legend>
|
|
<input type="hidden" name="area" value="[% area %]" />
|
|
<input type="hidden" name="definition_name" value="[% definition_name %]" />
|
|
<input type="hidden" name="definition_description" value="[% definition_description %]" />
|
|
<input type="hidden" name="columnstring" value="[% columnstring %]" />
|
|
|
|
[% FOREACH column IN columns %]
|
|
<input type="hidden" name="criteria_column" value="[% column.name %]" />
|
|
<ol><li><span class="label">Column: </span> [% column.name %]</li>
|
|
[% IF ( column.distinct ) %]
|
|
<li><label for="[% column.name %]_value">Choose: </label> <select id="[% column.name %]_value" name="[% column.name %]_value">
|
|
[% FOREACH value IN column.values %]
|
|
<option value="[% value.availablevalues %]">[% value.availablevalues %]</option>
|
|
[% END %]
|
|
</select></li>
|
|
[% END %]
|
|
[% IF ( column.date ) %]
|
|
<li class="radio">
|
|
<label for="all_dates">All dates</label>
|
|
<input type="radio" id="all_dates" name="[% column.name %]_date_type_value" value="all" checked="checked" />
|
|
<label for="date_range">Date range</label>
|
|
<input type="radio" id="date_range" name="[% column.name %]_date_type_value" value="range" />
|
|
</li>
|
|
<li class="radio">
|
|
Start of date range
|
|
<input type="text" size="10" id="from" name="[% column.name %]_start_value" value="" class="datepickerfrom" />
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
|
|
End of date range
|
|
<input type="text" size="10" id="to" name="[% column.name %]_end_value" value="" class="datepickerto" />
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
|
|
</li>
|
|
[% END %]
|
|
[% IF ( column.text ) %]
|
|
<li><label for="[% column.name %]_value">Search string matches: </label> <input type="text" size="13" name="[% column.name %]_value" /></li>
|
|
[% END %]
|
|
|
|
[% END %]
|
|
</ol>
|
|
<input type="hidden" name="phase" value="New Term step 5" />
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" name="submit" value="Next" />
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
[% IF ( step_5 ) %]
|
|
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
|
|
<input type="hidden" name="area" value="[% area %]" />
|
|
<input type="hidden" name="definition_name" value="[% definition_name %]" />
|
|
<input type="hidden" name="definition_description" value="[% definition_description %]" />
|
|
<input type="hidden" name="columnstring" value="[% columnstring %]" />
|
|
|
|
<h3>Add new definition</h3>
|
|
|
|
<fieldset class="rows">
|
|
<legend>Step 5 of 5: Confirm details</legend>
|
|
<ol>
|
|
<li>
|
|
<span class="label">Name:</span>[%- definition_name -%]
|
|
</li>
|
|
<li>
|
|
<span class="label">Description:</span>[%- definition_description -%]
|
|
</li>
|
|
<li>
|
|
<span class="label">Area:</span>[%- PROCESS area_name area=area -%]
|
|
</li>
|
|
<li>
|
|
<span class="label">Data:</span>
|
|
<table>
|
|
<tr>
|
|
<th>Columns</th>
|
|
<th>Values</th>
|
|
</tr>
|
|
[%- FOREACH criteria_loo IN criteria_loop -%]
|
|
<tr>
|
|
<td>[%- criteria_loo.name -%]</td>
|
|
<td>[%- criteria_loo.value -%]</td>
|
|
</tr>
|
|
[%- END -%]
|
|
</table>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action"><input type="hidden" name="sql" value="[% query %]" />
|
|
<input type="hidden" name="phase" value="New Term step 6" />
|
|
<input type="submit" name="submit" value="Save" /> </fieldset>
|
|
|
|
</form>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'guided-reports-view.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|