koha.git
16 years agoNew programmer templates for the OPAC. Markup has been pared down, but structure...
oleonard [Fri, 3 Mar 2006 20:10:26 +0000 (20:10 +0000)]
New programmer templates for the OPAC. Markup has been pared down, but structure hasn't been updated according to new guidelines put forth by Paul on the mailing list (i.e. named blocks, etc).

16 years agoBug fixing : a line missed a comment sign.
hdl [Fri, 3 Mar 2006 17:25:01 +0000 (17:25 +0000)]
Bug fixing : a line missed a comment sign.

16 years agocommit for holidays and news management.
tipaul [Fri, 3 Mar 2006 17:02:22 +0000 (17:02 +0000)]
commit for holidays and news management.
(some forgotten files)

16 years agoRemove the search that tests the Zconn -- warning, still no fault
kados [Fri, 3 Mar 2006 16:45:36 +0000 (16:45 +0000)]
Remove the search that tests the Zconn -- warning, still no fault
tollerance

16 years agocommit for holidays and news management.
tipaul [Fri, 3 Mar 2006 16:35:21 +0000 (16:35 +0000)]
commit for holidays and news management.

Contrib from Tümer Garip (from Turkey) :
* holiday :
in /tools/ the holiday.pl script let you define holidays (days where the library is closed), branch by branch. You can define 3 types of holidays :
- single day : only this day is closed
- repet weekly (like "sunday") : the day is holiday every week
- repet yearly (like "July, 4") : this day is closed every year.

You can also put exception :
- sunday is holiday, but "2006 March, 5th" the library will be open

The holidays are used for return date calculation : the return date is set to the next date where the library is open. A systempreference (useDaysMode) set ON (Calendar) or OFF (Normal) the calendar calculation.

