Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
311 lines
11 KiB
Text
311 lines
11 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Administration › Classification sources
|
|
[% IF ( class_source_form ) %]
|
|
›
|
|
[% IF ( edit_class_source ) %]Modify classification source[% ELSE %]Add classification source[% END %]
|
|
[% END %]
|
|
[% IF ( sort_rule_form ) %]
|
|
›
|
|
[% IF ( edit_sort_rule ) %]Modify filing rule[% ELSE %]Add filing rule[% END %]
|
|
[% END %]
|
|
[% IF ( delete_class_source_form ) %]
|
|
› Confirm deletion of classification source [% class_source %]
|
|
[% ELSIF ( delete_sort_rule_form ) %]
|
|
› Confirm deletion of filing rule [% sort_rule %]
|
|
[% ELSIF ( delete_sort_rule_impossible ) %]
|
|
› Cannot delete filing rule [% sort_rule %]
|
|
[% END %]
|
|
</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
function CheckSourceForm(f) {
|
|
var _alertString="";
|
|
var alertString2;
|
|
if (f.class_source.value.length==0) {
|
|
_alertString += "\n- " + _("Classification source code missing");
|
|
}
|
|
if (f.sort_rule.value.length==0) {
|
|
_alertString += "\n- " + _("Filing rule code missing");
|
|
}
|
|
if (f.description.value.length==0) {
|
|
_alertString += "\n- " + _("Description missing");
|
|
}
|
|
if (_alertString.length==0) {
|
|
document.Aform.submit();
|
|
} else {
|
|
alertString2 = _("Form not submitted because of the following problem(s)");
|
|
alertString2 += "\n------------------------------------------------------------------------------------\n";
|
|
alertString2 += _alertString;
|
|
alert(alertString2);
|
|
}
|
|
}
|
|
|
|
function CheckRuleForm(f) {
|
|
var _alertString="";
|
|
var alertString2;
|
|
if (f.sort_rule.value.length==0) {
|
|
_alertString += "\n- " + _("Filing rule code missing");
|
|
}
|
|
if (f.description.value.length==0) {
|
|
_alertString += "\n- " + _("Description missing");
|
|
}
|
|
if (f.sort_routine.value.length==0) {
|
|
_alertString += "\n- " + _("Sort routine missing");
|
|
}
|
|
if (_alertString.length==0) {
|
|
document.Aform.submit();
|
|
} else {
|
|
alertString2 = _("Form not submitted because of the following problem(s)");
|
|
alertString2 += "\n------------------------------------------------------------------------------------\n";
|
|
alertString2 += _alertString;
|
|
alert(alertString2);
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="admin_classsources" 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/classsources.pl">Classification sources</a>
|
|
[% IF ( class_source_form ) %]
|
|
› [% IF ( edit_class_source ) %]Modify classification source[% ELSE %]Add classification source[% END %]
|
|
[% END %]
|
|
[% IF ( sort_rule_form ) %]
|
|
› [% IF ( edit_sort_rule ) %]Modify filing rule[% ELSE %]Add filing rule[% END %]
|
|
[% END %]
|
|
[% IF ( delete_class_source_form ) %]
|
|
› Confirm deletion of classification source <span class="ex">'[% class_source %]'</span>
|
|
[% ELSIF ( delete_sort_rule_form ) %]
|
|
› Confirm deletion of filing rule <span class="ex">'[% sort_rule %]'</span>
|
|
[% ELSIF ( delete_sort_rule_impossible ) %]
|
|
› Cannot delete filing rule <span class="ex">'[% sort_rule %]'</span>
|
|
[% END %]
|
|
</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
[% IF ( class_source_form ) %]
|
|
[% IF ( edit_class_source ) %]
|
|
<h2>Modify classification source</h2>
|
|
[% ELSE %]
|
|
<h2>Add classification source</h2>
|
|
[% END %]
|
|
<form action="[% script_name %]" name="Aform" method="post">
|
|
<input type="hidden" name="op" value="[% confirm_op %]" />
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li>
|
|
[% IF ( edit_class_source ) %]
|
|
<span class="label">Classification source code: </span>
|
|
<input type="hidden" name="class_source" value="[% class_source %]" />
|
|
[% class_source %]
|
|
[% ELSE %]
|
|
<label for="class_source">Classification source code: </label>
|
|
<input type="text" id="class_source" name="class_source" size="10" maxlength="10" />
|
|
[% END %]
|
|
</li>
|
|
<li><label for="description">Description: </label>
|
|
<input type="text" id="description" name="description" size="50" maxlength="250"
|
|
value="[% description |html %]" />
|
|
</li>
|
|
<li><label for="used">Source in use?</label>
|
|
[% IF ( used ) %]<input type="checkbox" id="used" name="used" value="used" checked="checked" />[% ELSE %]
|
|
<input type="checkbox" id="used" name="used" value="used" />[% END %]
|
|
</li>
|
|
<li><label for="sort_rule">Filing rule: </label>
|
|
<select id="sort_rule" name="sort_rule">
|
|
[% FOREACH rules_dropdow IN rules_dropdown %]
|
|
[% IF ( rules_dropdow.selected ) %]
|
|
<option value="[% rules_dropdow.rule %]" selected="selected">[% rules_dropdow.description %] ([% rules_dropdow.rule %])</option>
|
|
[% ELSE %]
|
|
<option value="[% rules_dropdow.rule %]">[% rules_dropdow.description %] ([% rules_dropdow.rule %])</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="button" value="Save" onclick="CheckSourceForm(this.form)" />
|
|
<a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
[% IF ( sort_rule_form ) %]
|
|
[% IF ( edit_sort_rule ) %]
|
|
<h2>Modify filing rule</h2>
|
|
[% ELSE %]
|
|
<h2>Add filing rule</h2>
|
|
[% END %]
|
|
<form action="[% script_name %]" name="Aform" method="post">
|
|
<input type="hidden" name="op" value="[% confirm_op %]" />
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li>
|
|
[% IF ( edit_sort_rule ) %]
|
|
<span class="label">Filing rule code: </span>
|
|
<input type="hidden" name="sort_rule" value="[% sort_rule %]" />
|
|
[% sort_rule %]
|
|
[% ELSE %]
|
|
<label for="sort_rule">Filing rule code: </label>
|
|
<input type="text" id="sort_rule" name="sort_rule" size="10" maxlength="10" />
|
|
[% END %]
|
|
</li>
|
|
<li><label for="description">Description: </label>
|
|
<input type="text" id="description" name="description" size="50" maxlength="250"
|
|
value="[% description |html %]" />
|
|
</li>
|
|
<li><label for="sort_routine">Filing routine: </label>
|
|
<select id="sort_routine" name="sort_routine">
|
|
[% FOREACH routines_dropdow IN routines_dropdown %]
|
|
[% IF ( routines_dropdow.selected ) %]
|
|
<option value="[% routines_dropdow.routine %]" selected="selected">[% routines_dropdow.routine %]</option>
|
|
[% ELSE %]
|
|
<option value="[% routines_dropdow.routine %]">[% routines_dropdow.routine %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="button" value="Save" onclick="CheckRuleForm(this.form)" />
|
|
<a class="cancel" href="/cgi-bin/koha/admin/classsources.pl">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
[% IF ( delete_class_source_form ) %]
|
|
<div class="dialog alert"><h3>Confirm deletion of classification source <span class="ex">'[% class_source %]'</span>?</h3>
|
|
<form action="[% script_name %]" name="Aform" method="post">
|
|
<input type="hidden" name="op" value="[% confirm_op %]" />
|
|
<input type="hidden" name="class_source" value="[% class_source %]" />
|
|
<input type="submit" value="Delete classification source" class="approve" />
|
|
</form>
|
|
<form action="[% script_name %]" method="get">
|
|
<input type="submit" value="No, do not delete" class="deny" />
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF ( delete_sort_rule_form ) %]
|
|
<div class="dialog alert"><h3>Confirm deletion of filing rule <span class="ex">'[% sort_rule %]'</span>?</h3>
|
|
<form action="[% script_name %]" name="Aform" method="post">
|
|
<input type="hidden" name="op" value="[% confirm_op %]" />
|
|
<input type="hidden" name="sort_rule" value="[% sort_rule %]" />
|
|
<input type="submit" value="Delete filing rule" class="approve" />
|
|
</form>
|
|
<form action="[% script_name %]" method="get">
|
|
<input type="submit" value="No, do not delete" class="deny" />
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF ( delete_sort_rule_impossible ) %]
|
|
<div class="dialog message"><h3>Cannot delete filing rule <span class="ex">'[% sort_rule %]'</span></h3>
|
|
<p>The filing rule [% sort_rule %] is used by at least one classification source. Please
|
|
remove it from all classification source definitions before trying again.
|
|
</p>
|
|
<form action="[% script_name %]" method="get">
|
|
<input type="submit" value="OK" class="approve" />
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF ( display_lists ) %]
|
|
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<a class="btn btn-small" id="newsource" href="[% script_name %]?op=add_source"><i class="fa fa-plus"></i> New classification source</a>
|
|
<a class="btn btn-small" id="newrule" href="[% script_name %]?op=add_sort_rule"><i class="fa fa-plus"></i> New filing rule</a>
|
|
</div>
|
|
|
|
<h2>Classification sources</h2>
|
|
[% IF ( added_source ) %]
|
|
<div class="dialog message">Added classification source [% added_source %]</div>
|
|
[% END %]
|
|
[% IF ( edited_source ) %]
|
|
<div class="dialog message">Modified classification source [% edited_source %]</div>
|
|
[% END %]
|
|
[% IF ( deleted_source ) %]
|
|
<div class="dialog message">Deleted classification source [% deleted_source %]</div>
|
|
[% END %]
|
|
<table>
|
|
<tr>
|
|
<th>Code</th>
|
|
<th>Description</th>
|
|
<th>In Use</th>
|
|
<th>Filing Rule</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
[% FOREACH class_source IN class_sources %]
|
|
<tr>
|
|
<td>[% class_source.code %]</td>
|
|
<td>[% class_source.description %]</td>
|
|
<td>[% IF ( class_source.used ) %]Yes[% ELSE %]No[% END %]</td>
|
|
<td>[% class_source.sortrule %]</td>
|
|
<td>
|
|
<a href="[% class_source.script_name %]?op=edit_source&class_source=[% class_source.code |html %]">Edit</a>
|
|
<a href="[% class_source.script_name %]?op=delete_source&class_source=[% class_source.code |html %]">Delete</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
|
|
<div class="pages">[% pagination_bar %]</div>
|
|
|
|
<h2>Classification filing rules</h2>
|
|
[% IF ( added_rule ) %]
|
|
<div class="dialog message">Added filing rule [% added_rule %]</div>
|
|
[% END %]
|
|
[% IF ( edited_rule ) %]
|
|
<div class="dialog message">Modified filing rule [% edited_rule %]</div>
|
|
[% END %]
|
|
[% IF ( deleted_rule ) %]
|
|
<div class="dialog message">Deleted filing rule [% deleted_rule %]</div>
|
|
[% END %]
|
|
<table>
|
|
<tr>
|
|
<th>Code</th>
|
|
<th>Description</th>
|
|
<th>Sorting routine</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
[% FOREACH class_sort_rule IN class_sort_rules %]
|
|
[% IF ( loop.odd ) %]
|
|
<tr>
|
|
[% ELSE %]
|
|
<tr class="highlight">
|
|
[% END %]
|
|
<td>[% class_sort_rule.rule %]</td>
|
|
<td>[% class_sort_rule.description %]</td>
|
|
<td>[% class_sort_rule.sort_routine %]</td>
|
|
<td>
|
|
<a href="[% class_sort_rule.script_name %]?op=edit_sort_rule&sort_rule=[% class_sort_rule.rule |html %]">Edit</a>
|
|
<a href="[% class_sort_rule.script_name %]?op=delete_sort_rule&sort_rule=[% class_sort_rule.rule |html %]">Delete</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
<div class="paginationBar">[% pagination_bar %]</div>
|
|
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|