Lines 171-262
Authority types › Administration › Koha
Link Here
|
171 |
|
171 |
|
172 |
<h1>Authority types</h1> |
172 |
<h1>Authority types</h1> |
173 |
<p>Define authority types, then authority MARC structure in the same way you define itemtypes and bibliographic MARC tag structure. Authority values are managed through plugins</p> |
173 |
<p>Define authority types, then authority MARC structure in the same way you define itemtypes and bibliographic MARC tag structure. Authority values are managed through plugins</p> |
174 |
<table id="authtypes"> |
174 |
|
175 |
<thead> |
175 |
<div class="page-section"> |
176 |
<tr> |
176 |
<table id="authtypes"> |
177 |
<th>Code</th> |
177 |
<thead> |
178 |
<th>Description</th> |
|
|
179 |
<th>Summary</th> |
180 |
<th>Auth field copied</th> |
181 |
<th> </th> |
182 |
</tr> |
183 |
</thead> |
184 |
<tbody> |
185 |
[% FOREACH authority_type IN authority_types %] |
186 |
<tr> |
178 |
<tr> |
187 |
<td>[% authority_type.authtypecode | html %]</td> |
179 |
<th>Code</th> |
188 |
<td>[% authority_type.authtypetext | html %]</td> |
180 |
<th>Description</th> |
189 |
<td>[% authority_type.summary | html %]</td> |
181 |
<th>Summary</th> |
190 |
<td>[% authority_type.auth_tag_to_report | html %]</td> |
182 |
<th>Auth field copied</th> |
191 |
<td> |
183 |
<th> </th> |
192 |
<div class="btn-group dropup"> |
184 |
</tr> |
193 |
<a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#"> |
185 |
</thead> |
194 |
Actions <b class="caret"></b></a> |
186 |
<tbody> |
195 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]"> |
187 |
[% FOREACH authority_type IN authority_types %] |
196 |
<li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li> |
188 |
<tr> |
197 |
<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> |
189 |
<td>[% authority_type.authtypecode | html %]</td> |
198 |
[% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %] |
190 |
<td>[% authority_type.authtypetext | html %]</td> |
199 |
<!-- Button to trigger modal --> |
191 |
<td>[% authority_type.summary | html %]</td> |
200 |
<li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li> |
192 |
<td>[% authority_type.auth_tag_to_report | html %]</td> |
201 |
<!-- Button to trigger modal --> |
193 |
<td> |
202 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li> |
194 |
<div class="btn-group dropup"> |
203 |
</ul> |
195 |
<a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#"> |
204 |
</div> |
196 |
Actions <b class="caret"></b></a> |
|
|
197 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]"> |
198 |
<li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li> |
199 |
<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> |
200 |
[% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %] |
201 |
<!-- Button to trigger modal --> |
202 |
<li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li> |
203 |
<!-- Button to trigger modal --> |
204 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li> |
205 |
</ul> |
206 |
</div> |
205 |
|
207 |
|
206 |
<!-- Modal for export --> |
208 |
<!-- Modal for export --> |
207 |
<div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> |
209 |
<div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> |
208 |
<div class="modal-dialog"> |
210 |
<div class="modal-dialog"> |
209 |
<div class="modal-content"> |
211 |
<div class="modal-content"> |
210 |
<div class="modal-header"> |
212 |
<div class="modal-header"> |
211 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
213 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
212 |
<h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3> |
214 |
<h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3> |
213 |
</div> |
215 |
</div> |
214 |
<form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export"> |
216 |
<form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export"> |
215 |
<div class="modal-body"> |
217 |
<div class="modal-body"> |
216 |
<fieldset> |
218 |
<fieldset> |
217 |
<input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> |
219 |
<input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> |
218 |
<p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> |
220 |
<p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> |
219 |
<p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> |
221 |
<p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> |
220 |
</fieldset> |
222 |
</fieldset> |
221 |
</div> |
223 |
</div> |
222 |
<div class="modal-footer"> |
224 |
<div class="modal-footer"> |
223 |
<button type="submit" class="btn btn-default">Export</button> |
225 |
<button type="submit" class="btn btn-default">Export</button> |
224 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
226 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
225 |
</div> |
227 |
</div> |
226 |
</form> |
228 |
</form> |
227 |
</div> |
229 |
</div> |
228 |
</div> |
230 |
</div> |
229 |
</div> |
231 |
</div> |
230 |
|
232 |
|
231 |
<!-- Modal for import --> |
233 |
<!-- Modal for import --> |
232 |
<div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> |
234 |
<div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true"> |
233 |
<div class="modal-dialog"> |
235 |
<div class="modal-dialog"> |
234 |
<div class="modal-content"> |
236 |
<div class="modal-content"> |
235 |
<div class="modal-header"> |
237 |
<div class="modal-header"> |
236 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
238 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
237 |
<h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3> |
239 |
<h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3> |
238 |
</div> |
240 |
</div> |
239 |
<form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import"> |
241 |
<form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import"> |
240 |
<div class="modal-body"> |
242 |
<div class="modal-body"> |
241 |
<input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> |
243 |
<input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" /> |
242 |
<input type="hidden" name="action" value="import" /> |
244 |
<input type="hidden" name="action" value="import" /> |
243 |
<p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p> |
245 |
<p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p> |
244 |
<div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div> |
246 |
<div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div> |
245 |
</div> |
247 |
</div> |
246 |
<div class="modal-footer"> |
248 |
<div class="modal-footer"> |
247 |
<button type="submit" class="btn btn-default">Import</button> |
249 |
<button type="submit" class="btn btn-default">Import</button> |
248 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
250 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
249 |
</div> |
251 |
</div> |
250 |
</form> |
252 |
</form> |
251 |
</div> |
253 |
</div> |
252 |
</div> |
254 |
</div> |
253 |
</div> |
255 |
</div> |
254 |
|
256 |
|
255 |
</td> |
257 |
</td> |
256 |
</tr> |
258 |
</tr> |
257 |
[% END %] |
259 |
[% END %] |
258 |
<tbody> |
260 |
<tbody> |
259 |
</table> |
261 |
</table> |
|
|
262 |
</div> <!-- /.page-section --> |
260 |
[% END %] |
263 |
[% END %] |
261 |
|
264 |
|
262 |
</main> |
265 |
</main> |