|
Lines 2-13
Link Here
|
| 2 |
<title>Koha › Reports › Guided Reports › Dictionary</title> |
2 |
<title>Koha › Reports › Guided Reports › Dictionary</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
[% INCLUDE 'calendar.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
|
|
5 |
<style type="text/css">fieldset.rows table { clear: none; margin: 0;}</style> |
| 5 |
</head> |
6 |
</head> |
| 6 |
<body> |
7 |
<body> |
| 7 |
[% INCLUDE 'header.inc' %] |
8 |
[% INCLUDE 'header.inc' %] |
| 8 |
[% INCLUDE 'circ-search.inc' %] |
9 |
[% INCLUDE 'circ-search.inc' %] |
| 9 |
|
10 |
|
| 10 |
<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> › <strong> Dictionary </strong></div> |
11 |
<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> |
|
|
12 |
[% IF ( new_dictionary ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Name the new definition</strong> |
| 13 |
[% ELSIF ( step_2 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 2: Choose the area </strong> |
| 14 |
[% ELSIF ( step_3 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 3: Choose columns </strong> |
| 15 |
[% ELSIF ( step_4 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 4: Specify a value </strong> |
| 16 |
[% ELSIF ( step_5 ) %] › <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> › <strong>Step 5: Confirm definition</strong> |
| 17 |
[% ELSE %]<strong> Dictionary </strong>[% END %]</div> |
| 11 |
|
18 |
|
| 12 |
<div id="doc3" class="yui-t2"> |
19 |
<div id="doc3" class="yui-t2"> |
| 13 |
|
20 |
|
|
Lines 70-86
Link Here
|
| 70 |
[% END %] |
77 |
[% END %] |
| 71 |
|
78 |
|
| 72 |
[% IF ( new_dictionary ) %] |
79 |
[% IF ( new_dictionary ) %] |
|
|
80 |
<h3>Add New Definition</h3> |
| 73 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
81 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
| 74 |
|
82 |
<fieldset class="rows"><legend>Step 1 of 5: Name the new definition</legend><ol> |
| 75 |
<div class="toptabs"> |
|
|
| 76 |
<ul class="ui-tabs-nav"> |
| 77 |
<li class="ui-tabs-selected"><span class="a">Step 1: Name</span></li> |
| 78 |
<li><span class="a">Step 2: Area</span></li> |
| 79 |
<li><span class="a">Step 3: Columns</span></li> |
| 80 |
<li><span class="a">Step 4: Values</span></li> |
| 81 |
</ul> |
| 82 |
<div class="tabs-container"> |
| 83 |
<fieldset class="rows"><legend>Add New Definition</legend><ol> |
| 84 |
<li> |
83 |
<li> |
| 85 |
<label for="definition_name">Definition Name:</label> |
84 |
<label for="definition_name">Definition Name:</label> |
| 86 |
<input type="text" id="definition_name" name="definition_name" /> |
85 |
<input type="text" id="definition_name" name="definition_name" /> |
|
Lines 93-115
Link Here
|
| 93 |
|
92 |
|
| 94 |
<fieldset class="action"><input type="hidden" name="phase" value="New Term step 2" /> |
93 |
<fieldset class="action"><input type="hidden" name="phase" value="New Term step 2" /> |
| 95 |
<input name="submit" value="Next" type="submit" /></fieldset> |
94 |
<input name="submit" value="Next" type="submit" /></fieldset> |
| 96 |
</div> |
|
|
| 97 |
</div> |
| 98 |
</form> |
95 |
</form> |
| 99 |
[% END %] |
96 |
[% END %] |
| 100 |
|
97 |
|
| 101 |
[% IF ( step_2 ) %] |
98 |
[% IF ( step_2 ) %] |
| 102 |
<div class="toptabs"> |
99 |
<h3>Add New Definition</h3> |
| 103 |
<ul class="ui-tabs-nav"> |
|
|
| 104 |
<li><span class="a">Step 1: Name</span></li> |
| 105 |
<li class="ui-tabs-selected"><span class="a">Step 2: Area</span></li> |
| 106 |
<li><span class="a">Step 3: Columns</span></li> |
| 107 |
<li><span class="a">Step 4: Values</span></li> |
| 108 |
</ul> |
| 109 |
<div class="tabs-container"> |
| 110 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
100 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
| 111 |
<fieldset class="rows"> |
101 |
<fieldset class="rows"> |
| 112 |
<legend>Add New Definition</legend> |
102 |
<legend>Step 2 of 5: Choose the area</legend> |
| 113 |
<ol><li><input type="hidden" name="phase" value="New Term step 3" /> |
103 |
<ol><li><input type="hidden" name="phase" value="New Term step 3" /> |
| 114 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
104 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
| 115 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
105 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
|
Lines 122-149
Link Here
|
| 122 |
</fieldset> |
112 |
</fieldset> |
| 123 |
<fieldset class="action"><input name="submit" value="Next" type="submit" /></fieldset> |
113 |
<fieldset class="action"><input name="submit" value="Next" type="submit" /></fieldset> |
| 124 |
</form> |
114 |
</form> |
| 125 |
</div> |
|
|
| 126 |
</div> |
| 127 |
[% END %] |
115 |
[% END %] |
| 128 |
|
116 |
|
| 129 |
[% IF ( step_3 ) %] |
117 |
[% IF ( step_3 ) %] |
| 130 |
<h1>Add New Definition</h1> |
118 |
<h3>Add New Definition</h3> |
| 131 |
<div class="toptabs"> |
|
|
| 132 |
<ul class="ui-tabs-nav"> |
| 133 |
<li><span class="a">Step 1: Name</span></li> |
| 134 |
<li><span class="a">Step 2: Area</span></li> |
| 135 |
<li class="ui-tabs-selected"><span class="a">Step 3: Columns</span></li> |
| 136 |
<li><span class="a">Step 4: Values</span></li> |
| 137 |
</ul> |
| 138 |
<div class="tabs-container"> |
| 139 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
119 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
|
|
120 |
<fieldset class="rows"> |
| 121 |
<legend>Step 3 of 5: Choose columns</legend> |
| 140 |
<input type="hidden" name="area" value="[% area %]" /> |
122 |
<input type="hidden" name="area" value="[% area %]" /> |
| 141 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
123 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
| 142 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
124 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
| 143 |
|
125 |
|
| 144 |
<table style="border: 0;"><tr><td><select id="availableColumns" name="oldcolumns2" size="25" style="width:200px;height:300px;"> |
126 |
<table style="border: 0;margin:1em;"><tr> |
| 145 |
[% FOREACH column IN columns %] |
127 |
<td style="border: 0;"><select id="availableColumns" name="oldcolumns2" size="25" style="width:200px;height:300px;"> |
| 146 |
[% IF ( column.table ) %] |
128 |
[% FOREACH column IN columns %] |
|
|
129 |
[% IF ( column.table ) %] |
| 147 |
[% IF ( loop.first ) %] |
130 |
[% IF ( loop.first ) %] |
| 148 |
[% ELSE %] |
131 |
[% ELSE %] |
| 149 |
</optgroup> |
132 |
</optgroup> |
|
Lines 162-190
Link Here
|
| 162 |
</optgroup> |
145 |
</optgroup> |
| 163 |
</select></td> |
146 |
</select></td> |
| 164 |
|
147 |
|
| 165 |
<td><input type="button" name="Add" value="Add" class="button" style="width : 6em; margin-bottom : .5em;" onclick="addColumn()" /><br /><input type="button" name="delete" value="<< Delete" class="button" style="width : 6em;" onclick="delColumn()" /> </td> |
148 |
<td style="border: 0;"><input type="button" name="Add" value="Add" class="button" style="width : 6em; margin-bottom : .5em;" onclick="addColumn()" /><br /><input type="button" name="delete" value="<< Delete" class="button" style="width : 6em;" onclick="delColumn()" /> </td> |
|
|
149 |
|
| 150 |
<td style="border: 0;"><select id="selectedColumns" name="columns" size="25" style="width:200px;height:300px;"></select> </td> </tr></table> |
| 166 |
|
151 |
|
| 167 |
<td><select id="selectedColumns" name="columns" size="25" style="width:200px;height:300px;"></select> </td> </tr></table> |
|
|
| 168 |
|
| 169 |
|
| 170 |
<input type="hidden" name="phase" value="New Term step 4" /> |
152 |
<input type="hidden" name="phase" value="New Term step 4" /> |
| 171 |
<input type="submit" name="submit" value="Next" /> |
153 |
</fieldset> |
| 172 |
</form> |
154 |
<fieldset class="action"><input type="submit" name="submit" value="Next" /></fieldset> |
| 173 |
</div> |
155 |
</form> |
| 174 |
</div> |
|
|
| 175 |
[% END %] |
156 |
[% END %] |
| 176 |
|
157 |
|
| 177 |
[% IF ( step_4 ) %] |
158 |
[% IF ( step_4 ) %] |
| 178 |
<h1>Add New Definition</h1> |
159 |
<h3>Add New Definition</h3> |
| 179 |
<div class="toptabs"> |
|
|
| 180 |
<ul class="ui-tabs-nav"> |
| 181 |
<li><span class="a">Step 1: Name</span></li> |
| 182 |
<li><span class="a">Step 2: Area</span></li> |
| 183 |
<li><span class="a">Step 3: Columns</span></li> |
| 184 |
<li class="ui-tabs-selected"><span class="a">Step 4: Values</span></li> |
| 185 |
</ul> |
| 186 |
<div class="tabs-container"> |
| 187 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
160 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
|
|
161 |
<fieldset class="rows"> |
| 162 |
<legend>Step 4 of 5: Specify a value</legend> |
| 188 |
<input type="hidden" name="area" value="[% area %]" /> |
163 |
<input type="hidden" name="area" value="[% area %]" /> |
| 189 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
164 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
| 190 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
165 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
|
Lines 192-269
Link Here
|
| 192 |
|
167 |
|
| 193 |
[% FOREACH column IN columns %] |
168 |
[% FOREACH column IN columns %] |
| 194 |
<input type="hidden" name="criteria_column" value="[% column.name %]" /> |
169 |
<input type="hidden" name="criteria_column" value="[% column.name %]" /> |
| 195 |
[% column.name %] |
170 |
<ol><li><span class="label">Column: </span> [% column.name %]</li> |
| 196 |
[% IF ( column.distinct ) %] |
171 |
[% IF ( column.distinct ) %] |
| 197 |
<select name="[% column.name %]_value"> |
172 |
<li><label for="[% column.name %]_value">Choose: </label> <select id="[% column.name %]_value" name="[% column.name %]_value"> |
| 198 |
[% FOREACH value IN column.values %] |
173 |
[% FOREACH value IN column.values %] |
| 199 |
<option value="[% value.availablevalues %]">[% value.availablevalues %]</option> |
174 |
<option value="[% value.availablevalues %]">[% value.availablevalues %]</option> |
| 200 |
[% END %] |
175 |
[% END %] |
| 201 |
</select> |
176 |
</select></li> |
| 202 |
[% END %] |
177 |
[% END %] |
| 203 |
[% IF ( column.date ) %] |
178 |
[% IF ( column.date ) %] |
| 204 |
<table> |
179 |
<li><span class="label">Choose: </span><table> |
| 205 |
<tr valign="top"> |
180 |
<tr valign="top"> |
| 206 |
<td><input type="radio" name="[% column.name %]_all" value="all" />All dates</td> |
181 |
<td><input type="radio" name="[% column.name %]_all" value="all" />All dates</td> |
| 207 |
<td>OR</td> |
182 |
<td>OR</td> |
| 208 |
<td><input type="radio" name="dates" value="range" />Date range<br /> |
183 |
<td><input type="radio" name="dates" value="range" />Date range<br /> |
| 209 |
<table> |
184 |
<table> |
| 210 |
<tr> |
185 |
<tr> |
| 211 |
<td>Start of date range</td> |
186 |
<td>Start of date range</td> |
| 212 |
<td><input type="text" size="10" id="[% column.name %]_start_value" name="[% column.name %]_start_value" value="" /> |
187 |
<td><input type="text" size="10" id="[% column.name %]_start_value" name="[% column.name %]_start_value" value="" /> |
| 213 |
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom1" style="cursor: pointer;" /> |
188 |
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom1" style="cursor: pointer;" /> |
| 214 |
<script type="text/javascript"> |
189 |
<script type="text/javascript"> |
| 215 |
Calendar.setup({ |
190 |
Calendar.setup({ |
| 216 |
inputField : "[% column.name %]_start_value", |
191 |
inputField : "[% column.name %]_start_value", |
| 217 |
ifFormat : "[% DHTMLcalendar_dateformat %]", |
192 |
ifFormat : "[% DHTMLcalendar_dateformat %]", |
| 218 |
button : "buttonfrom1", |
193 |
button : "buttonfrom1", |
| 219 |
align : "Tl" |
194 |
align : "Tl" |
| 220 |
}); |
195 |
}); |
| 221 |
</script> |
196 |
</script> |
| 222 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
197 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 223 |
</td> |
198 |
</td> |
| 224 |
</tr> |
199 |
</tr> |
| 225 |
<tr> |
200 |
<tr> |
| 226 |
<td>End of date range</td> |
201 |
<td>End of date range</td> |
| 227 |
<td> |
202 |
<td> |
| 228 |
<input type="text" size="10" id="[% column.name %]_end_value" name="[% column.name %]_end_value" value="" /> |
203 |
<input type="text" size="10" id="[% column.name %]_end_value" name="[% column.name %]_end_value" value="" /> |
| 229 |
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom2" style="cursor: pointer;" /> |
204 |
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonfrom2" style="cursor: pointer;" /> |
| 230 |
<script type="text/javascript"> |
205 |
<script type="text/javascript"> |
| 231 |
Calendar.setup({ |
206 |
Calendar.setup({ |
| 232 |
inputField : "[% column.name %]_end_value", |
207 |
inputField : "[% column.name %]_end_value", |
| 233 |
ifFormat : "[% DHTMLcalendar_dateformat %]", |
208 |
ifFormat : "[% DHTMLcalendar_dateformat %]", |
| 234 |
button : "buttonfrom2", |
209 |
button : "buttonfrom2", |
| 235 |
align : "Tl" |
210 |
align : "Tl" |
| 236 |
}); |
211 |
}); |
| 237 |
</script> |
212 |
</script> |
| 238 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
213 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 239 |
</td> |
214 |
</td> |
| 240 |
</tr> |
215 |
</tr> |
| 241 |
</table></td> |
216 |
</table></td> |
| 242 |
</tr> |
217 |
</tr> |
| 243 |
</table> |
218 |
</table></li> |
| 244 |
[% END %] |
219 |
[% END %] |
| 245 |
[% IF ( column.text ) %] |
220 |
[% IF ( column.text ) %] |
| 246 |
<p>Search string matches <input type="text" size="13" name="[% column.name %]_value" /></p> |
221 |
<li><label for="[% column.name %]_value">Search string matches: </label> <input type="text" size="13" name="[% column.name %]_value" /></li> |
| 247 |
[% END %] |
222 |
[% END %] |
| 248 |
|
223 |
|
| 249 |
[% END %] |
224 |
[% END %] |
|
|
225 |
</ol> |
| 250 |
<input type="hidden" name="phase" value="New Term step 5" /> |
226 |
<input type="hidden" name="phase" value="New Term step 5" /> |
| 251 |
<input type="submit" name="submit" value="Next" /> |
227 |
</fieldset> |
|
|
228 |
<fieldset class="action"> |
| 229 |
<input type="submit" name="submit" value="Next" /> |
| 230 |
</fieldset> |
| 252 |
</form> |
231 |
</form> |
| 253 |
</div> |
|
|
| 254 |
</div> |
| 255 |
[% END %] |
232 |
[% END %] |
| 256 |
|
233 |
|
| 257 |
[% IF ( step_5 ) %] |
234 |
[% IF ( step_5 ) %] |
| 258 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
235 |
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post"> |
| 259 |
<input type="hidden" name="area" value="[% area %]" /> |
236 |
<input type="hidden" name="area" value="[% area %]" /> |
| 260 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
237 |
<input type="hidden" name="definition_name" value="[% definition_name %]" /> |
| 261 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
238 |
<input type="hidden" name="definition_description" value="[% definition_description %]" /> |
| 262 |
<input type="hidden" name="columnstring" value="[% columnstring %]" /> |
239 |
<input type="hidden" name="columnstring" value="[% columnstring %]" /> |
| 263 |
|
240 |
|
| 264 |
<h3>Confirm Definition</h3> |
241 |
<h3>Add New Definition</h3> |
| 265 |
|
242 |
|
| 266 |
<fieldset class="rows"><ol><li> |
243 |
<fieldset class="rows"> |
|
|
244 |
<legend>Step 5 of 5: Confirm details</legend> |
| 245 |
<ol><li> |
| 267 |
<span class="label">Name:</span> |
246 |
<span class="label">Name:</span> |
| 268 |
[% definition_name %] |
247 |
[% definition_name %] |
| 269 |
</li> |
248 |
</li> |
|
Lines 274-282
align : "Tl"
Link Here
|
| 274 |
<li> |
253 |
<li> |
| 275 |
<span class="label">Area:</span> |
254 |
<span class="label">Area:</span> |
| 276 |
[% areaname %] |
255 |
[% areaname %] |
| 277 |
</li></ol> |
256 |
</li> |
| 278 |
|
257 |
<li> |
| 279 |
<ol><li> |
258 |
<span class="label">Data:</span> |
| 280 |
<table> |
259 |
<table> |
| 281 |
<tr> |
260 |
<tr> |
| 282 |
<th>Columns</th> |
261 |
<th>Columns</th> |
| 283 |
- |
|
|