Commit graph

215 commits

Author SHA1 Message Date
rangi
c450bfcdf5 Adding a little fake subroutine that a few scripts in the opac depend on, can be removed once the opac scripts are rewritten 2006-04-01 21:22:05 +00:00
rangi
1e70782e79 Delete isnt working using the extended services method 2006-03-29 01:56:25 +00:00
rangi
eeb654d21d Delete working now 2006-03-28 23:05:08 +00:00
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
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
kados
531fb1fdcd Adding fixes to MARC editor to HEAD 2006-03-06 02:45:41 +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
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
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
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
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
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
685f77f4c2 fixing some warnings (perl -w should be quiet) 2006-02-13 16:34:26 +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
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
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
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
56e5773f9d removing useless sub declarations 2005-08-12 13:50:31 +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
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
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
2cd0bc1da8 synch'ing 2.2 and head 2005-08-04 13:27:37 +00:00
tipaul
6b0ee5525b synch'ing 2.2 and head 2005-06-20 14:10:00 +00:00
hdl
7fd0a58305 Displaying dashed isbn. 2005-06-15 16:09:42 +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
369527637b synch'ing 2.2 and head 2005-05-04 15:39:07 +00:00
tipaul
1923629300 synch'ing with 2.2 2005-03-07 08:55:29 +00:00
tipaul
93ff09d081 merging 2.2 branch with head. Sorry for not making it before, many many commits done here 2005-03-01 13:40:35 +00:00
tipaul
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
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
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
b49f397528 * desactivate FindDuplicate
* fix from Genji
2004-12-08 10:14:42 +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
caf9b3c04b * critical fix for acquisition (see RC3 release notes)
* critical fix for duplicate finder
2004-11-24 15:58: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
d1c7377cf1 Improving FindDuplicate to find duplicate records on adding biblio 2004-11-05 10:15:27 +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
df00471f94 indenting diff 2004-09-23 16:15:37 +00:00
tipaul
38c72dd374 enabling # (| still possible too) for repeatable subfields 2004-09-16 15:06:46 +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
tipaul
2e18684cde modifs to support frameworkcodes 2004-08-18 16:01:37 +00:00
tipaul
37d454a82a adding frameworkcode to API in some subs 2004-08-13 16:37:25 +00:00
doxulting
f122180117 Beginning of serial commit 2004-07-30 13:54:27 +00:00
tipaul
3e0a132171 * removing useless sub
* minor bugfix in moditem (managing homebranch & holdingbranch)
2004-07-15 09:48:10 +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
rangi
09c2a88e02 Fixing modaddauthor, and adding getitemtypes.
Also tidying up formatting of code
2004-06-26 23:19:59 +00:00
tipaul
b6cc6680dc merging tag & subfield in marc_word for better perfs 2004-06-17 08:16:32 +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
tipaul
e7e930ab39 MARC authority management (continued) 2004-06-10 08:28:40 +00:00
tipaul
5f4179a6c3 * frameworks and itemtypes are independant
* in the MARC editor, showing the + to duplicate a tag only if the tag is repeatable
2004-06-03 09:59:36 +00:00
tipaul
59ae3d902f hidding hidden & isurl constraints into MARC subfield structure 2004-05-28 08:24:14 +00:00
rangi
b98c3aa573 Fix for bug 787 2004-05-27 21:47:21 +00:00
tipaul
88e67b8d3e framework management : 1 MARC framework for each itemtype 2004-05-18 15:22:10 +00:00
tipaul
9ac07b38be getitemtypes moved in Koha.pm 2004-05-18 11:54:07 +00:00
tipaul
12bfd66995 some fixes for mysql prepare & execute 2004-05-03 09:19:22 +00:00
tipaul
207cfeb5b3 renaming items.bulk field to items.itemcallnumber.
Will be used to store call number for libraries that don't use dewey classification.
Note it's related to ITEMS, not biblio.
2004-04-02 14:55:47 +00:00
joshferraro
53272f3dad Fixes bug 749 by removing the comma on line 1488. 2004-03-24 17:18:30 +00:00
tipaul
5c1ba0f7b8 adding a minor check 2004-03-15 14:31:50 +00:00
acli
29b1df6046 Various updates/fixes from rel_2_0
Fixes for bugs 721 (templating), 727, and 734
2004-03-07 05:47:31 +00:00
tipaul
1498ce1415 adding seealso feature in MARC searches 2004-03-06 20:26:13 +00:00
tipaul
15defe58a9 deleting subs duplicated by error 2004-02-12 13:40:56 +00:00
tipaul
3635a596cf synch'ing 2.0.0 branch and head 2004-02-11 08:35:31 +00:00
tipaul
3e4c958855 rolling back to working char_decode sub 2003-12-09 15:57:28 +00:00
tipaul
87819d35b1 bugfixes for biblio deletion 2003-12-03 17:47:14 +00:00
slef
49b6f7872f conflict markers? 2003-12-03 01:43:41 +00:00
slef
7b5ebdd51b bug 662 fixes securing DBI 2003-12-03 01:42:03 +00:00
tipaul
496c07ede0 bugfix : misusing prepare & execute => now using prepare(?) and execute($var) 2003-11-28 09:48:33 +00:00
tipaul
ef5134635a bugfix for iso2709 file import in the "notforloan" field.
But notforloan field called "loan" somewhere, so in case "loan" is used, copied to "notforloan" to avoid a bug.
2003-11-28 09:45:25 +00:00
tipaul
e5fddea941 fix for #385 2003-11-24 17:40:14 +00:00
tipaul
6eb2c6141d biblio & item deletion now works fine in MARC editor.
Stores deleted biblio/item in the marc field of the deletedbiblio/deleteditem table.
2003-11-24 16:28:49 +00:00
tipaul
49d00491c8 moving $id from beginning to end of file (70 commits... huge comments...) 2003-11-24 13:29:55 +00:00
tipaul
4333350f43 fix for #380 (bibliosubject) 2003-11-24 13:27:17 +00:00
tipaul
073d2233cc bugfix for #384
1st draft for MARC biblio deletion.
Still does not work well, but at least, Biblio.pm compiles & it should'nt break too many things
(Note the trash in the MARCdetail, but don't use it, please :-) )
2003-11-06 17:18:30 +00:00
tipaul
98884012cf minor fixes for bilbio deletion (still buggy) 2003-10-25 08:46:27 +00:00
tipaul
1af44318c6 Indexing only words longer than 2 letters. Was >=2 before, & 2 letters words usually means nothing. 2003-10-17 10:02:56 +00:00