Incorporated A.C.Li's fixes for install script. His patches were against the
old installer.pl in the trunk of CVS. His fixes were applied to the new
installer.pl and Install.pm in the rel-1-2 branch. These files will eventually
replace the old installer in the trunk branch as well when we start
distributiong 1.3.x packages.
Various fixes for buildrelease script contributed by a.c.li
(1) Guess the location of koha-html in a hopefully more sensible way
(2) Use getpwuid() to figure where root's home directory is; traditionally /root
is usually not right
(3) Check for the return code of chdir calls
(4) Removed compilation warning messages (replaced \RC with explicit use of
concatenation operator)
(5) The questions about tagging and updates could be quite confusing to the new
user (of buildrelease); I tried to reword a couple of sentences a bit, and
rearranged their orders a bit, to reduce the likelihood of getting confused.
Needless questions need not be asked (confirming whether to tag when the user
says he/she doesn't want to tag).
(6) Don't say it is tagging the CVS files when it is not.
dosearch.pl replaces search.pl for the new templated opac. I thought it should have another name because there are so many search.pl around! However dosearch.pl isnt actually that great a name :)
added a themelanguage subroutine that searchs for templates according to the opacthemes and opaclanguages fields in the systempreferences table. These fields can be space seperated names. Templates are searched for in those orders, over themes first.
Fix for Auth.pm when using "super user" account from /etc/koha.conf. Auth.pm
was not checking if this account was being used except on initial
authentication, ie superlibrarian flag was not getting set when cookie was read
for authentication on subsequent connections.
logout.pl checks if the server is using basic authentication. If it is, is displays a message stating that the user must exit their browser to log out.
Removing hard coded values for apache user and pid-file directory (note that
these hard coded values were never actually used unless processz3950queue was
run as root in any case).
removed hard coded budget date from sub bookfunds();
Replaced with a check that today's date is after the startdate and before the enddate of the budget.
Added new flags field for sample data borrowers. The librarian user has the
"superlibrarian" flag set, the jdoe and jsmith users are normal patrons with
only the "borrow" flag set. All three passwords are set to "koha" in the
sample data.
Beginning flags based authentication. All of the member*pl scripts now require
the borrower to have either the "borrowers" or "superlibrarian" flags set.
Added flags to borrowers table and userflags table. Also, OPAC scripts now
check for the existence of a file named 'opac' in the directory they are run
from and set the $type variable to 'opac' if it exists. No longer have to
"trust" that the type query parameter is correct.
Creating a separate Install.pm module that will be shared by installer.pl and
koha.upgrade. Also providing for eventual translation of messages in the
installer and upgrader tools.
Added authentication information to installer.pl, modified sample data to work
with new authentication scheme, fix to Auth.pm that was causing userid and
password to show up in the URL after logging out and logging back in again.
Added info about the new authentication to koha.upgrade, and changed inactivity
timeout to 2 hours in Auth.pm. This will be configurable in the final version.
Created a subroutine for loading /etc/koha.conf settings. Auth.pm will now
accept the user and pass values from /etc/koha.conf as valid authentication.