16 years agobug fixing : making changes for letters and reports-home (Inventory/Stocktaking and...
hdl [Thu, 2 Mar 2006 20:41:30 +0000 (20:41 +0000)]
bug fixing : making changes for letters and reports-home (Inventory/Stocktaking and overdue) work.

16 years agorollback ... by accident I committed a rel_2_2 Biblio.pm
kados [Wed, 1 Mar 2006 03:07:54 +0000 (03:07 +0000)]
rollback ... by accident I committed a rel_2_2 Biblio.pm

16 years agoMARChtml2xml for improved MARC editor
kados [Wed, 1 Mar 2006 02:13:00 +0000 (02:13 +0000)]
MARChtml2xml for improved MARC editor

16 years agoA new overduenotice script to go along with overduerules
hdl [Tue, 28 Feb 2006 17:20:29 +0000 (17:20 +0000)]
A new overduenotice script to go along with overduerules
it is still UNDER CONSTRUCTION and need deep testing.

16 years agoAdding some checking and feedback.
hdl [Tue, 28 Feb 2006 14:58:32 +0000 (14:58 +0000)]
Adding some checking and feedback.

16 years agoNew table used in overduerules.pl tools page.
hdl [Mon, 27 Feb 2006 18:19:33 +0000 (18:19 +0000)]
New table used in overduerules.pl tools page.

16 years agoAdding getletters to Koha.pm :
hdl [Mon, 27 Feb 2006 18:15:41 +0000 (18:15 +0000)]
Adding getletters to Koha.pm :
allow to get a list of letters for a module.

overduerules is a tool relying on letter.pl
It will allow ppl to manage three levels of overdue thanks to a brand new overduenotice script to come out soon.

16 years agouse new Context->Zconn object
kados [Mon, 27 Feb 2006 01:10:14 +0000 (01:10 +0000)]
use new Context->Zconn object

16 years agoRemoving 'our Zconn' from top...
kados [Mon, 27 Feb 2006 01:08:31 +0000 (01:08 +0000)]
Removing 'our Zconn' from top...

16 years agoremoved Zconns, no need for them anymore with new Context.pm setup
kados [Mon, 27 Feb 2006 01:06:30 +0000 (01:06 +0000)]
removed Zconns, no need for them anymore with new Context.pm setup

16 years agoDon't need those $Zconn's after all.
kados [Sun, 26 Feb 2006 00:12:51 +0000 (00:12 +0000)]
Don't need those $Zconn's after all.

16 years agomoving all $Zconn s to z3950_extended_services (currently, nothing
kados [Sun, 26 Feb 2006 00:08:20 +0000 (00:08 +0000)]
moving all $Zconn s to z3950_extended_services (currently, nothing
works).

16 years agominor bugfix with 'commit' option
kados [Sat, 25 Feb 2006 23:40:59 +0000 (23:40 +0000)]
minor bugfix with 'commit' option

16 years agoAdding support for new Zconn object from C4::Context.pm
kados [Sat, 25 Feb 2006 22:51:32 +0000 (22:51 +0000)]
Adding support for new Zconn object from C4::Context.pm

16 years agoChanged to use new Zconn object in Context.pm. Not sure if the Zconn
kados [Sat, 25 Feb 2006 22:47:37 +0000 (22:47 +0000)]
Changed to use new Zconn object in Context.pm. Not sure if the Zconn
should be set within the subroutine or should be passed in via the
script -- Chris, what do you think?

16 years agoAnother purely documentation commit. Just changing formatting to ease
kados [Sat, 25 Feb 2006 22:39:10 +0000 (22:39 +0000)]
Another purely documentation commit. Just changing formatting to ease
readability.

16 years agoadding support for ISBN search in collection.abs
kados [Sat, 25 Feb 2006 22:01:20 +0000 (22:01 +0000)]
adding support for ISBN search in collection.abs

16 years agoA bulkmarcimport.pl that is based on the new Biblio.pm Zebra routines.
kados [Sat, 25 Feb 2006 21:53:48 +0000 (21:53 +0000)]
A bulkmarcimport.pl that is based on the new Biblio.pm Zebra routines.
It now responds to:

-n : the number of records to import.
-commit : the number of records to wait before performing a 'commit' operation

ALSO: IMPORTANT: I took out the char_encoding as this should be handled by
MARC::File::XML now, unless I'm mistaken.

16 years agoPurely documentation change: converted all =head2 entries to use function
kados [Sat, 25 Feb 2006 21:17:20 +0000 (21:17 +0000)]
Purely documentation change: converted all =head2 entries to use function
name as title rather than usage as title

16 years agoFurther cleanup, convering new routines to 4-chars
kados [Sat, 25 Feb 2006 21:02:20 +0000 (21:02 +0000)]
Further cleanup, convering new routines to 4-chars

16 years agoBetter documentation, added warning if serviceType is 'drop' since it's
kados [Sat, 25 Feb 2006 20:49:15 +0000 (20:49 +0000)]
Better documentation, added warning if serviceType is 'drop' since it's
not supported in Zebra.

16 years agoIMPORTANT: Paul, I've removed the decode_char routine because it's no
kados [Sat, 25 Feb 2006 20:30:32 +0000 (20:30 +0000)]
IMPORTANT: Paul, I've removed the decode_char routine because it's no
longer necessary. If we need to convert from MARC-8 for display, we should:

1. use utf-8
2. do it with MARC::Charset

If you still need it, let me know and I'll put it back in.

16 years agocleaning up POD docs, deleting zebra_create as it's no longer used (
kados [Sat, 25 Feb 2006 19:23:01 +0000 (19:23 +0000)]
cleaning up POD docs, deleting zebra_create as it's no longer used (
replaced by z3950_extended_services).

16 years agoreadding some lost subs
kados [Sat, 25 Feb 2006 19:09:59 +0000 (19:09 +0000)]
readding some lost subs

16 years agoEnable shadow registers in zebra.cfg
kados [Sat, 25 Feb 2006 19:00:28 +0000 (19:00 +0000)]
Enable shadow registers in zebra.cfg

16 years agoReverting to last version because the fix I committed breaks tag
kados [Sat, 25 Feb 2006 07:43:49 +0000 (07:43 +0000)]
Reverting to last version because the fix I committed breaks tag
repeatability. Note that there is still a problem with the Koha
MARC editor saving blank tags and subfields in a record!

16 years agoBug fixing : Modifying template adapting for prog template format
hdl [Fri, 24 Feb 2006 13:22:22 +0000 (13:22 +0000)]
Bug fixing : Modifying template adapting for prog template format

16 years agoexport.tmpl was not the good one. :)
hdl [Fri, 24 Feb 2006 12:02:42 +0000 (12:02 +0000)]
export.tmpl was not the good one. :)

