Commit graph

268 commits

Author SHA1 Message Date
hdl
fbec734d57 Adding selection by location for inventory 2007-07-19 07:40:08 +00:00
tipaul
96386e6568 fixing some display bugs (itemtype not properly returned and a html table bug that makes items appear strangely 2007-07-03 13:47:44 +00:00
tipaul
83545f8449 return itemtype description properly 2007-07-03 09:40:58 +00:00
tipaul
a9403a8bba if you just replace su by a space in subjects, you'll replace jesus by je s, which is strange for users. this fix solves the problem and introduces authoritysep systempref as separator of subfields, for a better identification of where the authority starts and end 2007-07-03 09:33:05 +00:00
tipaul
43e23a2ca9 unimarc bugfix : the encoding is in field 100 in UNIMARC. when TransformHTMLtoXML on an item, you must not automatically add a 100 field in items, otherwise there will be 2 100 fields in the biblio, which is wrong 2007-07-02 09:13:22 +00:00
tipaul
014350b476 bugfixes on unimarc 100 handling (the field used for encoding) 2007-06-25 15:01:45 +00:00
tipaul
23427c51b9 some fixes (and only fixes) 2007-06-15 13:44:44 +00:00
toins
95f4785d58 do not get $3 $4 and $5 on GetMarcSubjects GetMarcAuthors on unimarc flavour. 2007-06-15 09:40:06 +00:00
toins
38f7d2148a removing warn compilation. 2007-06-13 13:03:34 +00:00
tipaul
67d1dcf1f7 various bugfixes (minor) and french translation updated 2007-05-23 16:19:40 +00:00
tipaul
5ff7fcffa4 Bugfixes & improvements (various and minor) :
- updating templates to have tmpl_process3.pl running without any errors
- adding a drupal-like css for prog templates (with 3 small images)
- fixing some bugs in circulation & other scripts
- updating french translation
- fixing some typos in templates
2007-05-22 09:13:54 +00:00
hdl
286930bdc7 Changing GetMarcStructure signature.
Deleting first parameter $dbh
2007-05-22 08:50:47 +00:00
btoumi
1e21ba6968 add security when u delete biblio :
u must delete linked items before delete biblio
2007-05-21 08:44:17 +00:00
btoumi
100385ab29 bug fix:
problem in  displayed label link  with subject in detail.tmpl
ex: label random => rdom
2007-05-11 16:04:03 +00:00
tipaul
ca201e36af Koha NoZebra :
- support for authorities
- some bugfixes in ordering and "CCL" parsing
- support for authorities <=> biblios walking

Seems I can do what I want now, so I consider its done, except for bugfixes that will be needed i m sure !
2007-05-10 14:45:15 +00:00
tipaul
03e2d1f969 BUGFIX for : NoZebra
- NoZebra features : seems they work fine now (adding, modifying, deleting)
- Biblio edition major bugfix : before this commit editing a biblio resulted in an item removal in marcxml field
2007-05-03 15:16:02 +00:00
tipaul
3e85c9e97f NoZebra SQL index management :
* adding 3 subs in Biblio.pm
- GetNoZebraIndexes, that get the index structure in a new systempreference (added with this commit)
- _DelBiblioNoZebra, that retrieve all index entries for a biblio and remove in a variable the biblio reference
- _AddBiblioNoZebra, that add index entries for a biblio.
Note that the 2 _Add and _Del subs work only in a hash variable, to speed up things in case of a modif (ie : delete+add). The effective SQL update is done in the ModZebra sub (that existed before, and dealed with zebra index).
I think the code has to be more deeply tested, but it works at least partially.
2007-05-02 16:44:31 +00:00
hdl
097fef712a Removing $dbh from GetMarcFromKohaField (dbh is not used in this function.) 2007-04-27 14:00:48 +00:00
tipaul
b53be9cdaf Koha 3.0 nozebra 1st commit : the script misc/migration_tools/rebuild_nozebra.pl build the nozebra table, and, if you set NoZebra to Yes, queries will be done through zebra. TODO :
- add nozebra table management on biblio editing
- the index table content is hardcoded. I still have to add some specific systempref to let the library update it
- manage pagination (next/previous)
- manage facets
WHAT works :
- NZgetRecords : has exactly the same API & returns as zebra getQuery, except that some parameters are unused
- search & sort works quite good
- CQL parser is better that what I thought I could do : title="harry and sally" and publicationyear>2000 not itemtype=LIVR should work fine
2007-04-25 16:26:42 +00:00
tipaul
4dea4d29b3 moving dotransfer to Biblio.pm::ModItemTransfer + some CheckReserves fixes 2007-04-24 09:07:53 +00:00
tipaul
9f42b8ad49 renaming currenttransfers to transferstoreceive 2007-04-23 15:21:17 +00:00
tipaul
7bd99ef365 removing all useless %env / $env 2007-04-18 17:00:14 +00:00
tipaul
b71839d85c circulation cleaning continued: bufixing 2007-04-17 08:44:49 +00:00
tipaul
c596d55374 HUGE COMMIT : code cleaning circulation.
some stuff to do, i'll write a mail on koha-devel NOW !
2007-04-04 16:46:22 +00:00
tipaul
23f86854e0 why the hell do we need to explicitly utf8 decode this string ? I really don't know, but it seems it's mandatory, otherwise, tag descriptions are not properly encoded... 2007-03-30 12:00:42 +00:00
tipaul
eba2552086 Code cleaning of Biblio.pm (continued)
All subs have be cleaned :
- removed useless
- merged some
- reordering Biblio.pm completly
- using only naming conventions

Seems to have broken nothing, but it still has to be heavily tested.
Note that Biblio.pm is now much more efficient than previously & probably more reliable as well.
2007-03-29 16:45:53 +00:00
tipaul
a481fad4b7 Code cleaning :
== Biblio.pm cleaning (useless) ==
* some sub declaration dropped
* removed modbiblio sub
* removed moditem sub
* removed newitems. It was used only in finishrecieve. Replaced by a Koha2Marc+AddItem, that is better.
* removed MARCkoha2marcItem
* removed MARCdelsubfield declaration
* removed MARCkoha2marcBiblio

== Biblio.pm cleaning (naming conventions) ==
* MARCgettagslib renamed to GetMarcStructure
* MARCgetitems renamed to GetMarcItem
* MARCfind_frameworkcode renamed to GetFrameworkCode
* MARCmarc2koha renamed to TransformMarcToKoha
* MARChtml2marc renamed to TransformHtmlToMarc
* MARChtml2xml renamed to TranformeHtmlToXml
* zebraop renamed to ModZebra

== MARC=OFF ==
* removing MARC=OFF related scripts (in cataloguing directory)
* removed checkitems (function related to MARC=off feature, that is completly broken in head. If someone want to reintroduce it, hard work coming...)
* removed getitemsbybiblioitem (used only by MARC=OFF scripts, that is removed as well)
2007-03-29 13:30:31 +00:00
tipaul
56c4a32119 adding default value new feature into cataloguing. The system (definition) part has already been added by toins 2007-03-29 09:42:13 +00:00
hdl
6ddde71599 Deleting ignore_errors(1) pour MARC::Charset 2007-03-29 08:45:19 +00:00
hdl
1ab5cdfd44 removing $dbh as a parameter in AuthoritiesMarc functions
And reporting all differences into the scripts taht relies on those functions.
2007-03-28 10:39:16 +00:00
tipaul
2ffd5b7228 rel_3_0 moved to HEAD 2007-03-09 14:28:54 +00:00
tgarip1957
41e4a9c4ad Savannah seems out of sync. reloading.Mainly code cleaning and removing of Date::Manip 2006-11-15 01:36:00 +00:00
tgarip1957
ab45e7aaab Bug fixing and complete removal of Date::Manip 2006-11-06 21:01:43 +00:00
tgarip1957
c5627d23ec A new Date.pm to use for all date calculations. Mysql date calculations removed from Circ2.pm, all modules free of DateManip, a new get_today function to call in allscripts, and some bug cleaning in authorities.pm 2006-10-20 01:20:56 +00:00
tgarip1957
9b266b13ee Finalizing main components. All koha modules are now working with the new XML API 2006-09-27 19:53:52 +00:00
tgarip1957
9be398961d Some bug fixing, new acquisitions handling 2006-09-20 21:48:44 +00:00
tgarip1957
57d5b19dca Fixes bug with MARChtml2xml in Biblio.pm
synching with dev_week
2006-09-11 17:09:59 +00:00
tgarip1957
7e52a5665c Clean up before final commits 2006-09-06 16:21:03 +00:00
tgarip1957
99d79a6f7f No more MARC Records - everything is MARC XML
we read - write only XML
2006-09-01 15:33:46 +00:00
tgarip1957
0451359813 New set of routines for HEAD.
Uses a complete new ZEBRA Indexing.
ZEBRA is now XML and comprises of a KOHA meta record. Explanatory notes will be on koha-devel
Fixes UTF8 problems
Fixes bug with authorities
SQL database major changes.
Separate biblioograaphic and holdings records. Biblioitems table depreceated
etc. etc.
Wait for explanatory document on koha-devel
2006-08-25 21:07:08 +00:00
toins
b364247586 Add a forgetted function : getbibliofromitemnumber 2006-08-21 09:51:15 +00:00
toins
2ca5f288f4 re-input an old function. 2006-08-11 16:04:07 +00:00
toins
32e0d66afa sync with dev_week. 2006-08-10 12:41:04 +00:00
toins
3fafdf7492 1 Sub renamed. 2006-07-27 13:46:30 +00:00
btoumi
d81cd891ce bug fixing:
Biblio.pm: add in export line  getbibliofromitemnumber function
fines2.pl:call to biblio.pm for use of getbibliofromitemnumber function
2006-07-12 13:43:42 +00:00
toins
cc9524a875 Head & rel_2_2 merged 2006-07-04 14:36:51 +00:00
bob_lyon
0f568852a8 Merging katipo changes...
altering subject search to stop returning blank rows
2006-06-06 23:13:14 +00:00
plg
68924c5e6b New feature from SAN Ouest Provence: ability to reserve a specific item in
the intranet. The development was made on branch 2.2 by Arnaud Laurin from
Ouest Provence and integrated on HEAD by Pierrick Le Gall from INEO media
system.

New page reserve/request.pl taking a biblionumber as entry point.

New functions:

- C4::Biblio::get_iteminfos_of retrieves item informations for a list of
  itemnumbers

- C4::Biblio::get_biblioiteminfos_of retrieves biblioitem informations for a
  list of biblioitemnumbers

- C4::Biblio::get_itemnumbers_of retrieve the list of itemnumbers related to
  each biblionumber given in argument.

- C4::Circulation::Circ2::get_return_date_of retrieves return date for a
  list of itemnumbers.

- C4::Koha::get_itemtypeinfos_of retrieves the informations related to a
  list of itemtypes.

- C4::Koha::get_branchinfos_of retrieves the informations related to a list
  of branchcodes.

- C4::Koha::get_notforloan_label_of retrives the list of status/label for
  the authorised_values related to notforloan.

- C4::Koha::get_infos_of is the generic function used by all get_*infos_of.

- C4::Reserves2::GetNumberReservesFromBorrower

- C4::Reserves2::GetFirstReserveDateFromItem

Modified functions:

- C4::Reserves2::FindReserves was simplified to be more readable.

The reservation page is reserve/request.pl and is linked from nowhere as
long as zebra is not stable yet on HEAD.
2006-05-17 16:06:23 +00:00
tgarip1957
347f00fede Change the MARC Leader to UTF-8 incase user did not set it. Important for Zebra.
The new M::F::XML is sensitive to leader settings
2006-04-15 02:47:47 +00:00
tgarip1957
64e4a87e49 New sub to use by Circ2.pm . Allows one subfield of MARC holdings fields to be updated to use with branch transfer(holdingbranch) and onloan flag when set 2006-04-10 20:39:49 +00:00
rangi
4f210d4556 Modify item now works
BUT only if there is only one item, if there is more than one item, it gets messed up.
They get combined into the form, ill work on this next
2006-04-03 04:00:02 +00:00
kados
04126d61f6 some modifs to improve plugin support 2006-04-03 02:12:49 +00:00
rangi
10b2315eb3 Fixing the problem that all items were getting biblioitem=1 set 2006-04-01 22:10:50 +00:00
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