Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
238 lines
11 KiB
238 lines
11 KiB
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Administration › Authority MARC framework [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
|
|
[% IF ( heading_modify_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Modify tag[% END %]
|
|
[% IF ( heading_add_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › New tag[% END %]
|
|
[% ELSE %]› [% action %][% END %][% END %][% IF ( delete_confirm ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Confirm deletion[% END %][% IF ( delete_confirmed ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Data deleted[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
|
|
],
|
|
"sPaginationType": "four_button"
|
|
}));
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="admin_auth_tag_structure" class="admin">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
|
|
<a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
|
|
[% IF ( add_form ) %]
|
|
[% IF ( use_heading_flags_p ) %]
|
|
[% IF ( heading_modify_tag_p ) %]
|
|
[% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
|
|
[% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
|
|
[% END %] › Modify tag
|
|
[% END %]
|
|
[% IF ( heading_add_tag_p ) %]
|
|
[% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
|
|
[% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
|
|
[% END %] › New tag
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
|
|
[% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
|
|
[% END %] › [% action %]
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% IF ( delete_confirm ) %]
|
|
[% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
|
|
[% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
|
|
[% END %] › Confirm deletion
|
|
[% ELSE %]
|
|
[% IF ( delete_confirmed ) %]
|
|
[% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
|
|
[% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
|
|
[% END %] › Data deleted
|
|
[% ELSE %]
|
|
[% IF ( authtypecode ) %][% authtypecode %] Framework</a>
|
|
[% ELSE %]Default framework
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode %][% ELSE %]default framework[% END %]</h1>
|
|
|
|
|
|
[% IF ( add_form ) %]
|
|
|
|
<h2>
|
|
[% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
|
|
[% IF ( heading_add_tag_p ) %]New tag[% END %]
|
|
</h2>
|
|
<form action="[% script_name %]" name="Aform" method="post" class="validated">
|
|
<input type="hidden" name="op" value="add_validate" />
|
|
[% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
|
|
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
|
|
<fieldset class="rows">
|
|
<ol>
|
|
[% IF ( heading_modify_tag_p ) %]
|
|
<li>
|
|
<span class="label">Tag: </span>
|
|
<input type="hidden" name="tagfield" value="[% searchfield %]" />
|
|
[% searchfield %]
|
|
</li>
|
|
[% ELSE %]
|
|
<li><label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" /></li>
|
|
[% END %]
|
|
|
|
<li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
|
|
<li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
|
|
<li><label for="repeatable">Repeatable: </label>
|
|
[% IF ( repeatable ) %]
|
|
<input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="repeatable" id="repeatable" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li><label for="mandatory">Mandatory: </label>
|
|
[% IF ( mandatory ) %]
|
|
<input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="mandatory" id="mandatory" value="1" />
|
|
[% END %]
|
|
</li>
|
|
<li><label for="authorised_value">Authorized value: </label>
|
|
<select name="authorised_value" id="authorised_value" size="1">
|
|
[% FOREACH value IN authorised_value.values %]
|
|
[% IF ( value == authorised_value.default ) %]
|
|
<option value="[% value %]" selected>[% value %]</option>
|
|
[% ELSE %]
|
|
<option value="[% value %]">[% value %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
(if you select a value here, the indicators will be limited to the authorized value list)
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" />
|
|
<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]" class="cancel">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
|
|
[% IF ( delete_confirm ) %]
|
|
<div class="dialog alert">
|
|
<h3>Confirm deletion</h3>
|
|
<form action="[% script_name %]" method="post">
|
|
<table>
|
|
<tr><th scope="row">Tag: </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
|
|
</table>
|
|
<input type="hidden" name="op" value="delete_confirmed" />
|
|
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
|
|
<input type="hidden" name="searchfield" value="[% searchfield %]" />
|
|
<input type="submit" value="Yes, delete" class="approve"></form>
|
|
<form action="[% script_name %]" method="get"><input type="submit" class="deny" value="No, do not delete" /></form>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF ( delete_confirmed ) %]
|
|
|
|
<div class="dialog message"> <h3>Data deleted</h3>
|
|
<form action="[% script_name %]" method="post">
|
|
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
|
|
<input type="hidden" name="searchfield" value="[% searchfield %]" />
|
|
<input type="submit" value="OK" class="submit" />
|
|
</form></div>
|
|
[% END %]
|
|
[% IF ( authtype_create ) %]
|
|
|
|
<form action="[% script_name %]" method="post">
|
|
<input type="hidden" name="op" value="authtype_create_confirm" />
|
|
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
|
|
Create authority framework for [% authtypecode %] using
|
|
<select name="existingauthtypecode">
|
|
[% FOREACH existingauthtypeloo IN existingauthtypeloop %]
|
|
[% IF existingauthtypeloo.value == "" %]
|
|
<option value="" selected="selected">[% existingauthtypeloo.authtypetext %]</option>
|
|
[% ELSE %]
|
|
<option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
<input type="submit" value="OK" class="submit" />
|
|
</form>
|
|
[% END %]
|
|
|
|
|
|
[% IF ( else ) %]
|
|
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<div class="btn-group"><a class="btn btn-small" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]"><i class="icon-plus"></i> New tag</a></div>
|
|
</div>
|
|
|
|
<h2>Select an authority framework</h2>
|
|
<form action="[% script_name %]" method="post">
|
|
<select name="authtypecode">
|
|
[% FOREACH authtypeloo IN authtypeloop %]
|
|
[% IF ( authtypeloo.selected ) %]
|
|
<option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
|
|
[% ELSE %]
|
|
<option value="[% authtypeloo.value %]">[% authtypeloo.authtypetext %]</option>
|
|
[% END %]
|
|
|
|
[% END %]
|
|
</select>
|
|
<input type="text" name="searchfield" value="[% searchfield %]" />
|
|
<input type="submit" value="OK" class="submit" />
|
|
</form><br />
|
|
<div id="pagertable_authtagstructure">
|
|
</div>
|
|
<table id="table_authtagstructure">
|
|
<thead>
|
|
<th>Tag</th>
|
|
<th>Lib</th>
|
|
<th>Repeatable</th>
|
|
<th>Mandatory</th>
|
|
<th>Authorized<br />value</th>
|
|
<th>Subfields</th>
|
|
<th>Edit</th>
|
|
<th>Delete</th>
|
|
</thead>
|
|
[% FOREACH loo IN loop %]
|
|
[% UNLESS ( loop.odd ) %]
|
|
<tr class="highlight">
|
|
[% ELSE %]
|
|
<tr>
|
|
[% END %]
|
|
<td><b>[% loo.tagfield %]</b></td>
|
|
<td>[% loo.liblibrarian %]</td>
|
|
<td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
|
|
<td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
|
|
<td>[% loo.authorised_value %]</td>
|
|
<td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
|
|
<td><a href="[% loo.edit %]">Edit</a></td>
|
|
<td><a href="[% loo.delete %]">Delete</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|
|
|