16 years agochanging file according to new directory hierarchy
hdl [Fri, 24 Feb 2006 11:55:40 +0000 (11:55 +0000)]
changing file according to new directory hierarchy

16 years agoAdding tools directory template and scripts
hdl [Fri, 24 Feb 2006 11:52:38 +0000 (11:52 +0000)]
Adding tools directory template and scripts
Changing barcodes, export and import and letters directory.
Changing export script name (marc.pl) to export.pl
Changing import script name (breeding.pl) to import.pl

16 years agopruning files from old directory
hdl [Fri, 24 Feb 2006 11:22:37 +0000 (11:22 +0000)]
pruning files from old directory

16 years agoAdding admin template files
hdl [Fri, 24 Feb 2006 11:18:17 +0000 (11:18 +0000)]
Adding admin template files

16 years agochanging parameters template directory to admin
hdl [Fri, 24 Feb 2006 11:15:01 +0000 (11:15 +0000)]
changing parameters template directory to admin

16 years agoUsing 'loggedinusername' variable to populate hidden field user
bob_lyon [Thu, 23 Feb 2006 03:56:09 +0000 (03:56 +0000)]
Using 'loggedinusername' variable to populate hidden field user

16 years agoReplacing all calls to zebra_update with calls to
kados [Wed, 22 Feb 2006 01:02:39 +0000 (01:02 +0000)]
Replacing all calls to zebra_update with calls to
z3950_extended_services. More work coming, but it's
working now.

16 years agoFirst go at a connection object for Zebra. You can now get a
kados [Wed, 22 Feb 2006 00:56:59 +0000 (00:56 +0000)]
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...

16 years agoUsing get_record() from Search.pm
rangi [Tue, 21 Feb 2006 00:12:26 +0000 (00:12 +0000)]
Using get_record() from Search.pm

Not ready for production, its just set to always use the default framework at the moment

16 years agoUsing get_record() from C4::Search now (ie fetching the record from zebra)
rangi [Tue, 21 Feb 2006 00:11:06 +0000 (00:11 +0000)]
Using get_record() from C4::Search now (ie fetching the record from zebra)

16 years agoThis probably will be the same file as the one in unimarc, so perhaps might be best...
rangi [Tue, 21 Feb 2006 00:10:16 +0000 (00:10 +0000)]
This probably will be the same file as the one in unimarc, so perhaps might be best to move them out and just into the zebra dir.
Committing now so its not lost

16 years agoget_record works now
rangi [Tue, 21 Feb 2006 00:08:41 +0000 (00:08 +0000)]
get_record works now

16 years agoadding a link to viewlog.pl (log viewer)
tipaul [Mon, 20 Feb 2006 14:37:47 +0000 (14:37 +0000)]
adding a link to viewlog.pl (log viewer)

16 years agotemplates for log viewer
tipaul [Mon, 20 Feb 2006 14:36:16 +0000 (14:36 +0000)]
templates for log viewer

16 years agotypo
kados [Mon, 20 Feb 2006 14:22:38 +0000 (14:22 +0000)]
typo

16 years agoA new subroutine to handle Z39.50 extended services. You pass it a
kados [Mon, 20 Feb 2006 13:26:11 +0000 (13:26 +0000)]
A new subroutine to handle Z39.50 extended services. You pass it a
connection object, service type, service options, and a record, and
it performs the service and handles any exception found.

16 years agoFix for refresh error from HDL.
thd [Sat, 18 Feb 2006 10:07:29 +0000 (10:07 +0000)]
Fix for refresh error from HDL.

16 years agoforcing utf8 communications between perl & apache
tipaul [Fri, 17 Feb 2006 15:28:55 +0000 (15:28 +0000)]
forcing utf8 communications between perl & apache

16 years agoremoving set names=UTF8, seems useless. Still investigating mysql-perl-utf8
tipaul [Fri, 17 Feb 2006 15:25:59 +0000 (15:25 +0000)]
removing set names=UTF8, seems useless. Still investigating mysql-perl-utf8

