[% INCLUDE 'help-top.inc' %]
<h1>Automatic item modifications by age configuration</h1>

<p>This configuration page allows to configure the rules for the automatic item modifications by age cronjob script.</p>

<p>Libraries can manage the 'new_status' field for items. With this script, it will be possible to:<p>
<ul>
  <li>know easily what are the new items in the catalogue.</li>
  <li>display an icon in the search results for new items.</li>
  <li>configure circulation and fine rules depending the 'new_status' field.</li>
  <li>get a RSS/Atom feeds on these new items.</li>
</ul>

<h3>How to work the configuration page?</h3>
<p>There are 3 values to define:</p>
<h4>The duration</h4>
<p>This value corresponds to the duration an item is considered as new.</p>
<h4>The conditions</h4>
<p>Conditions should be defined if you want to test some values before to substitute fields in the items.</p>
<p>They are cumulatives but you can separate with a pipe '|' for a field with several values.</p>
<h4>The substitutions</h4>
<p>Substitutions are changes to apply to the matching items.</p>
<p>At least one substitution must be defined, else there is no sense to launch the script.</p>
<p>If the value is an empty string, the field will be deleted.</p>
<h3>Examples</h3>
<p>You want to remove the items.new_status value for items created 10 days ago:</p>
<ul>
  <li>Duration: 10 days</li>
  <li>No condition</li>
  <li>Substitution: items.new_status = '' (no value in the input)</li>
</ul>

<p>You want to change the items.ccode=1 to items.ccode=2 for items created 7 days ago.
<ul>
  <li>Duration: 7 days</li>
  <li>Condition: items.ccode = 1</li>
  <li>Substitution: items.ccode = 2</li>
</ul>

<h3>How to execute the cronjob script?</h3>
<p>The cronjob script is misc/cronjobs/automatic_item_modification_by_age.pl.</p>
<p>Try the -h parameter in order to see the help.</p>
<p>Without any parameter, the script will be launched in a dry-run mode. If the -c (or --confirm) flag is given, the script will apply the changes.</p>

[% INCLUDE 'help-bottom.inc' %]
