[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Automatic item modifications by age › Tools › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF ( op == 'edit_form' ) %]

Rules for automatic item modifications by age

[% ELSE %]

Automatic item modifications by age

[% IF ( rules ) %] [% ELSE %] [% END %] [% END %] [% FOR message IN messages %] [% IF message.type == "error" %]
[% END %] [% IF message.code == "unable_to_load_configuration" %] An error occurs: Unable to load the configuration. [% END %]
[% END %] [% IF op == 'edit_form' %]
[% FOR rule IN rules %] [% SET id = loop.count %]
Rule [% loop.count | html %] Remove this rule
Age in days
Age field
If not set then items.dateaccessioned will be used
Conditions
[% FOR condition IN rule.conditions %]
= Add a condition Remove condition
[% END %]
Substitutions
[% FOR substitution IN rule.substitutions %]
= Add a substitution Remove substitution A field name is required
[% END %]
[% END %]
There are no rules defined.
Rule Remove this rule
Age in days
Age field
If not set then items.dateaccessioned will be used
Conditions
= Add a condition Remove condition
Substitutions
= Add a substitution Remove substitution A field name is required
[% ELSIF rules %]

List of rules

[% FOR rule IN rules %] [% END %]
Age Age field Conditions Substitutions
[% IF rule.age.defined and rule.age.length > 0 %] [% rule.age | html %] days [% ELSE %] There is no age for this rule. [% END %] [% IF rule.agefield %] [% rule.agefield | html %] [% ELSE %] items.dateaccessioned [% END %] [% FOR condition IN rule.conditions %] [% IF condition.field %]
[% condition.field | html %] = [% condition.value | html %]
[% ELSE %] There is no condition for this rule. [% END %] [% END %]
[% FOR substitution IN rule.substitutions %]
[% substitution.field | html %] = [% substitution.value | html %]
[% END %]
[% ELSE %]
There are no rules defined.
[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %] [% IF op == 'edit_form' %] [% END %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]