View | Details | Raw Unified | Return to bug 16004
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/automatic_item_modification_by_age.tt (-4 / +4 lines)
Lines 3-13 Link Here
3
3
4
<p>This configuration page allows to configure the rules for the automatic item modifications by age cronjob script.</p>
4
<p>This configuration page allows to configure the rules for the automatic item modifications by age cronjob script.</p>
5
5
6
<p>Libraries can manage the 'new' status for items. With this script, it will be possible to:<p>
6
<p>Libraries can manage the 'new_status' field for items. With this script, it will be possible to:<p>
7
<ul>
7
<ul>
8
  <li>know easily what are the new items in the catalogue.</li>
8
  <li>know easily what are the new items in the catalogue.</li>
9
  <li>display an icon in the search results for new items.</li>
9
  <li>display an icon in the search results for new items.</li>
10
  <li>configure circulation and fine rules depending the 'new' status.</li>
10
  <li>configure circulation and fine rules depending the 'new_status' field.</li>
11
  <li>get a RSS/Atom feeds on these new items.</li>
11
  <li>get a RSS/Atom feeds on these new items.</li>
12
</ul>
12
</ul>
13
13
Lines 23-33 Link Here
23
<p>At least one substitution must be defined, else there is no sense to launch the script.</p>
23
<p>At least one substitution must be defined, else there is no sense to launch the script.</p>
24
<p>If the value is an empty string, the field will be deleted.</p>
24
<p>If the value is an empty string, the field will be deleted.</p>
25
<h3>Examples</h3>
25
<h3>Examples</h3>
26
<p>You want to remove the items.new value for items created 10 days ago:</p>
26
<p>You want to remove the items.new_status value for items created 10 days ago:</p>
27
<ul>
27
<ul>
28
  <li>Duration: 10 days</li>
28
  <li>Duration: 10 days</li>
29
  <li>No condition</li>
29
  <li>No condition</li>
30
  <li>Substitution: items.new = '' (no value in the input)</li>
30
  <li>Substitution: items.new_status = '' (no value in the input)</li>
31
</ul>
31
</ul>
32
32
33
<p>You want to change the items.ccode=1 to items.ccode=2 for items created 7 days ago.
33
<p>You want to change the items.ccode=1 to items.ccode=2 for items created 7 days ago.
(-)a/t/db_dependent/Items/AutomaticItemModificationByAge.t (-1 / +7 lines)
Lines 11-21 use C4::Biblio; Link Here
11
use C4::Context;
11
use C4::Context;
12
use C4::Items;
12
use C4::Items;
13
use Koha::DateUtils;
13
use Koha::DateUtils;
14
use t::lib::TestBuilder;
14
15
15
my $dbh = C4::Context->dbh;
16
my $dbh = C4::Context->dbh;
16
$dbh->{AutoCommit} = 0;
17
$dbh->{AutoCommit} = 0;
17
$dbh->{RaiseError} = 1;
18
$dbh->{RaiseError} = 1;
18
19
20
# this test assumes a CPL branch
21
my $builder = t::lib::TestBuilder->new;
22
if( !$builder->schema->resultset('Branch')->find('CPL') ) {
23
    $builder->build( { source => 'Branch', value => { branchcode => 'CPL' }});
24
}
25
19
$dbh->do(q|
26
$dbh->do(q|
20
    DELETE FROM marc_subfield_structure
27
    DELETE FROM marc_subfield_structure
21
    WHERE kohafield = 'items.new_status' OR kohafield = 'items.stocknumber'
28
    WHERE kohafield = 'items.new_status' OR kohafield = 'items.stocknumber'
22
- 

Return to bug 16004