@@ -, +, @@ --- installer/data/mysql/kohastructure.sql | 4 ++-- .../intranet-tmpl/prog/en/css/staff-global.css | 2 +- ...us.tt => automatic_item_modification_by_age.tt} | 6 +++--- ...us.tt => automatic_item_modification_by_age.tt} | 10 +++++----- .../prog/en/modules/tools/tools-home.tt | 2 +- .../cronjobs/automatic_item_modification_by_age.pl | 6 +++--- ...ewStatus.t => AutomaticItemModificationByAge.t} | 0 ...us.pl => automatic_item_modification_by_age.pl} | 6 +++--- 8 files changed, 18 insertions(+), 18 deletions(-) rename koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/{toggle_new_status.tt => automatic_item_modification_by_age.tt} (90%) rename koha-tmpl/intranet-tmpl/prog/en/modules/tools/{toggle_new_status.tt => automatic_item_modification_by_age.tt} (95%) rename t/db_dependent/Items/{ToggleNewStatus.t => AutomaticItemModificationByAge.t} (100%) rename tools/{toggle_new_status.pl => automatic_item_modification_by_age.pl} (94%) --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -946,7 +946,7 @@ CREATE TABLE `deleteditems` ( `enumchron` text default NULL, -- serial enumeration/chronology for the item (MARC21 952$h) `copynumber` varchar(32) default NULL, -- copy number (MARC21 952$t) `stocknumber` varchar(32) default NULL, -- inventory number (MARC21 952$i) - `new` VARCHAR(32) DEFAULT NULL, -- 'new' value, you can put whatever free-text information. This field is intented to be managed by the toggle_new_status cronjob. + `new` VARCHAR(32) DEFAULT NULL, -- 'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob. PRIMARY KEY (`itemnumber`), KEY `delitembarcodeidx` (`barcode`), KEY `delitemstocknumberidx` (`stocknumber`), @@ -1246,7 +1246,7 @@ CREATE TABLE `items` ( -- holdings/item information `enumchron` text default NULL, -- serial enumeration/chronology for the item (MARC21 952$h) `copynumber` varchar(32) default NULL, -- copy number (MARC21 952$t) `stocknumber` varchar(32) default NULL, -- inventory number (MARC21 952$i) - `new` VARCHAR(32) DEFAULT NULL, -- 'new' value, you can put whatever free-text information. This field is intended to be managed by the toggle_new_status cronjob. + `new` VARCHAR(32) DEFAULT NULL, -- 'new' value, you can put whatever free-text information. This field is intended to be managed by the automatic_item_modification_by_age cronjob. PRIMARY KEY (`itemnumber`), UNIQUE KEY `itembarcodeidx` (`barcode`), KEY `itemstocknumberidx` (`stocknumber`), --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2759,7 +2759,7 @@ span.onsite_checkout { border : 1px solid #FFF2CE; } -/* Tools > toggle_new_status */ +/* Tools > automatic_item_modification_by_age */ div.rules { display: block; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/toggle_new_status.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/toggle_new_status.tt @@ -1,7 +1,7 @@ [% INCLUDE 'help-top.inc' %] -

Toggle new status configuration

+

Automatic item modifications by age configuration

-

This configuration page allows to configure the rules for the toggle new status cronjob script.

+

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

Libraries can manage the 'new' status for items. With this script, it will be possible to:

How to execute the cronjob script?

-

The cronjob script is misc/cronjobs/toggle_new_status.pl.

+

The cronjob script is misc/cronjobs/automatic_item_modification_by_age.pl.

Try the -h parameter in order to see the help.

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.

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/toggle_new_status.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/toggle_new_status.tt @@ -113,10 +113,10 @@ //]]> - + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] - +
@@ -124,7 +124,7 @@

Automatic item modifications by age

[% FOR message IN messages %] [% IF message.type == "error" %] @@ -137,7 +137,7 @@ [% END %] [% IF op == 'edit_form' %] -
+

List of rules

@@ -200,7 +200,7 @@
- Cancel + Cancel
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt @@ -128,7 +128,7 @@ [% END %] [% IF ( CAN_user_tools_items_batchmod ) %] -
Automatic item modifications by age
+
Automatic item modifications by age
Define rules to modify items by age
[% END %] --- a/misc/cronjobs/automatic_item_modification_by_age.pl +++ a/misc/cronjobs/automatic_item_modification_by_age.pl @@ -21,7 +21,7 @@ pod2usage(1) if $help; $verbose = 1 unless $confirm; # Load configuration from the syspref -my $syspref_content = C4::Context->preference('toggle_new_status_configuration'); +my $syspref_content = C4::Context->preference('automatic_item_modification_by_age_configuration'); my $rules = eval { JSON::from_json( $syspref_content ) }; pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 }) if $@; @@ -51,11 +51,11 @@ __END__ =head1 NAME -toggle_new_status.pl +automatic_item_modification_by_age.pl =head1 SYNOPSIS -./toggle_new_status.pl -h +./automatic_item_modification_by_age.pl -h Toggle recent acquisitions status. Use this script to delete "new" status for items. --- a/tools/toggle_new_status.pl +++ a/tools/toggle_new_status.pl @@ -19,7 +19,7 @@ =head1 NAME -toggle_new_status.pl: Update new status for items. +automatic_item_modification_by_age.pl: Update new status for items. =cut @@ -45,7 +45,7 @@ my $cgi = new CGI; # open template my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "tools/toggle_new_status.tt", + template_name => "tools/automatic_item_modification_by_age.tt", query => $cgi, type => "intranet", authnotrequired => 0, @@ -55,7 +55,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $op = $cgi->param('op') // 'show'; -my $syspref_name = q|toggle_new_status_configuration|; +my $syspref_name = q|automatic_item_modification_by_age_configuration|; if ( $op eq 'update' ) { my @rules; my @unique_ids = $cgi->param('unique_id'); --