Commit graph

1023 commits

Author SHA1 Message Date
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
tipaul
4cf30123a4 1st commit to go to zebra.
don't update your cvs if you want to have a working head...

this commit contains :
* updater/updatedatabase : get rid with marc_* tables, but DON'T remove them. As a lot of things uses them, it would not be a good idea for instance to drop them. If you really want to play, you can rename them to test head without them but being still able to reintroduce them...
* Biblio.pm : modify MARCgetbiblio to find the raw marc record in biblioitems.marc field, not from marc_subfield_table, modify MARCfindframeworkcode to find frameworkcode in biblio.frameworkcode, modify some other subs to use biblio.biblionumber & get rid of bibid.
* other files : get rid of bibid and use biblionumber instead.

What is broken :
* does not do anything on zebra yet.
* if you rename marc_subfield_table, you can't search anymore.
* you can view a biblio & bibliodetails, go to MARC editor, but NOT save any modif.
* don't try to add a biblio, it would add data poorly... (don't try to delete either, it may work, but that would be a surprise ;-) )

IMPORTANT NOTE : you need MARC::XML package (http://search.cpan.org/~esummers/MARC-XML-0.7/lib/MARC/File/XML.pm), that requires a recent version of MARC::Record
Updatedatabase stores the iso2709 data in biblioitems.marc field & an xml version in biblioitems.marcxml Not sure we will keep it when releasing the stable version, but I think it's a good idea to have something readable in sql, at least for development stage.
2005-08-09 14:10:27 +00:00
tipaul
190d05b00e minor (graphic) changes in log viewer 2005-08-08 09:11:54 +00:00
hdl
787c184dc7 Code necessary for IndependantBranches parameter to work. Should have been committed sooner...
Modify Histsearch and getorders to respect branches of librarian.
2005-08-08 08:42:32 +00:00
tipaul
3897417124 adding some fields available for Letters 2005-08-05 15:50:46 +00:00
tipaul
735487d1e6 removing my own adress as "From" ;-) 2005-08-05 14:48:52 +00:00
tipaul
791e786944 2 new features :
- a mail is sent everytime an issue if recieved in serial module. The mail is sent to all borrowers that have put an alert on the subscription (remember that you can put an alert only if the librarian have defined a "letter" as mail to send)
- the librarian can see, for a given subscription, who has put an alert.
2005-08-05 14:47:23 +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
e218294c2c fixing a bug in synch 2005-08-04 14:35:54 +00:00
tipaul
2cd0bc1da8 synch'ing 2.2 and head 2005-08-04 13:27:37 +00:00
tipaul
df6c6bcada Letters / alert system, continuing...
* adding a package Letters.pm, that manages Letters & alerts.
* adding feature : it's now possible to define a "letter" for any subscription created. If a letter is defined, users in OPAC can put an alert on the subscription. When an issue is marked "arrived", all users in the alert will recieve a mail (as defined in the "letter"). This last part (= send the mail) is not yet developped. (Should be done this week)
* adding feature : it's now possible to "put to an alert" in OPAC, for any serial subscription. The alert is stored in a new table, called alert. An alert can be put only if the librarian has activated them in subscription (and they activate it just by choosing a "letter" to sent to borrowers on new issues)
* adding feature : librarian can see in borrower detail which alerts they have put, and a user can see in opac-detail which alert they have put too.
Note that the system should be generic enough to manage any type of alert.
I plan to extend it soon to virtual shelves : a borrower will be able to put an alert on a virtual shelf, to be warned when something is changed in the virtual shelf (mail being sent once a day by cron, or manually by the shelf owner. Anyway, a mail won't be sent on every change, users would be spammed by Koha ;-) )
2005-08-04 08:54:54 +00:00
hdl
0960f3245c Removing some unuseful warns.
Adding an error management for memberentry : Branch.
2005-07-29 16:14:37 +00:00
hdl
1b11e86c9e Some Bug Fixes 2005-07-28 15:40:52 +00:00
tipaul
3df7bdc5d3 For instance, the return date does not rely on the borrower expiration date. A systempref will be added in Koha, to modify return date calculation schema :
* ReturnBeforeExpiry = yes => return date can't be after expiry date
* ReturnBeforeExpiry = no  => return date can be after expiry date
2005-07-28 08:38:15 +00:00
hdl
5d22c28ea2 Implementing Independancy Branches management :
- Trying to get a basket not owned by so of his own branch leads to mainpage.
- Lists onlys ths baskets owned by someon of user's brach.

Auth.pm now sends a cookie with userenv informations.
2005-07-28 07:52:02 +00:00
hdl
7bd7c514e4 Adding branch Independancy support for searchsugestion. 2005-07-26 17:01:11 +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
hdl
552d398bf7 Adding page to display log views.
can be called by admin/viewlog.pl
Works with C4/Log.pm
uses action_logs table
2005-07-20 16:09:03 +00:00
hdl
e4a19baab6 Adding an object field to action_logs.
+ Minor Correction to updatedatabase
Changing Activate_Log from choice to YesNo Variable.
2005-07-19 16:48:15 +00:00
slef
f0fefb2ec0 Add start of 2.3 installer. Remove obsolete? files conflicting with 2.3 installer 2005-07-18 16:38:57 +00:00
hdl
bec1be7090 Adding Log Facility.
Needs Two Update in database...
On more table (action_logs)
And One more syspref Activate_Log, with On|Off values.
Maintainance has been sweeped of previous Log functions
addbiblio.pl contains a sample of code using Log.pm
To be generalized to Authorities, acquisitions, members soon.
2005-07-15 16:10:31 +00:00
hdl
ec94689218 Adding a log facility for actions watching.
Code to be widely used in order to report data modifications.
2005-07-14 09:53:10 +00:00
hdl
2950574dd6 Adding branch specific display to budgets and selection.
Be warned that to be able to select a budget which is not from patron's Branch, you should have a '' Branch information.
2005-07-14 09:13:24 +00:00
hdl
979940ecba Modifying branch Selection : Now Superlibrarians are always able to see ALL branches budget, not simple librarians. 2005-07-12 13:59:38 +00:00
genjimoto
91fe8eb8e0 New code making a search not needing to use tables not already used in searching.. doesn't take longer than normal. Achieved via new parameter in Catalogsearch called $extratables. 2005-06-25 05:35:29 +00:00
hdl
02c6eacdb7 Adding scrolling list for sort1 and sort2 2005-06-22 09:36:24 +00:00
tipaul
6b0ee5525b synch'ing 2.2 and head 2005-06-20 14:10:00 +00:00
hdl
27ce1d1c23 Detailing the three latest issues on OPAC for serials 2005-06-17 13:44:25 +00:00
hdl
b7946b72e2 Adding 2 status to serial issues :
- delete : to delete the current issue
	- not issued : to distinguish missing from not issued serial number.
2005-06-16 19:10:09 +00:00
hdl
7fd0a58305 Displaying dashed isbn. 2005-06-15 16:09:42 +00:00
hdl
1d4d3bdaef Deleting joined tables without condition.
Issues, reserves, items.
Major Bug fixed : Catalogsearch would work no more.
2005-06-15 13:21:22 +00:00
tipaul
33112dda50 adding $b to mainentry (in UNIMARC, for personal names, $a is the surname, $b is the firstname) 2005-06-07 10:00:47 +00:00
rangi
0c376c1c03 Fix for a bug in full acquisitions basket.pl
Ordernumber not showing
2005-06-06 23:29:36 +00:00
gmccullagh
dfb739be5a two new files
SearchBiblio.pm forked from SearchMarc.pm
  opac-search-biblio.pl forked from opac-search.pl (just change module)
an attempt at a new search using FULLTEXT indexes.
NB: Boolean won't work without MySQL >v4.0
NNB: Will be slow without indexes added on Biblio table as follows:
  ALTER TABLE biblio ADD FULLTEXT (author,title,unititle,seriestitle);
Only searching on "Any word" field just now.
more to come.
2005-06-03 17:01:53 +00:00
genjimoto
09aec48554 Added necessary tables for search for availablity feature into Catalogsearch. Someone needs to speed it up somehow. 2005-06-03 03:58:26 +00:00
genjimoto
8e62940ba0 New Feature: catalogsearch() has a new parameter, $sqlstring. A developer puts into it whatever they want to tack onto the end of the where statement. See usage in opac-search.pl 2005-06-01 21:18:39 +00:00
genjimoto
a54fa6ac52 patch from Genji (Waylon R.) to update subjects in MARC tables when systempref has MARC=OFF 2005-06-01 20:43:58 +00:00
tipaul
e2d56f0f49 some fixes & improvements for dictionnary search in librarian interface 2005-06-01 12:51:02 +00:00
tipaul
41c209a4bd proof of concept for inverted index tables for search
how it works :
* create the table marc_Tword with the following structure :
CREATE TABLE `marc_Tword` (
  `word` varchar(80) NOT NULL default '',
  `usedin` text NOT NULL,
  `tagsubfield` varchar(4) NOT NULL default '',
  PRIMARY KEY  (`word`,`tagsubfield`)
) TYPE=MyISAM;
* open a console & type export PERL5LIB & export KOHA_CONF as usual.
* fill this table with misc/build_marc_Tword.pl. Warning, this script uses a very very consumming but very fast method to fill the table : it does everything in memory, then write everything. Another method is provided (& commented), but it's 100x times slower (really !)
* open opac-search.pl and replace use C4::SearchMarc; by use C4::SearchMarcTest; as the API hasn't changed, it will work immediatly.
* go to opac-search (advanced search) & search whatever you want. Should work fine.

LIMITS :
* build_marc_Tword has problem with extended chars (accented ones mainly). So don't be afraid if you get sql errors. They are not a problem for a POC
* search works always order by title, whatever you choose.
* search works only search WORDA and WOARDB, not yet WORDA or WORDB or WORDA except WORDB.
2005-05-27 09:30:23 +00:00
rangi
18b2cfe08a Removing old print statement 2005-05-15 04:35:36 +00:00
rangi
0edd65bfc8 More little changes to remove warns 2005-05-15 04:34:09 +00:00
rangi
abf3b05898 Another little error that was throwing annoying warns 2005-05-14 22:26:07 +00:00
rangi
1e1929be43 Fixing a line that was throwing up warnings when running the script with -w 2005-05-14 22:20:17 +00:00
rangi
7aa3844555 Commenting out warn call
Im working on a curses circulation module, and this warn was smearing output
to the screen.
2005-05-14 22:05:44 +00:00
tipaul
369527637b synch'ing 2.2 and head 2005-05-04 15:39:07 +00:00
hdl
a65bbe2598 adding Marc Record to authoritysearch report 2005-05-04 14:18:39 +00:00
joshferraro
47e3d8667b Fixes bug 970: renewing book from issues screen. 2005-05-03 19:39:20 +00:00
doxulting
61b81d56bf The search query was returning all records when was empty 2005-04-15 14:31:51 +00:00
hdl
14a0c6c133 Scanning every the Subfields of auth_tag_to_report for FindDuplicate 2005-04-05 17:07:46 +00:00
hdl
b605f4d26a Searching for double entries when adding a new authority. 2005-04-05 15:23:40 +00:00
hdl
4ff9cae64b Adding double authority search before creating a new authority 2005-04-05 09:58:47 +00:00
doxulting
b9a8342843 New param for the template in order to show only allowed links to user (In parameters screen only right now) 2005-03-23 09:25:20 +00:00
tipaul
4a8159b457 oups, sorry, synch'ing badly (dropping a doXulting improvement : selecting either desc or asc order) 2005-03-07 09:09:03 +00:00
tipaul
1923629300 synch'ing with 2.2 2005-03-07 08:55:29 +00:00
doxulting
ec62b5e32a Added a param to catalogsearch to allow selection of order (ASC or DESC) 2005-03-03 09:32:04 +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
slef
9324f8683a Small quoting fix to let fine calculation work. 2005-03-01 03:08:00 +00:00
joshferraro
34a1079256 fix for bug 937 2005-02-22 22:40:15 +00:00
joshferraro
86197b08b8 Fix for bug 920. The problem was that getMARCnotes had the variable set to be the same as the
loop name.
2005-02-22 22:38:21 +00:00
joshferraro
c24f2bdb6b Added some minimal docs to Amazon.pm 2005-01-25 17:23:33 +00:00
joshferraro
18140e04dc The Amazon module allows libraries to deliver amazon content to the opac 2005-01-25 16:53:28 +00:00
tipaul
5edf04fd6b improvement of speed for bulkmarcimport.
A sub had been forgotten to use the C4::Context->marcfromkohafield array, that caches DB datas.
this is only a little improvement for normal DB modif, but almost x2 the speed of bulkmarcimport... from 6records/seconds to more than 10.
2005-01-06 14:32:17 +00:00
tipaul
cb32ef4fc1 adding "opacstylesheet" systempreference.
if this parameter is defined, the url is used instead of the default one.
So, you can have your own stylesheet somewhere, and use it instead of the official Koha one.
2005-01-03 10:58:46 +00:00
tipaul
5aa60ee667 * bugfix for the search on a MARC detail, when you clic on the magnifying glass (caused an internal server error)
* partial support of the "linkage" MARC feature : if you enter a "link" on a MARC subfield, the magnifying glass won't search on the field, but on the linked field. I agree it's a partial support. Will be improved, but I need to investigate MARC21 & UNIMARC diffs on this topic.
2005-01-03 10:48:33 +00:00
tipaul
4510951cfc Minor changes in summary "exploding" (the 3 digits AFTER the subfield were not on the right place). 2004-12-23 09:48:11 +00:00
tipaul
f72a2ceb5f adding bookshelf features :
* create bookshelf on the fly
* modify a bookshelf name & status
2004-12-16 11:30:57 +00:00
tipaul
0d8e203523 adding bookshelf features :
* create bookshelf on the fly
* modify a bookshelf (this being not finished, will commit the rest soon)
2004-12-15 17:28:22 +00:00
tipaul
52a123a1a4 fix for :
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=858

* added a button to cancel issue
* adding checkbox to cancel reserve on the book (checked by default)
* the cancelation reserve is done on reserves done for a given item or for any item

Nelsonville, pls test & confirm it's OK
2004-12-15 10:47:09 +00:00
rangi
9cd423cbb4 Making the version number reflect the cvs version, to allow for easier
debugging.
If we can ask people what version of a module they are running it makes
error checking easier
2004-12-15 06:08:06 +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
7de6ee8e75 limiting the number of search term to 8. There was no limit before, but 8 words seems to be the upper limit mySQL can deal with (in less than a second. tested on a DB with 13 000 items)
In 2.4, a new DB structure will highly speed things and this limit will be removed.
FindDuplicate is activated again, the perf problems were due to this problem.
2004-12-10 16:27:53 +00:00
tipaul
013ae858cd * fixing "start by" operator
* in biblio search, - and other signs where not properly managed. Leroy-Beaulieu could not be found
2004-12-08 10:21:46 +00:00
tipaul
b49f397528 * desactivate FindDuplicate
* fix from Genji
2004-12-08 10:14:42 +00:00
tipaul
93e3f0411f fix for "marc upload fail silently" (from MJRay) 2004-12-08 10:11:51 +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
2db99e1dd5 adding "show me late issues" screen 2004-12-03 14:34:54 +00:00
oleonard
98357d148a Fix to get returns to update "datelastseen" value with today's date 2004-11-29 17:29:37 +00:00
rangi
1ce34b32b3 Fix for bug 865
Allows a librarian to tell Koha you want to start issuing to a new borrower
by entering no data. Essentiall by just hitting the enter  key
2004-11-28 08:32:36 +00:00
tipaul
629a207dcb removing useless &branches in package declaration 2004-11-25 17:39:44 +00:00
tipaul
962584cbaa removing sub branches (commited by chris for MARC=OFF bugfix, but sub branches is already in Acquisition.pm) 2004-11-24 16:00:01 +00:00
tipaul
23881a317e * critical fix for acquisition (see RC3 release notes) 2004-11-24 15:59:15 +00:00
tipaul
caf9b3c04b * critical fix for acquisition (see RC3 release notes)
* critical fix for duplicate finder
2004-11-24 15:58:31 +00:00
tipaul
1c16a1ee91 commiting modif already in RC2 (bug in breeding import) 2004-11-24 15:55:31 +00:00
rangi
7e1f5ce84b Shifting branches() from deprecated C4::Catalogue to C4::Biblio
Allowing the non marc interface acquisitions to work.
2004-11-19 19:41:22 +00:00
tipaul
661080d2fd fixing but to remove "request" link on "notforloan" materials 2004-11-18 10:34:24 +00:00
tipaul
1424addcc2 fix for bug 858 (no warning when issuing a reserved book) 2004-11-18 10:32:39 +00:00
tipaul
a47bdb1f57 suggestion from owen to add classification to isbn query 2004-11-12 17:26:24 +00:00
tipaul
8986960a12 removing useless warn & renaming a sub that can probably be removed 2004-11-08 19:49:45 +00:00
tipaul
d1c7377cf1 Improving FindDuplicate to find duplicate records on adding biblio 2004-11-05 10:15:27 +00:00
tipaul
2a1ae77f5e Auth.pm with LDAP
perldoc Auth_with_ldap.pm to see how to set it
2004-11-05 10:13:31 +00:00
tipaul
5a612e176c remove LDAP dependancy, replaced by auth_with_ldap.pm 2004-11-05 10:12:27 +00:00
tipaul
0b4c153905 export auth_count_usage (bugfix) 2004-11-05 10:11:39 +00:00
tipaul
8f0ca2ceb7 Limit search to 30 days when the order is by acquisition date desc (ie when the user want to see new books) 2004-11-05 10:10:48 +00:00
rangi
998cc6bc2b Fixing bug that was stopping subject maintenance working 2004-11-05 00:08:22 +00:00
tipaul
5663435076 new feature : checking for duplicate biblio.
For instance, it's only done on ISBN only. Will be improved soon.

When a duplicate is detected, the biblio is not saved, but the user is asked for a confirmations.
2004-11-02 16:44:45 +00:00
tipaul
2b27da1e06 bugfix : using concat instead of + to merge field & subfield. Otherwise, when the subfield is a number, it's a numeric addition that is done !!! 2004-10-27 08:11:44 +00:00
tipaul
4eb5fd5a4c rewritting item status checking : now, each item is shown with it's callnumber and status (available, on loan,...) 2004-10-25 09:38:00 +00:00
tipaul
2eda32b247 adding search orders history feature 2004-10-19 12:24:56 +00:00
tipaul
89dea6f3ec Adding possibility to order the basket by :
* publishercode
OR
* budget then publishercode
2004-10-05 09:22:16 +00:00
tipaul
2cc3037397 adding getmember sub to the package (the Search.pm/borrdata should be removed, it has nothing to do here) 2004-10-04 20:19:08 +00:00
tipaul
b9a7f33601 * removing the hard coded $
* adding bookfund to the order list
2004-10-04 20:03:23 +00:00
tipaul
e49f99e9db POD documenting 2004-09-23 16:16:24 +00:00
tipaul
df00471f94 indenting diff 2004-09-23 16:15:37 +00:00
tipaul
a78b5d16f5 Bugfix in modification 2004-09-23 16:12:35 +00:00
tipaul
a9c5f50275 adding barcode generator to Koha 2004-09-20 15:03:27 +00:00
tipaul
315a8670f1 some changes in serial management :
* in subscription Add, the issue number & date is used to calculate the 1st issue (previously, a "next issue number & date" was applied, meaning you had to enter the number & date of a previous issue)
* the "inner loop" used for serials number ({XYZ}) is now shown & can be modified. The innerloop is used for numbering formulas saying "change the number once every 4 times".
2004-09-20 10:16:05 +00:00
tipaul
38c72dd374 enabling # (| still possible too) for repeatable subfields 2004-09-16 15:06:46 +00:00
tipaul
214c37b371 modifs in new acquisition option : the search is now managed through the standard search API, with an "order by timestamp" order.
opac-new.pl can be removed
2004-09-16 09:21:05 +00:00
tipaul
f927e8eb36 bugfix for manually fixed duedate on issue. 2004-09-15 16:27:18 +00:00
tipaul
a1c11c5784 bugfixes in order modif 2004-09-15 16:13:41 +00:00
tipaul
e2a219b290 fixing bugs in issue renewal 2004-09-15 16:09:57 +00:00
tipaul
3ffcc8657d fix for circulation rules test : the default branch is "", not "*" (* is for "any borrowertype" and "any itemtype") 2004-09-14 12:37:04 +00:00
tipaul
c0585cdeaf *** empty log message *** 2004-09-13 15:26:42 +00:00
tipaul
92decf23bf separating additional authors with - instead of a ,
a , can be used in french to separate name & surname
2004-09-13 15:25:38 +00:00
tipaul
d9dcfbeb7a warn removes + fix for item count 2004-09-13 15:23:35 +00:00
tipaul
1af42ff447 bugfix for acquisitions 2004-09-13 15:21:59 +00:00
tipaul
fa793e394a some commented warning added + 1 major bugfix => drop empty fields, NOT fields containing 0 2004-09-06 14:17:34 +00:00
tipaul
8d868bb448 adding a "location" field to the library.
This field is useful when the callnumber contains no information on the room where the item is stored.
With this field, we now have 3 levels of informations to find a book :
* the branch.
* the location.
* the callnumber.

This should be versatile enough to solve any storing method.
This hack is quite simple, due to the nice Biblio.pm API. The MARC => koha db link is automatically managed. Just add the link in the parameters section.
2004-09-06 10:00:19 +00:00
shedges
f3e5fcd15d Fix bug 789 (in HEAD) 2004-09-05 22:33:12 +00:00
shedges
686a41a71c Minor changes to add classification data to return array from loose search. 2004-09-04 13:48:27 +00:00
tipaul
1edf59efe5 road to a better member management code.
Useful for LDAP integration
2004-09-02 16:27:09 +00:00
tipaul
a115863f93 some fixes for LDAP (more to come) 2004-09-02 16:25:20 +00:00
tipaul
56825e415f modularizing (with Members.pm) members management
(beginning of...)
2004-08-30 13:48:58 +00:00
tipaul
6693f707b3 removing useless package 2004-08-30 13:22:46 +00:00
tipaul
4d23559149 fixing bug (dbh error in error log, even if the result was OK) 2004-08-20 09:14:07 +00:00
tipaul
2580ddc726 fixing a complex bug : the last results didn't have callnumber informations. Had to rewrite algorythm for building the result array. 2004-08-20 08:19:52 +00:00
tipaul
8790983cd5 commiting stephen hedges modifs to css template & fixing a bug in variable name (same name in TMPL_LOOP and TMPL_VAR confuses a lot HTML::Template) 2004-08-18 16:44:37 +00:00
tipaul
75e8b810e8 minor reindentings 2004-08-18 16:02:26 +00:00
tipaul
2e18684cde modifs to support frameworkcodes 2004-08-18 16:01:37 +00:00
tipaul
9cfafb870e fixes for authorities management 2004-08-18 16:00:24 +00:00
tipaul
ab39e57393 fixes in circulation module 2004-08-18 15:52:14 +00:00
shedges
1e02b5b4aa added getMARCnotes and getMARCsubjects functions. 2004-08-17 20:53:34 +00:00
tipaul
b2d3fe1ccb moving language chooser to the main page.
moving the getalltemplates and getalllanguages subs out from Search.pm (that will be deprecated soon) to Koha.pm

moving changelanguage.pl to OPAC scope
2004-08-16 12:49:42 +00:00
tipaul
502ab11ae9 moving language chooser to the main page.
monving the getalltemplates and getalllanguages subs out from Search.pm (that will be deprecated soon) to Koha.pm
2004-08-16 12:48:52 +00:00
rangi
e334c8699f Commiting a sample change to the default template to allow users to pick
their language.
Just a sample template builders can look at this and make changes to their
templates
2004-08-15 01:50:24 +00:00
tipaul
37d454a82a adding frameworkcode to API in some subs 2004-08-13 16:37:25 +00:00
tipaul
c93369dc4a patch from A. Tarallo (for differents DB schemes) 2004-08-13 09:13:14 +00:00
tipaul
26b2374cd4 bugfix 2004-08-12 14:36:44 +00:00
tipaul
716d4a4e18 serials : lot of bugfixes.
Works fine now. And is documented (clic Help)
2004-08-12 14:36:07 +00:00
tipaul
1e33d3ca1a changing DB structure to calculate next issue number.
Seems to work fine.

Still misses the date calculation & the test of end of subscription (maybe for monday ?)
2004-08-06 16:38:41 +00:00
tipaul
8e5b1d4792 reordering code & debugging 2004-08-05 16:34:41 +00:00
doxulting
637a78a5c1 The XYZ funcs for serials seqs 2004-07-30 14:01:48 +00:00
doxulting
f122180117 Beginning of serial commit 2004-07-30 13:54:27 +00:00
rangi
64a6d5d756 Contains the function to get the language template, and set the cookie 2004-07-16 21:15:26 +00:00
rangi
3cd76eef0c Code to set a cookie which stores which language is displayed to the user 2004-07-16 00:36:56 +00:00
tipaul
3e0a132171 * removing useless sub
* minor bugfix in moditem (managing homebranch & holdingbranch)
2004-07-15 09:48:10 +00:00
tipaul
f29ce59691 Acquisition & Suggestion :
* acquisition rewritte : create a aqbasket table to deal with "bookseller order header".
* add "close basket" feature : a closed basket can't be modified
* suggestion feature : manage suggestions in acquisition (after suggestion filled in OPAC)
2004-07-15 09:41:03 +00:00
tipaul
6376aa4326 catalogue.pm deals only with acquisitions.
so, renaming it...
catalogue management is done in Biblio.pm package
2004-07-13 12:52:13 +00:00
doxulting
e737c7eb1d First step for working authorities 2004-07-05 13:37:22 +00:00
tipaul
73de15b3ff Adding 2 new fields, called "sort1" and "sort2"
They can be used for sorting & statistics reasons by the library.
2004-07-02 15:55:06 +00:00
tipaul
a043d6de11 bugfix (due to frameworkcode field) 2004-07-02 15:53:53 +00:00
tipaul
f3547ff1c8 last sync for 2.1.0 release 2004-06-29 16:07:09 +00:00
doxulting
fd8ae64752 Debugged issuing rules n01 2004-06-29 13:02:34 +00:00
rangi
09c2a88e02 Fixing modaddauthor, and adding getitemtypes.
Also tidying up formatting of code
2004-06-26 23:19:59 +00:00
tipaul
11846f098d some improvements in SearchMarc 2004-06-22 15:33:30 +00:00
tipaul
e801c22701 removing % at the beginning of a string to avoid loooonnnngggg searchs 2004-06-22 11:35:37 +00:00
tipaul
54d9bfeeb6 changes in search method :
- supporting * and % on words (* is replaced by %)
- removing % when the word is 3 or less letters
2004-06-22 08:39:22 +00:00
tipaul
cc5e837309 bugfixes in circulation 2004-06-17 08:17:39 +00:00
tipaul
b6cc6680dc merging tag & subfield in marc_word for better perfs 2004-06-17 08:16:32 +00:00
tipaul
ea807900bf merging tag & subfield in auth_word for better perfs 2004-06-17 08:02:13 +00:00
joshferraro
0a97a432ee Changes MARCaddword to index words >= 1 char ... needed for more accurate
searches using SearchMarc routines.
2004-06-11 15:38:06 +00:00