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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+17 lines)
Lines 234-239 Circulation: Link Here
234
                  confirmation: Ask for confirmation
234
                  confirmation: Ask for confirmation
235
            - when checking out to a borrower that has overdues outstanding	    
235
            - when checking out to a borrower that has overdues outstanding	    
236
        -
236
        -
237
            - By default, set the LOST value of an item to 
238
            - pref: DefaultLongOverdueLostValue
239
              class: integer
240
            - when the item has been overdue for more than 
241
            - pref: DefaultLongOverdueDays
242
              class: integer
243
            - days.
244
            - <br>WARNING — These preferences will activate the automatic item loss process. Leave these fields empty if you don't want to activate this feature.
245
            - "<br>Example: [1] [30] Sets an item to the LOST value 1 when it has been overdue for more than 30 days."
246
            - <br>(Used when the longoverdue.pl script is called without the --lost parameter)
247
        -
248
            - "Charge a lost item to the borrower's account when the LOST value of the item changes to :"
249
            - pref: DefaultLongOverdueChargeValue
250
              class: integer
251
            - <br>Leave this field empty if you don't want to charge the user for lost items.
252
            - <br>(Used when the longoverdue.pl script is called without the --charge parameter)
253
        -
237
            - On checkin route the returned item to
254
            - On checkin route the returned item to
238
            - pref: HomeOrHoldingBranchReturn
255
            - pref: HomeOrHoldingBranchReturn
239
              type: choice
256
              type: choice
(-)a/lbo_traductions/pref/lbo_fix_longoverdue_parameter.po (+35 lines)
Line 0 Link Here
1
# Circulation > Checkout Policy
2
msgid "circulation.pref#DefaultLongOverdueLostValue# By default, set the LOST value of an item to"
3
msgstr "Par défaut, changer la valeur LOST d'un exemplaire pour "
4
5
# Circulation > Checkout Policy
6
msgid "circulation.pref#DefaultLongOverdueLostValue# when the item has been overdue for more than"
7
msgstr "lorsqu'un exemplaire est en retard pour plus de "
8
9
# Circulation > Checkout Policy
10
msgid "circulation.pref#DefaultLongOverdueLostValue# days."
11
msgstr "jours."
12
13
# Circulation > Checkout Policy
14
msgid "circulation.pref#DefaultLongOverdueLostValue# <br>Example: [1] [30] Sets an item to the LOST value 1 when it has been overdue for more than 30 days."
15
msgstr "<br>Exemple: [1] [30] Donne la valeur LOST 1 à un item s'il a été en retard pour plus de 30 jours."
16
17
# Circulation > Checkout Policy
18
msgid "circulation.pref#DefaultLongOverdueLostValue# <br>(Used when the longoverdue.pl script is called without the --lost parameter)"
19
msgstr "<br>(Utilisé lorsque le script longoverdue.pl est appellé sans spécifier le paramètre --lost)"
20
21
# Circulation > Checkout Policy
22
msgid "circulation.pref#DefaultLongOverdueLostValue# <br>WARNING — These preferences will activate the automatic item loss process. Leave these fields empty if you don't want to activate this feature."
23
msgstr "<br>ATTENTION — Cette préférence déclenche automatiquement le processus de perte de livres. Laissez ce champ vide en tout temps si vous ne voulez pas activer cette fonctionnalité."
24
25
# Circulation > Checkout Policy
26
msgid "circulation.pref#DefaultLongOverdueChargeValue# Charge a lost item to the borrower's account when the LOST value of the item changes to :"
27
msgstr "Ajouter une amende au compte du membre si la valeur LOST du livre emprunté devient :"
28
29
# Circulation > Checkout Policy
30
msgid "circulation.pref#DefaultLongOverdueChargeValue# <br>Leave this field empty if you don't want to charge the user for lost items."
31
msgstr "<br>Laisser ce champ vide si vous ne voulez par ajouter d'amende pour les exemplaires perdus."
32
33
# Circulation > Checkout Policy
34
msgid "circulation.pref#DefaultLongOverdueChargeValue# <br>(Used when the longoverdue.pl script is called without the --charge parameter)"
35
msgstr "<br>(Utilisé lorsque le script longoverdue.pl est appellé sans spécifier le paramètre --charge)"
(-)a/misc/cronjobs/longoverdue.pl (-3 / +15 lines)
Lines 108-115 ENDUSAGE Link Here
108
# FIXME: allow --help or -h
108
# FIXME: allow --help or -h
109
# 
109
# 
110
if ( ! defined($lost) ) {
110
if ( ! defined($lost) ) {
111
    print $usage;
111
    my $longoverdue_value = C4::Context->preference('DefaultLongOverdueLostValue');
112
    die "ERROR: No --lost (-l) option defined";
112
    my $longoverdue_days = C4::Context->preference('DefaultLongOverdueDays');
113
    if(defined($longoverdue_value) and defined($longoverdue_days) and $longoverdue_value ne '' and $longoverdue_days ne '' and $longoverdue_days >= 0) {
114
        $lost->{$longoverdue_days} = $longoverdue_value;
115
    }
116
    else {
117
        print $usage;
118
        die "ERROR: No --lost (-l) option defined";
119
    }
120
}
121
if ( ! defined($charge) ) {
122
    my $charge_value = C4::Context->preference('DefaultLongOverdueChargeValue');
123
    if(defined($charge_value) and $charge_value ne '') {
124
        $charge = $charge_value;
125
    }
113
}
126
}
114
unless ($confirm) {
127
unless ($confirm) {
115
    $verbose = 1;     # If you're not running it for real, then the whole point is the print output.
128
    $verbose = 1;     # If you're not running it for real, then the whole point is the print output.
116
- 

Return to bug 8337