|
Lines 102-114
function reloadPage(p) {
Link Here
|
| 102 |
[% END %] |
102 |
[% END %] |
| 103 |
|
103 |
|
| 104 |
[% BLOCK type_description %] |
104 |
[% BLOCK type_description %] |
| 105 |
[% IF type_code == 'marc' %] MARC for export records |
105 |
[% IF type_code == 'marc' %] MARC |
| 106 |
[% ELSIF type_code == 'late_issues' %] SQL for late serial issues claims |
106 |
[% ELSIF type_code == 'sql' %] SQL |
| 107 |
[% ELSIF type_code == 'export_basket' %] SQL for basket export in acquisition |
|
|
| 108 |
[% ELSE %] Uknown type |
107 |
[% ELSE %] Uknown type |
| 109 |
[% END %] |
108 |
[% END %] |
| 110 |
[% END %] |
109 |
[% END %] |
| 111 |
|
110 |
|
|
|
111 |
[% BLOCK used_for_description %] |
| 112 |
[% IF used_for_code == 'export_records' %] Export records |
| 113 |
[% ELSIF used_for_code == 'late_issues' %] Late serial issues claims |
| 114 |
[% ELSIF used_for_code == 'export_basket' %] Basket export in acquisition |
| 115 |
[% ELSE %] Uknown usage |
| 116 |
[% END %] |
| 117 |
[% END %] |
| 118 |
|
| 112 |
[% IF op == 'add_form' %] |
119 |
[% IF op == 'add_form' %] |
| 113 |
[% IF csv_profile %] |
120 |
[% IF csv_profile %] |
| 114 |
<h1>Modify a CSV profile</h1> |
121 |
<h1>Modify a CSV profile</h1> |
|
Lines 132-138
function reloadPage(p) {
Link Here
|
| 132 |
<li> |
139 |
<li> |
| 133 |
<label for="type" class="required">Profile type: </label> |
140 |
<label for="type" class="required">Profile type: </label> |
| 134 |
<select id="type" name="type"> |
141 |
<select id="type" name="type"> |
| 135 |
[% FOREACH type IN [ 'marc' 'late_issues' 'export_basket'] %] |
142 |
[% FOREACH type IN [ 'marc' 'sql'] %] |
| 136 |
[% IF csv_profile.type == type %] |
143 |
[% IF csv_profile.type == type %] |
| 137 |
<option value="[% type %]" selected="selected">[% PROCESS type_description type_code = type %]</option> |
144 |
<option value="[% type %]" selected="selected">[% PROCESS type_description type_code = type %]</option> |
| 138 |
[% ELSE %] |
145 |
[% ELSE %] |
|
Lines 142-147
function reloadPage(p) {
Link Here
|
| 142 |
</select> |
149 |
</select> |
| 143 |
<span class="required">Required</span> |
150 |
<span class="required">Required</span> |
| 144 |
</li> |
151 |
</li> |
|
|
152 |
<li class="sql_specific"> |
| 153 |
<label for="used_for_sql">Usage: </label> |
| 154 |
<select id="used_for_sql" name="used_for_sql"> |
| 155 |
[% FOREACH used_for IN [ 'late_issues' 'export_basket' ] %] |
| 156 |
[% IF csv_profile.used_for == used_for %] |
| 157 |
<option value="[% used_for %]" selected="selected">[% PROCESS used_for_description used_for_code = used_for %]</option> |
| 158 |
[% ELSE %] |
| 159 |
<option value="[% used_for %]">[% PROCESS used_for_description used_for_code = used_for %]</option> |
| 160 |
[% END %] |
| 161 |
[% END %] |
| 162 |
</select> |
| 163 |
</li> |
| 164 |
<li class="marc_specific"> |
| 165 |
<label for="used_for_marc">Usage: </label> |
| 166 |
<select id="used_for_marc" name="used_for_marc"> |
| 167 |
[% FOREACH used_for IN [ 'export_records' ] %] |
| 168 |
[% IF csv_profile.used_for == used_for %] |
| 169 |
<option value="[% used_for %]" selected="selected">[% PROCESS used_for_description used_for_code = used_for %]</option> |
| 170 |
[% ELSE %] |
| 171 |
<option value="[% used_for %]">[% PROCESS used_for_description used_for_code = used_for %]</option> |
| 172 |
[% END %] |
| 173 |
[% END %] |
| 174 |
</select> |
| 175 |
</li> |
| 145 |
<li> |
176 |
<li> |
| 146 |
<label for="description">Profile description: </label> |
177 |
<label for="description">Profile description: </label> |
| 147 |
<textarea cols="50" rows="2" name="description" id="description">[% csv_profile.description %]</textarea> |
178 |
<textarea cols="50" rows="2" name="description" id="description">[% csv_profile.description %]</textarea> |
|
Lines 242-247
function reloadPage(p) {
Link Here
|
| 242 |
<th>Content</th> |
273 |
<th>Content</th> |
| 243 |
<th>CSV separator</th> |
274 |
<th>CSV separator</th> |
| 244 |
<th>CSV type</th> |
275 |
<th>CSV type</th> |
|
|
276 |
<th>Usage</th> |
| 245 |
<th> </th> |
277 |
<th> </th> |
| 246 |
<th> </th> |
278 |
<th> </th> |
| 247 |
</thead> |
279 |
</thead> |
|
Lines 254-259
function reloadPage(p) {
Link Here
|
| 254 |
<td>[% csv_profile.content %]</td> |
286 |
<td>[% csv_profile.content %]</td> |
| 255 |
<td>[% csv_profile.csv_separator %]</td> |
287 |
<td>[% csv_profile.csv_separator %]</td> |
| 256 |
<td>[% PROCESS type_description type_code = csv_profile.type %]</td> |
288 |
<td>[% PROCESS type_description type_code = csv_profile.type %]</td> |
|
|
289 |
<td>[% PROCESS used_for_description used_for_code = csv_profile.used_for %]</td> |
| 257 |
<td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&export_format_id=[% csv_profile.export_format_id %]">Edit</a></td> |
290 |
<td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=add_form&export_format_id=[% csv_profile.export_format_id %]">Edit</a></td> |
| 258 |
<td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&export_format_id=[% csv_profile.export_format_id %]">Delete</a></td> |
291 |
<td><a href="/cgi-bin/koha/tools/csv-profiles.pl?op=delete_confirm&export_format_id=[% csv_profile.export_format_id %]">Delete</a></td> |
| 259 |
</tr> |
292 |
</tr> |