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

(-)a/misc/cronjobs/cloud-kw.pl (-5 / +5 lines)
Lines 128-139 sub new { Link Here
128
# RETURN:
128
# RETURN:
129
#   A 4-dimensionnal array in $self->{top_terms}
129
#   A 4-dimensionnal array in $self->{top_terms}
130
#   [0] term
130
#   [0] term
131
#   [1] term number of occurences
131
#   [1] term number of occurrences
132
#   [2] term proportional relative weight in terms set E[0-1]
132
#   [2] term proportional relative weight in terms set E[0-1]
133
#   [3] term logarithmic relative weight E [0-levels_cloud]
133
#   [3] term logarithmic relative weight E [0-levels_cloud]
134
#   
134
#   
135
#   This array is sorted alphabetically by terms ([0])
135
#   This array is sorted alphabetically by terms ([0])
136
#   It can be easily sorted by occurences:
136
#   It can be easily sorted by occurrences:
137
#     @t = sort { $a[1] <=> $a[1] } @{$self->{top_terms}};
137
#     @t = sort { $a[1] <=> $a[1] } @{$self->{top_terms}};
138
#
138
#
139
sub scan {
139
sub scan {
Lines 236-242 sub scan { Link Here
236
236
237
237
238
#
238
#
239
# Returns a HTML version of index top terms formated
239
# Returns a HTML version of index top terms formatted
240
# as a 'tag cloud'.
240
# as a 'tag cloud'.
241
#
241
#
242
sub html_cloud {
242
sub html_cloud {
Lines 376-389 Configuration file looks like that: Link Here
376
=head1 IMPROVEMENTS
376
=head1 IMPROVEMENTS
377
377
378
Generated top terms have more informations than those outputted from
378
Generated top terms have more informations than those outputted from
379
the time beeing. Some parameters could be easily added to improve
379
the time being. Some parameters could be easily added to improve
380
this script:
380
this script:
381
381
382
=over
382
=over
383
383
384
=item B<WithCount>
384
=item B<WithCount>
385
385
386
In order to output terms with the number of occurences they
386
In order to output terms with the number of occurrences they
387
have been found in Koha Catalogue by Zebra.
387
have been found in Koha Catalogue by Zebra.
388
388
389
=item B<CloudLevels>
389
=item B<CloudLevels>
(-)a/misc/cronjobs/fines.pl (-1 / +1 lines)
Lines 3-9 Link Here
3
#  This script loops through each overdue item, determines the fine,
3
#  This script loops through each overdue item, determines the fine,
4
#  and updates the total amount of fines due by each user.  It relies on
4
#  and updates the total amount of fines due by each user.  It relies on
5
#  the existence of /tmp/fines, which is created by ???
5
#  the existence of /tmp/fines, which is created by ???
6
# Doesnt really rely on it, it relys on being able to write to /tmp/
6
# Doesn't really rely on it, it relys on being able to write to /tmp/
7
# It creates the fines file
7
# It creates the fines file
8
#
8
#
9
#  This script is meant to be run nightly out of cron.
9
#  This script is meant to be run nightly out of cron.
(-)a/misc/cronjobs/overdue_notices.pl (-3 / +3 lines)
Lines 119-125 overdues that could not be emailed are sent in CSV format to the admin. Link Here
119
119
120
Produces html data. If patron does not have an email address or
120
Produces html data. If patron does not have an email address or
121
-n (no mail) flag is set, an HTML file is generated in the specified
121
-n (no mail) flag is set, an HTML file is generated in the specified
122
directory. This can be downloaded or futher processed by library staff.
122
directory. This can be downloaded or further processed by library staff.
123
The file will be called notices-YYYY-MM-DD.html and placed in the directory
123
The file will be called notices-YYYY-MM-DD.html and placed in the directory
124
specified.
124
specified.
125
125
Lines 127-133 specified. Link Here
127
127
128
Produces plain text data. If patron does not have an email address or
128
Produces plain text data. If patron does not have an email address or
129
-n (no mail) flag is set, a text file is generated in the specified
129
-n (no mail) flag is set, a text file is generated in the specified
130
directory. This can be downloaded or futher processed by library staff.
130
directory. This can be downloaded or further processed by library staff.
131
The file will be called notices-YYYY-MM-DD.txt and placed in the directory
131
The file will be called notices-YYYY-MM-DD.txt and placed in the directory
132
specified.
132
specified.
133
133
Lines 268-274 overdues in the last 2 weeks for the MAIN library. Link Here
268
=head1 SEE ALSO
268
=head1 SEE ALSO
269
269
270
The F<misc/cronjobs/advance_notices.pl> program allows you to send
270
The F<misc/cronjobs/advance_notices.pl> program allows you to send
271
messages to patrons in advance of thier items becoming due, or to
271
messages to patrons in advance of their items becoming due, or to
272
alert them of items that have just become due.
272
alert them of items that have just become due.
273
273
274
=cut
274
=cut
(-)a/misc/cronjobs/rss/README (-1 / +1 lines)
Lines 27-33 content, or at least modify the ones present here, let's review the Link Here
27
config file and the template file.
27
config file and the template file.
28
28
29
A config file is divided into three sections; channel, image, and
29
A config file is divided into three sections; channel, image, and
30
config.  A section begins with the name of the section occuring alone
30
config.  A section begins with the name of the section occurring alone
31
on a line, and ends with the beginning of the next section (or the end
31
on a line, and ends with the beginning of the next section (or the end
32
of the file).  Each of these sections contains series of configuration
32
of the file).  Each of these sections contains series of configuration
33
options in the form:
33
options in the form:
(-)a/misc/cronjobs/staticfines.pl (-1 / +1 lines)
Lines 3-9 Link Here
3
#  This script loops through each overdue item, determines the fine,
3
#  This script loops through each overdue item, determines the fine,
4
#  and updates the total amount of fines due by each user.  It relies on
4
#  and updates the total amount of fines due by each user.  It relies on
5
#  the existence of /tmp/fines, which is created by ???
5
#  the existence of /tmp/fines, which is created by ???
6
# Doesnt really rely on it, it relys on being able to write to /tmp/
6
# Doesn't really rely on it, it relies on being able to write to /tmp/
7
# It creates the fines file
7
# It creates the fines file
8
#
8
#
9
#  This script is meant to be run nightly out of cron.
9
#  This script is meant to be run nightly out of cron.
(-)a/misc/devel/update_dbix_class_files.pl (-1 / +1 lines)
Lines 72-78 misc/devel/update_dbix_class_files.pl Link Here
72
                            --db_passwd=db-pass ...
72
                            --db_passwd=db-pass ...
73
73
74
The command in usually called from the root directory for the Koha source tree.
74
The command in usually called from the root directory for the Koha source tree.
75
If you are runing from another directory, use the --path switch to specify
75
If you are running from another directory, use the --path switch to specify
76
a different path.
76
a different path.
77
77
78
=head1 OPTIONS
78
=head1 OPTIONS
(-)a/misc/load_testing/benchmark_circulation.pl (-1 / +1 lines)
Lines 71-77 my @mainpage; Link Here
71
print "--------------\n";
71
print "--------------\n";
72
print "Koha circulation benchmarking utility\n";
72
print "Koha circulation benchmarking utility\n";
73
print "--------------\n";
73
print "--------------\n";
74
print "Benchmarking with $max_tries occurences of each operation and $concurrency concurrent sessions \n";
74
print "Benchmarking with $max_tries occurrences of each operation and $concurrency concurrent sessions \n";
75
print "Load testing staff client dashboard page";
75
print "Load testing staff client dashboard page";
76
for (my $i=1;$i<=$max_tries;$i++) {
76
for (my $i=1;$i<=$max_tries;$i++) {
77
    push @mainpage,"$baseurl/mainpage.pl";
77
    push @mainpage,"$baseurl/mainpage.pl";
(-)a/misc/maintenance/MARC21_utf8_flag_fix.pl (-1 / +1 lines)
Lines 170-176 The default is to target all records with bad leaders. Link Here
170
170
171
=item B<--offset=N>
171
=item B<--offset=N>
172
172
173
Like an OFFSET statement in SQL, this tells the script to skip N of the targetted records.
173
Like an OFFSET statement in SQL, this tells the script to skip N of the targeted records.
174
The default is 0, i.e. skip none of them.
174
The default is 0, i.e. skip none of them.
175
175
176
=back
176
=back
(-)a/misc/migration_tools/bulkmarcimport.pl (-3 / +3 lines)
Lines 122-128 if ((not defined $sourcesubfield) && (not defined $sourcetag)){ Link Here
122
}
122
}
123
123
124
124
125
# Disable logging for the biblios and authorities import operation. It would unnecesarily
125
# Disable logging for the biblios and authorities import operation. It would unnecessarily
126
# slow the import
126
# slow the import
127
127
128
# Disable the syspref cache so we can change logging settings
128
# Disable the syspref cache so we can change logging settings
Lines 727-733 if set, do whatever is required Link Here
727
727
728
=item B<-k, -keepids>=<FIELD>
728
=item B<-k, -keepids>=<FIELD>
729
729
730
Field store ids in I<FIELD> (usefull for authorities, where 001 contains the
730
Field store ids in I<FIELD> (useful for authorities, where 001 contains the
731
authid for Koha, that can contain a very valuable info for authorities coming
731
authid for Koha, that can contain a very valuable info for authorities coming
732
from LOC or BNF. useless for biblios probably)
732
from LOC or BNF. useless for biblios probably)
733
733
Lines 761-767 I<FILE> for the koha bib and source id Link Here
761
761
762
=item B<-keepids>
762
=item B<-keepids>
763
763
764
Store ids in 009 (usefull for authorities, where 001 contains the authid for
764
Store ids in 009 (useful for authorities, where 001 contains the authid for
765
Koha, that can contain a very valuable info for authorities coming from LOC or
765
Koha, that can contain a very valuable info for authorities coming from LOC or
766
BNF. useless for biblios probably)
766
BNF. useless for biblios probably)
767
767
(-)a/misc/migration_tools/koha-svc.pl (-1 / +1 lines)
Lines 77-83 This same script can be used as module (as it defines T<Koha::SVC> package) usin Link Here
77
77
78
  require "koha-svc.pl"
78
  require "koha-svc.pl"
79
79
80
at begining of script. Rest of API is described below. Example of it's usage is at beginning of this script.
80
at beginning of script. Rest of API is described below. Example of its usage is at beginning of this script.
81
81
82
=head2 new
82
=head2 new
83
83
(-)a/misc/plack/koha.psgi (-2 / +1 lines)
Lines 28-34 $ENV{PLACK_DEBUG} = 1; # toggle debugging Link Here
28
$ENV{MEMCACHED_SERVERS} = "localhost:11211";
28
$ENV{MEMCACHED_SERVERS} = "localhost:11211";
29
#$ENV{MEMCACHED_DEBUG} = 0;
29
#$ENV{MEMCACHED_DEBUG} = 0;
30
30
31
$ENV{PROFILE_PER_PAGE} = 1; # reset persistant and profile counters after each page, like CGI
31
$ENV{PROFILE_PER_PAGE} = 1; # reset persistent and profile counters after each page, like CGI
32
#$ENV{INTRANET} = 1; # usually passed from script
32
#$ENV{INTRANET} = 1; # usually passed from script
33
33
34
#$ENV{DBI_AUTOPROXY}='dbi:Gofer:transport=null;cache=DBI::Util::CacheMemory'
34
#$ENV{DBI_AUTOPROXY}='dbi:Gofer:transport=null;cache=DBI::Util::CacheMemory'
35
- 

Return to bug 14383