Commit graph

886 commits

Author SHA1 Message Date
rangi
71ed3a21f1 Adding commits, so that changes stick 2006-03-13 23:12:44 +00:00
kados
5a2aa51d38 syncing MARChtml2xml wtih rel_2_2, removing unused MARChtml2marc 2006-03-10 02:40:38 +00:00
kados
8de246aa37 Hopefully a fix for hdl's accented characters not working. NOTE: BY
DEFAULT, MARC::File::XML will turn UTF-8 into MARC-8 in the new_as_xml
method ... to keep it as UTF-8 you must specify a second parameter 'UTF-8'
2006-03-08 18:12:42 +00:00
kados
c720216a89 adding support for 'delete' function 2006-03-07 22:00:18 +00:00
rangi
7748a1cc02 Starting work on deletes 2006-03-07 21:54:47 +00:00
rangi
4218fa64e8 Barcode search 2006-03-07 20:32:52 +00:00
plg
9d32aaccfd typo fixed: a ";" was missing at the end of Zebra connection retrieving in
C4::Search->get_record
2006-03-06 15:39:02 +00:00
tipaul
bbf7c9667e commit for holidays and news management.
(some forgotten files)
2006-03-06 12:43:36 +00:00
rangi
b28675d959 Adding a few more search options 2006-03-06 04:58:16 +00:00
rangi
c17b17f957 Tweaking searching 2006-03-06 04:31:18 +00:00
kados
531fb1fdcd Adding fixes to MARC editor to HEAD 2006-03-06 02:45:41 +00:00
hdl
7280737d59 Bug fixing : a line missed a comment sign. 2006-03-03 17:25:01 +00:00
kados
32d6145a3c Remove the search that tests the Zconn -- warning, still no fault
tollerance
2006-03-03 16:45:36 +00:00
kados
ee4e844ec0 rollback ... by accident I committed a rel_2_2 Biblio.pm 2006-03-01 03:07:54 +00:00
kados
1ceb74126e MARChtml2xml for improved MARC editor 2006-03-01 02:13:00 +00:00
hdl
e139654acb 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.
2006-02-27 18:15:41 +00:00
kados
a3ff047944 use new Context->Zconn object 2006-02-27 01:10:14 +00:00
kados
ea3034363c Removing 'our Zconn' from top... 2006-02-27 01:08:31 +00:00
kados
b9abeb3516 moving all $Zconn s to z3950_extended_services (currently, nothing
works).
2006-02-26 00:08:20 +00:00
kados
13388132cd 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?
2006-02-25 22:47:37 +00:00
kados
43ba997935 Another purely documentation commit. Just changing formatting to ease
readability.
2006-02-25 22:39:10 +00:00
kados
2d0d17e738 Purely documentation change: converted all =head2 entries to use function
name as title rather than usage as title
2006-02-25 21:17:20 +00:00
kados
52451b270a Further cleanup, convering new routines to 4-chars 2006-02-25 21:02:20 +00:00
kados
6a49fb64ab Better documentation, added warning if serviceType is 'drop' since it's
not supported in Zebra.
2006-02-25 20:49:15 +00:00
kados
e968f2e957 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.
2006-02-25 20:30:32 +00:00
kados
915304a8d3 cleaning up POD docs, deleting zebra_create as it's no longer used (
replaced by z3950_extended_services).
2006-02-25 19:23:01 +00:00
kados
14a804b10f readding some lost subs 2006-02-25 19:09:59 +00:00
kados
6eef63f6eb 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!
2006-02-25 07:43:49 +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
6edaf7bbe7 get_record works now 2006-02-21 00:08:41 +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
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
rangi
24a52ae566 Back to using xml, a much better idea :) 2006-02-14 22:56:41 +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
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
rangi
bc51b60c26 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
2006-02-09 01:56:20 +00:00
rangi
f08260c860 Cleaning up some unessecary my statements 2006-02-09 01:52:14 +00:00
tipaul
48c46ee5b7 removing useless script 2006-01-17 16:11:55 +00:00
tipaul
6b84ddf24c removing unused package 2006-01-17 16:09:50 +00:00
tipaul
ae485ffef0 removing useless package & script 2006-01-17 16:08:25 +00:00
tipaul
59c9e65720 removing useless package 2006-01-17 16:06:54 +00:00
tipaul
296d6e3c41 removing useless sub 2006-01-17 16:06:43 +00:00
tipaul
4d5b2a4ced adding a XMLgetbiblio in Biblio.pm (1st draft, to use with zebra) 2006-01-10 17:01:29 +00:00
tipaul
d5938493d7 synch'ing head and rel_2_2 (from 2.2.5, including npl templates)
Seems not to break too many things, but i'm probably wrong here.
at least, new features/bugfixes from 2.2.5 are here (tested on some features on my head local copy)

