Commit Graph

28 Commits

Author SHA1 Message Date
kados d116b9d619 First go at a connection object for Zebra. You can now get a
connection object by doing:

my $Zconn = C4::Context->Zconn;

My initial tests indicate that as soon as your funcion ends
(ie, when you're done doing something) the connection will be
closed automatically. There may be some other way to make the
connection more stateful, I'm not sure...
2006-02-22 00:56:59 +00:00
tipaul 12aad23e9f removing set names=UTF8, seems useless. Still investigating mysql-perl-utf8 2006-02-17 15:25:59 +00:00
tipaul c40f8c923f utf8 is a : go for beta test in HEAD.
some explanations :
- updater/updatedatabase => will transform all tables in innoDB (not related to utf8, just to warn you) AND collate them in utf8 / utf8_general_ci. The SQL command is : ALTER TABLE tablename DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci.
- *-top.inc will show the pages in utf8
- THE HARD THING : for me, mysql-client and mysql-server were set up to communicate in iso8859-1, whatever the mysql collation ! Thus, pages were improperly shown, as datas were transmitted in iso8859-1 format ! After a full day of investigation, someone on usenet pointed "set NAMES 'utf8'" to explain that I wanted utf8. I could put this in my.cnf, but if I do that, ALL databases will "speak" in utf8, that's not what we want. Thus, I added a line in Context.pm : everytime a DB handle is opened, the communication is set to utf8.
- using marcxml field and no more the iso2709 raw marc biblioitems.marc field.
2006-01-04 15:54:55 +00:00
tipaul b38997925f big commit, still breaking things...
* synch with rel_2_2. Probably the last non manual synch, as rel_2_2 should not be modified deeply.
* code cleaning (cleaning warnings from perl -w) continued
2005-10-26 09:11:02 +00:00
tipaul 2605a20610 adding emailaddress to user context.
Now, we can use userenv->{emailaddress} to get the librarian email address everywhere.
2005-08-05 14:43:44 +00:00
tipaul 2cd0bc1da8 synch'ing 2.2 and head 2005-08-04 13:27:37 +00:00
hdl 31fca3dfd2 Bug Fixing for independantBranches support.
Addign a Cookie containing user specific vars such as :
branch,
firstname,
surname,
cardnumber...
may be criticized from a lawyer point of view, since name and surname are given.
But the real need is for userid and branch.
And it is achieved.
Auth passes now TWO cookies :
a session cookie
And an environment cookie.
2005-07-26 15:58:47 +00:00
tipaul b8e4963f90 some bugfixes, but still don't work correctly 2005-07-26 10:12:48 +00:00
hdl 5fa6925444 Adding Branch Independancy.
Still under development.
2005-07-26 07:50:27 +00:00
tipaul 93ff09d081 merging 2.2 branch with head. Sorry for not making it before, many many commits done here 2005-03-01 13:40:35 +00:00
tipaul e54459b763 an improvement has been done in DB calls that needs a new index. It's automatically added in fresh installs, but for updates, run the following SQL command :
ALTER TABLE `marc_subfield_structure` ADD INDEX ( `kohafield` )
2004-12-14 15:48:34 +00:00
tipaul e89e322f6b removing useless comment 2004-12-08 10:08:41 +00:00
tipaul 56ab39361e fixes from A. Tarallo, for mod_perl compliance 2004-12-03 16:50:39 +00:00
tipaul c93369dc4a patch from A. Tarallo (for differents DB schemes) 2004-08-13 09:13:14 +00:00
tipaul a72d9621ae removing searchborrower from circ2.pm.
Already exists in Search.pm
this fixes bug #439 and improve consistency.
2003-06-05 17:03:31 +00:00
acli ac6592a669 Fixed completely wrong logic in my boolean_preference function 2003-02-10 06:37:00 +00:00
acli 850a3e41f6 Use the new C4::Boolean module and the new C4::Auth::boolean_parameter
function to test for boolean values in parameters
2003-02-06 06:35:26 +00:00
acli 2e7bb9a106 Removed perl warning 2003-01-20 07:35:31 +00:00
tipaul 40d6ddb383 checks that the config file passed in parameter exist, otherwise, uses the default one (/etc/koha.conf)
useful in upgradedb2marc.pl script.
* if this script is called during installation, uses /etc/koha.conf.tmp
* if it's called manually (after installation), uses /etc/koha.conf, as the tmp file is no more here :-)
2002-12-20 13:54:31 +00:00
arensb fa62f577cf Added whitespace to make the POD work.
Simplified references.
Added author email address.
2002-10-10 04:34:20 +00:00
arensb 3e7a102268 Added a couple of comments. 2002-10-09 14:04:49 +00:00
arensb 45c739791e Added "preference" method, for fetching a single value from
systempreferences (which is all most scripts need).
2002-10-05 23:55:00 +00:00
arensb dbb94761cf Changed a function call to a class method call, and a few more anal
changes.
2002-10-03 16:15:10 +00:00
tipaul cbd283722e pod doc adding 2002-10-03 11:31:31 +00:00
tipaul f75126490d Extending Context.pm to add stopword management and using it in MARC-API.
First benchmarks show a medium speed improvement, which  is nice as this part is heavily called.
2002-10-03 11:28:18 +00:00
arensb 39d7df4191 Fixed some run-time bugs, so it'll actually load. 2002-10-02 23:38:47 +00:00
arensb 64c01c3574 Fixed typos in POD. 2002-10-02 17:21:09 +00:00
arensb f46cb5b0a3 (added) Module for reading the config file and getting access to the
database.
2002-10-02 17:12:04 +00:00