Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt
Owen Leonard 9a8653f29b Bug 27631: (follow-up) Various corrections
This patch addresses issues found during QA:

- Double headings (patron details page)
- Inconsistent heading position (check out, patron accounting)
- Missing headings when there is no data (Library EANs, Item search
  fields, MARC modification templates).
- Typo: Z19.50 => Z39.50
- Reword "Classification sources" heading: "Classification
  configuration"

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-20 09:03:38 -10:00

133 lines
4.9 KiB
Text

[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Item search fields &rsaquo; Administration &rsaquo; Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="admin_itemssearchfields" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
<a href="#" aria-current="page">
Item search fields
</a>
</li>
</ol>
</nav>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-default" id="new_search_field" href="/cgi-bin/koha/admin/items_search_fields.pl"><i class="fa fa-plus"></i> New search field</a>
</div>
[% IF field_added %]
<div class="dialog message">
Field successfully added: [% field_added.label | html %]
</div>
[% ELSIF field_not_added %]
<div class="dialog alert">
<p>Failed to add field. Please make sure the field name doesn't already exist.</p>
<p>Check logs for more details.</p>
</div>
[% ELSIF field_deleted %]
<div class="dialog message">
Field successfully deleted.
</div>
[% ELSIF field_not_deleted %]
<div class="dialog alert">
<p>Failed to delete field.</p>
<p>Check logs for more details.</p>
</div>
[% ELSIF field_updated %]
<div class="dialog message">
Field successfully updated: [% field_updated.label | html %]
</div>
[% ELSIF field_not_updated %]
<div class="dialog alert">
<p>Failed to update field.</p>
<p>Check logs for more details.</p>
</div>
[% END %]
[% IF fields.size %]
<div id="search_fields_list">
<h1>Item search fields</h1>
<table id="search_fields_table">
<thead>
<tr>
<th>Name</th>
<th>Label</th>
<th>MARC field</th>
<th>MARC subfield</th>
<th>Authorised values category</th>
<th class="noExport">Actions</th>
</tr>
</thead>
<tbody>
[% FOREACH field IN fields %]
<tr>
<td>[% field.name | html %]</td>
<td>[% field.label | html %]</td>
<td>[% field.tagfield | html %]</td>
<td>[% field.tagsubfield | html %]</td>
<td>[% field.authorised_values_category | html %]</td>
<td>
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_field.pl?name=[% field.name | html %]"><i class="fa fa-pencil"></i> Edit</a>
<a class="field-delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_fields.pl?op=del&name=[% field.name | html %]"><i class="fa fa-trash"></i> Delete</a>
</td>
</tr>
[% END %]
</tbody>
</table>
</div>
[% ELSE %]
<h1>Item search fields</h1>
<div class="dialog message">
There are no item search fields defined.
</div>
[% END %]
<form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST">
<fieldset class="rows">
<legend><h1>Add a new field</h1></legend>
[% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
<input type="hidden" name="op" value="add" />
</fieldset>
<fieldset class="action">
<input type="submit" value="Submit" />
<a href="#" class="cancel hide_form">Cancel</a>
</fieldset>
</form>
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'admin-menu.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% Asset.js("js/item_search_fields.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]