- removing useless directories (koha-html and koha-plucene)
2006-01-06 16:39:37 +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
thd
09d82dc0aa Reverse array filled with elements from repeated subfields
to avoid last to first concatenation of elements in Koha DB.-
2005-12-12 14:25:51 +00:00
tipaul
af8f19ca56 code cleaning : removing useless package (everything needed copied in Accounts2.pm) 2005-10-27 12:10:00 +00:00
tipaul
d9be1036aa new features for serial module :
- the last 5 issues are now shown, and their status can be changed (but not reverted to "waited", as there can be only one "waited")
- the library can create a "distribution list". this paper contains a list of borrowers (selected from the borrower list, or manually entered), and print it for a given issue. once printed, the sheet can be put on the issue and distributed to every reader on the list (one by one).
2005-10-27 12:08:44 +00:00
tipaul
73ef51958f road to normalization : changing API = removing getbranchname, replaced by getbranchdetail (should be getbranch, but this sub already exists and I don't understand what it does...) 2005-10-27 12:05:58 +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
61c133ca31 code cleaning : removing useless package (everything needed copied in Accounts2.pm) 2005-10-26 08:29:28 +00:00
joshferraro
aa14e3e2d1 Previously there was no check to make sure that an issn number
actually existed; so if there was no isbn, and the issn was blank,
the item would be assigned a random biblionumber and the breeding farm
would report that the item already exists in the catalog (even though
it didn't). This fix adds a check to determine whether the imported
record has an issn before assigning a matching biblionumber.
2005-09-30 18:58:25 +00:00
rangi
2dbb13abd4 Marks the item borrowed now on the items table 2005-09-22 23:30:37 +00:00
tipaul
3a3f9bbb47 see mail on koha-devel : code cleaning on Search.pm + normalizing API + use of biblionumber everywhere (instead of bn, biblio, ...) 2005-09-22 15:31:05 +00:00
tipaul
e82eca42c9 see mail on koha-devel : code cleaning on Search.pm + normalizing API + use of biblionumber everywhere (instead of bn, biblio, ...) 2005-09-22 10:01:45 +00:00
rangi
af49cab023 Fixing typo channing ' to " so the title is stored in accountlines not $title 2005-09-06 05:34:52 +00:00
tipaul
830ba65a20 moving NewBorrowerNumber sub to Members package 2005-09-05 19:27:21 +00:00
tipaul
b897d55f23 moving findguarantor sub to Members package 2005-09-05 19:26:08 +00:00
tipaul
af0ff4419f removing findguarantee, that is also in Members.pm 2005-09-05 19:24:38 +00:00
rangi
4148d0ace6 Modified module to no longer use Date::Manip, not as powerful, but a lot faster. 2005-09-03 00:54:23 +00:00
rangi
5d816bf4ba This is currently a copy of C4::Date
But C4::Date uses Date::Manip, which in the authors own words

"If you look in CPAN, you'll find that there are a number of Date and Time packages.  Is Date::Manip the one you should be using?  In my
opinion, the answer is no most of the time."

He goes on to say, that because Date::Manip is powerful and is written fully in perl its also slow.
Now Circulation needs to be as fast as possible. And C4::Date isnt actually doing anything particularly tricky,
So im working on C4::Circulation::Date to be a replacement, in an attempt to win some speed
2005-09-03 00:35:47 +00:00
rangi
9796fc3b87 A work in progress still.
This module is for dealing with user submitted reviews of items
Currently it allows (with some scripts) a user to review any item on their reading record.
The review is marked unvetted, and a librarian must vette and approve the review before it can show to the public

The scripts to add/edit a review, and to display them for the opac are done.
The script to display a list of reviews waiting vetting for the librarians has also been done.
2005-09-03 00:05:40 +00:00
tipaul
1e6398ed4e continuing the work to move to zebra. Begin of work for MARC=OFF support.
IMPORTANT NOTE : the MARCkoha2marc sub API has been modified. Instead of biblionumber & biblioitemnumber, it now gets a hash.
The sub is used only in Biblio.pm, so the API change should be harmless (except for me, but i'm aware ;-) )
2005-09-02 14:34:14 +00:00
tipaul
2ba136efd2 removing branches sub, that should be in Koha.pm package (generic sub) 2005-09-02 14:30:28 +00:00
tipaul
07ea313528 new feature : image for itemtypes.
* run updater/updatedatabase to create imageurl field in itemtypes.
* go to Koha >> parameters >> itemtypes >> modify (or add) an itemtype. You will see around 20 nice images to choose between (thanks to owen). If you prefer your own image, you also can type a complete url (http://www.myserver.lib/path/to/my/image.gif)
* go to OPAC, and search something. In the result list, you now have the picture instead of the text itemtype.
2005-09-02 14:28:38 +00:00
rangi
d2b2eb603b Fix for loanlength to make the default length work properly 2005-08-31 23:11:19 +00:00
rangi
a39bfaf75d fixing unfilledreserves 2005-08-25 23:15:34 +00:00
hdl
2dbb086c46 Adding a note field in serial table.
This will allow librarian to mention a note on a peculiar waiting serial number.
2005-08-24 08:49:03 +00:00
szrj1m
a70de3cbde &getcredits now returning 'BAY' and 'WORK' type credits too. 2005-08-22 01:05:49 +00:00
szrj1m
621e60b86e Added &getcredits routine. 2005-08-19 00:38:33 +00:00
szrj1m
41d7e8a44c UpdateStats is now being passed $accountno. 2005-08-18 21:15:20 +00:00
tipaul
4fa499f055 removing itemcount sub, that is already in Biblio.pm 2005-08-12 13:52:28 +00:00
tipaul
ba3339c4e8 searching with the zebra.
replacing 2.2 marc search by a Net::z3950 search (waiting for Perl/Zoom)
works only for title/author/isbn search, any other search is considered as 'keywork search' (=anywhere
2005-08-12 13:51:48 +00:00
tipaul
56e5773f9d removing useless sub declarations 2005-08-12 13:50:31 +00:00
tipaul
35e4cf543c was a test for inverted indexes. Useless we have choosen zebra 2005-08-12 13:39:51 +00:00
tipaul
0275f18980 removing useless package 2005-08-12 13:39:04 +00:00
tipaul
9a508fe3df Playing with the zebra...
* go to koha cvs home directory
* in misc/zebra there is a unimarc directory. I suggest that marc21 libraries create a marc21 directory
* put your zebra.cfg files here & create your database.
* from koha cvs home directory, ln -s misc/zebra/marc21 zebra (I mean create a symbolic link to YOUR zebra directory)
* now, everytime you add/modify a biblio/item your zebra DB is updated correctly.

NOTE :
* this uses a system call in perl. CPU consumming, but we are waiting for indexdata Perl/zoom
* deletion still not work
* UNIMARC zebra config files are provided in misc/zebra/unimarc directory. The most important line being :
in zebra.cfg :
recordId: (bib1,Local-number)
storeKeys:1

in .abs file :
elm 090            Local-number            -
elm 090/?          Local-number            -
elm 090/?/9        Local-number            !:w

(090$9 being the field mapped to biblio.biblionumber in Koha)
2005-08-11 16:12:47 +00:00
tipaul
19e29e9245 * POD documenting
* removing useless subs
* removing some subs that are also elsewhere
* renaming all OLDxxx subs to REALxxx subs (should not change anything, as OLDxxx, as well as REAL, are supposed to be for Biblio.pm internal use only)
2005-08-11 14:37:32 +00:00
tipaul
07a3e4c8fb just removing useless subs (a lot !!!) for code cleaning 2005-08-11 09:13:28 +00:00
tipaul
6f16f25d3a Ok guys, this time, it seems that item add and modif begin working as expected...
Still a lot of bugs to fix, of course
2005-08-11 09:00:07 +00:00
hdl
18a6bad8ab Minor display changes.
Now displaying publicationyear.
And biblio information in One cell.
2005-08-10 14:22:48 +00:00
hdl
27c2d1a72e Bug fixing on query getlateorders.
Adding subtotal.
Changing information display orders.
next work is pretty printing.
2005-08-10 10:22:57 +00:00
tipaul
139d01cf13 continuing the road to zebra :
- the biblio add begins to work.
- the biblio modif begins to work.

(still without doing anything on zebra)
(no new change in updatedatabase)
2005-08-10 10:21:14 +00:00
hdl
3a48682514 Adding lateorders page.
It provides the user with the list of items that have been ordered for a delay and are NOT yet received.
The user may filter by supplier or branch or delay.
This page is still under developpement.
Goal is to make it ready to print to reorder the books.

2 new functions have been written in Acquisition module :
getsupplierlistwithlateorders
getlateorders

branches has been modified to manage branch independancy.
Request for comment.
STILL UNDER developpment
2005-08-09 14:13:27 +00:00