16 years agoLittle test set up that lets you type cql in which is passed to zebra
rangi [Thu, 16 Feb 2006 20:51:07 +0000 (20:51 +0000)]
Little test set up that lets you type cql in which is passed to zebra
install search-test.pl on your opac (or the intranet, if intranet youll need to put the tmpl file in the intranet too)

NOT FOR PRODUCTION, purely for testing

16 years agodestroy a connection after we're done -- we really should just have one
kados [Thu, 16 Feb 2006 20:49:56 +0000 (20:49 +0000)]
destroy a connection after we're done -- we really should just have one
connection object and not destroy it until the whole transaction is
finished -- but this will do for now

16 years agoTrying to error trap a little more.
rangi [Thu, 16 Feb 2006 19:47:22 +0000 (19:47 +0000)]
Trying to error trap a little more.

16 years agoQuick fix for functional bug in getMARCsubjects to avoid returning values that
thd [Thu, 16 Feb 2006 03:12:15 +0000 (03:12 +0000)]
Quick fix for functional bug in getMARCsubjects to avoid returning values that
vary between different uses of the same authorised subject heading causing
linked subject searches from the detail view to fail.  Other presentation fixes
within getMARCsubjects.

16 years agoNew MARC21 collection.abs based on marc21.abs
kados [Thu, 16 Feb 2006 00:46:10 +0000 (00:46 +0000)]
New MARC21 collection.abs based on marc21.abs

16 years agofixing broken link
rangi [Wed, 15 Feb 2006 03:16:17 +0000 (03:16 +0000)]
fixing broken link

16 years agoCan now add an item
rangi [Wed, 15 Feb 2006 03:14:53 +0000 (03:14 +0000)]
Can now add an item

16 years agoRemoving reference to acqui.simple
rangi [Wed, 15 Feb 2006 02:20:01 +0000 (02:20 +0000)]
Removing reference to acqui.simple

16 years agoChanging to get the template from the right directory
rangi [Wed, 15 Feb 2006 02:18:28 +0000 (02:18 +0000)]
Changing to get the template from the right directory

16 years agoPutting this in the right place
rangi [Wed, 15 Feb 2006 02:17:56 +0000 (02:17 +0000)]
Putting this in the right place

16 years agoBack to using xml, a much better idea :)
rangi [Tue, 14 Feb 2006 22:56:41 +0000 (22:56 +0000)]
Back to using xml, a much better idea :)

16 years agoFixing zebra.cfg for usmarc
kados [Tue, 14 Feb 2006 22:49:44 +0000 (22:49 +0000)]
Fixing zebra.cfg for usmarc

16 years agoadding some config stuff for usmarc
kados [Tue, 14 Feb 2006 22:49:08 +0000 (22:49 +0000)]
adding some config stuff for usmarc

16 years agoadding a 'use ZOOM' to biblio.pm, needed for non-mod_perl install.
kados [Tue, 14 Feb 2006 21:36:03 +0000 (21:36 +0000)]
adding a 'use ZOOM' to biblio.pm, needed for non-mod_perl install.
also adding diagnostic error if not able to connect to Zebra

16 years agoJust a little missing my
rangi [Tue, 14 Feb 2006 19:53:25 +0000 (19:53 +0000)]
Just a little missing my

Seems to be working great Paul, and I like what you did with zebradb

16 years agoroad to 3.0 : updating a biblio in zebra seems to work. Still working on it, there...
tipaul [Tue, 14 Feb 2006 11:25:22 +0000 (11:25 +0000)]
road to 3.0 : updating a biblio in zebra seems to work. Still working on it, there are probably some bugs !

16 years ago(chris, read carefully)
tipaul [Tue, 14 Feb 2006 11:23:38 +0000 (11:23 +0000)]
(chris, read carefully)
Replacing zebraserver and zebraport by zebradb in koha.conf . The zebra connexion can be done in a single variable "server:port/database". I used this in dirty searchMarc.pm as well as in Biblio.pm. I've replaced your code in Search.pm

