Commit graph

4098 commits

Author SHA1 Message Date
hdl
3a2ce737dc export.tmpl was not the good one. :) 2006-02-24 12:02:42 +00:00
hdl
77ce82785e changing file according to new directory hierarchy 2006-02-24 11:55:40 +00:00
hdl
833e6bf5b6 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
2006-02-24 11:52:38 +00:00
hdl
8bdca884aa pruning files from old directory 2006-02-24 11:22:37 +00:00
hdl
d8af689999 Adding admin template files 2006-02-24 11:18:17 +00:00
hdl
b810e2d71e changing parameters template directory to admin 2006-02-24 11:15:01 +00:00
bob_lyon
6c5769a5eb Using 'loggedinusername' variable to populate hidden field user 2006-02-23 03:56:09 +00:00
kados
af22515d9d Replacing all calls to zebra_update with calls to
z3950_extended_services. More work coming, but it's
working now.
2006-02-22 01:02:39 +00:00
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
rangi
d7b8437e1b Using get_record() from Search.pm
Not ready for production, its just set to always use the default framework at the moment
2006-02-21 00:12:26 +00:00
rangi
f4ab73fff2 Using get_record() from C4::Search now (ie fetching the record from zebra) 2006-02-21 00:11:06 +00:00
rangi
e18c22dd80 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
2006-02-21 00:10:16 +00:00
rangi
6edaf7bbe7 get_record works now 2006-02-21 00:08:41 +00:00
tipaul
cba7e167c8 adding a link to viewlog.pl (log viewer) 2006-02-20 14:37:47 +00:00
tipaul
f54229407c templates for log viewer 2006-02-20 14:36:16 +00:00
kados
61cf07ba94 typo 2006-02-20 14:22:38 +00:00
kados
25eb0edc78 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.
2006-02-20 13:26:11 +00:00
thd
761c2df358 Fix for refresh error from HDL. 2006-02-18 10:07:29 +00:00
tipaul
6a3baa80da forcing utf8 communications between perl & apache 2006-02-17 15:28:55 +00:00
tipaul
12aad23e9f removing set names=UTF8, seems useless. Still investigating mysql-perl-utf8 2006-02-17 15:25:59 +00:00
rangi
3d5d00b463 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
2006-02-16 20:51:07 +00:00
kados
88d6a12e17 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
2006-02-16 20:49:56 +00:00
rangi
5eed2d6605 Trying to error trap a little more. 2006-02-16 19:47:22 +00:00
thd
7bf048e8a8 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.
2006-02-16 03:12:15 +00:00
kados
a1d59e6633 New MARC21 collection.abs based on marc21.abs 2006-02-16 00:46:10 +00:00
rangi
810cbd36de fixing broken link 2006-02-15 03:16:17 +00:00
rangi
3f042af791 Can now add an item 2006-02-15 03:14:53 +00:00
rangi
614708756f Removing reference to acqui.simple 2006-02-15 02:20:01 +00:00
rangi
3cb9cf08a3 Changing to get the template from the right directory 2006-02-15 02:18:28 +00:00
rangi
1d5d73557a Putting this in the right place 2006-02-15 02:17:56 +00:00
rangi
24a52ae566 Back to using xml, a much better idea :) 2006-02-14 22:56:41 +00:00
kados
1f2014e73f Fixing zebra.cfg for usmarc 2006-02-14 22:49:44 +00:00
kados
2017a41f0b adding some config stuff for usmarc 2006-02-14 22:49:08 +00:00
kados
27cf7a36ba adding a 'use ZOOM' to biblio.pm, needed for non-mod_perl install.
also adding diagnostic error if not able to connect to Zebra
2006-02-14 21:36:03 +00:00
rangi
318ac26cf6 Just a little missing my
Seems to be working great Paul, and I like what you did with zebradb
2006-02-14 19:53:25 +00:00
tipaul
ff0508c4d2 road to 3.0 : updating a biblio in zebra seems to work. Still working on it, there are probably some bugs ! 2006-02-14 11:25:22 +00:00
tipaul
b69a6736cb (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
2006-02-14 11:23:38 +00:00
tipaul
e16ded6012 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)
2006-02-14 10:54:02 +00:00
rangi
cdfb9d9acb Work in progress still, committing for testing 2006-02-14 04:00:23 +00:00
rangi
85fba5d72f Just a little fix while im testing 2006-02-13 23:52:04 +00:00
rangi
c2debcf509 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.
2006-02-13 21:03:21 +00:00
tipaul
bcbcb9a57c adding some templates I forgot to commit (module sub menus) 2006-02-13 16:39:33 +00:00
tipaul
56a55bd4cb 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)
2006-02-13 16:38:29 +00:00
tipaul
804d630bd1 adding detail templates in cvs, in their new catalogue directory 2006-02-13 16:37:57 +00:00
tipaul
a4d86bfa6c cleaning code (useless use C4::) 2006-02-13 16:36:48 +00:00
tipaul
040dbceb73 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
2006-02-13 16:35:37 +00:00
tipaul
685f77f4c2 fixing some warnings (perl -w should be quiet) 2006-02-13 16:34:26 +00:00
rangi
89eff456a2 Just getting rid of some annoying warnings 2006-02-09 21:34:51 +00:00
tipaul
f74823bf1b 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)
2006-02-09 10:59:34 +00:00
rangi
fd31a3c40a fixing links from acqui.simple to cataloguing 2006-02-09 03:26:03 +00:00