16 years agofixing bugs for :
tipaul [Tue, 14 Feb 2006 10:54:02 +0000 (10:54 +0000)]
fixing bugs for :
* search on 2 words "applied chaos"
* retrieve results when there's only 1 answer
(still dirty & to be rewritten by chris, but it's useful for me)

16 years agoWork in progress still, committing for testing
rangi [Tue, 14 Feb 2006 04:00:23 +0000 (04:00 +0000)]
Work in progress still, committing for testing

16 years agoJust a little fix while im testing
rangi [Mon, 13 Feb 2006 23:52:04 +0000 (23:52 +0000)]
Just a little fix while im testing

16 years agoStart of the complete rewrite of Search.pm
rangi [Mon, 13 Feb 2006 21:03:21 +0000 (21:03 +0000)]
Start of the complete rewrite of Search.pm

It just does a simple cql search at the moment, takes a hashref of keyed by variable.
I have introduced 2 new variables to koha.conf
zebraserver and zebraport Ill add to the installer to get these set.
Very very very much a work in progress still. Thanks to paul for getting things up to this point.

16 years agoadding some templates I forgot to commit (module sub menus)
tipaul [Mon, 13 Feb 2006 16:39:33 +0000 (16:39 +0000)]
adding some templates I forgot to commit (module sub menus)

16 years agosome modifs to enable search on old search API with zebra. seems to work, although...
tipaul [Mon, 13 Feb 2006 16:38:29 +0000 (16:38 +0000)]
some modifs to enable search on old search API with zebra. seems to work, although it is 100% dirty code that should be rewritten by someone (chris ?)
I just hacked this to have a working search to continue working on Biblio.pm & catlaoguing

+code cleaning (using biblionumber standard API name)

16 years agoadding detail templates in cvs, in their new catalogue directory
tipaul [Mon, 13 Feb 2006 16:37:57 +0000 (16:37 +0000)]
adding detail templates in cvs, in their new catalogue directory

16 years agocleaning code (useless use C4::)
tipaul [Mon, 13 Feb 2006 16:36:48 +0000 (16:36 +0000)]
cleaning code (useless use C4::)

16 years agosome modifs to enable search on old search API with zebra. seems to work, although...
tipaul [Mon, 13 Feb 2006 16:35:37 +0000 (16:35 +0000)]
some modifs to enable search on old search API with zebra. seems to work, although it is 100% dirty code that should be rewritten by someone (chris ?)
I just hacked this to have a working search to continue working on Biblio.pm & catlaoguing

16 years agofixing some warnings (perl -w should be quiet)
tipaul [Mon, 13 Feb 2006 16:34:26 +0000 (16:34 +0000)]
fixing some warnings (perl -w should be quiet)

16 years agoJust getting rid of some annoying warnings
rangi [Thu, 9 Feb 2006 21:34:51 +0000 (21:34 +0000)]
Just getting rid of some annoying warnings

16 years agoOK, this time it seems to work. The last blocking problem was... a space in
tipaul [Thu, 9 Feb 2006 10:59:34 +0000 (10:59 +0000)]
OK, this time it seems to work. The last blocking problem was... a space in
recordId: (bib1,Identifier-standard) just after the comma. Adam agreed it was a bug, and it should be solved soon. But now we are aware, we can avoid putting the space !

In this commit you have all what is needed to setup a working zebra DB in Unimarc :
* collection.abs is UNIMARC specific and must be rewritten for MARC21, in marc21 directory
* pdf.properties is to be copied unmodified in the marc21 directory (can also be put somewhere else)
* rebuild_zebra.pl is SLOW, but 1 step reindexing tool, using ZOOM
* rebuild_zebra_idx is FAST, but 2 step reindexing tool, and does not use zebra. run it, it will create all biblios XML files in /zebra/biblios directory, then zebraidx update biblios in your zebra directory
* zebra.cfg is the zebra config file ;-)
* test_cql2rpn.pl is a script that will query the database and show the results. Works for me, just change the query at the beginning to get answers you expect.

What has to be done :
* benchmarking : it seems the zebraidx update is faster than lightning (400biblios/sec : 10 000biblios in 25seconds), while ZOOM indexing is slow (something like 25biblios/second) More benchmarking could be done.
* completing collection.abs for UNIMARC. I'll take care of it.
* modifying Biblio.pm to use ZOOM instead of the "zebraidx through exec" running actually. I'll take care of it also.
* modify the search API & tools & screens. I'll let the ball to someone else (chris ?) for this. I agree SearchMarc.pm can be dropped and replaced by something else (maybe a new-and-clean Search.pm package)

16 years agofixing links from acqui.simple to cataloguing
rangi [Thu, 9 Feb 2006 03:26:03 +0000 (03:26 +0000)]
fixing links from acqui.simple to cataloguing

16 years agoChanging to reflect the fact acqui.simple is now cataloguing
rangi [Thu, 9 Feb 2006 03:20:38 +0000 (03:20 +0000)]
Changing to reflect the fact acqui.simple is now cataloguing

16 years agoFixing broken code to show list of branches
rangi [Thu, 9 Feb 2006 03:12:23 +0000 (03:12 +0000)]
Fixing broken code to show list of branches

16 years agoHmm there seem to be quite a few subroutines twice in this module....
rangi [Thu, 9 Feb 2006 01:56:20 +0000 (01:56 +0000)]
Hmm there seem to be quite a few subroutines twice in this module....

Paul could you take a look and remove the ones that shouldnt be there please

16 years agoCleaning up some unessecary my statements
rangi [Thu, 9 Feb 2006 01:52:14 +0000 (01:52 +0000)]
Cleaning up some unessecary my statements

16 years agoCommenting out a line that was preventing the script executing
rangi [Thu, 9 Feb 2006 01:26:16 +0000 (01:26 +0000)]
Commenting out a line that was preventing the script executing

16 years agoupdating DB :
tipaul [Wed, 25 Jan 2006 15:16:06 +0000 (15:16 +0000)]
updating DB :
* removing useless tables
* adding useful indexes
* altering some columns definitions
* The goal being to have updater working fine for foreign keys.

For me it's done, let me know if it works for you. You can see an updated schema of the DB (with constraints) on the wiki

16 years agoDB improvements : adding foreign keys on some tables. partial stuff done.
tipaul [Tue, 24 Jan 2006 17:57:17 +0000 (17:57 +0000)]
DB improvements : adding foreign keys on some tables. partial stuff done.

16 years agojust adding menus to the top
tipaul [Fri, 20 Jan 2006 16:12:49 +0000 (16:12 +0000)]
just adding menus to the top

16 years agoupdating prog templates for acqui
tipaul [Fri, 20 Jan 2006 16:04:42 +0000 (16:04 +0000)]
updating prog templates for acqui

16 years agomoving serials scripts to serials directory
tipaul [Thu, 19 Jan 2006 12:50:07 +0000 (12:50 +0000)]
moving serials scripts to serials directory

16 years agomoving cataloguing scripts to a cataloguing directory (more logic than acqui.simple...
tipaul [Thu, 19 Jan 2006 12:48:00 +0000 (12:48 +0000)]
moving cataloguing scripts to a cataloguing directory (more logic than acqui.simple !!!) & updating prog templates

16 years agotemplating serials & moving them to a serials directory, more self-explanatory (bull...
tipaul [Thu, 19 Jan 2006 12:46:58 +0000 (12:46 +0000)]
templating serials & moving them to a serials directory, more self-explanatory (bull being french)

16 years agoprog templates : completed, fixed & xhtml valid
tipaul [Wed, 18 Jan 2006 17:23:32 +0000 (17:23 +0000)]
prog templates : completed, fixed & xhtml valid

16 years agoprog templates : completed, fixed & xhtml valid
tipaul [Wed, 18 Jan 2006 15:38:17 +0000 (15:38 +0000)]
prog templates : completed, fixed & xhtml valid

16 years agobugfixes xhtml & prog templates
tipaul [Wed, 18 Jan 2006 14:52:07 +0000 (14:52 +0000)]
bugfixes xhtml & prog templates

16 years agoremoving unused scripts
tipaul [Tue, 17 Jan 2006 16:58:36 +0000 (16:58 +0000)]
removing unused scripts

16 years agomoving stats.pl to reports directory
tipaul [Tue, 17 Jan 2006 16:58:07 +0000 (16:58 +0000)]
moving stats.pl to reports directory

16 years agoremoving unused script
tipaul [Tue, 17 Jan 2006 16:54:54 +0000 (16:54 +0000)]
removing unused script