Commit graph

448 commits

Author SHA1 Message Date
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
tipaul
0d96be2e29 adding rebuildnonmarc.pl script : run this script when you change a link between marc and non MARC DB. It rebuilds the non-MARC DB (long operation) 2003-10-14 09:45:29 +00:00
tipaul
31a590d4ad fix for 536 (subtitle error) 2003-10-06 15:20:51 +00:00
tipaul
4434389d57 seems a char encoding problem modified something in char_decode sub... changing back to something that works... 2003-10-01 13:25:49 +00:00
tipaul
139775d7c7 fixing bug that makes a MARC biblio disappear when using full acquisition (order => recieve ==> MARC editor).
Before this 2 lines fix, the MARC biblio was deleted during recieve, and had to be entirely recreated :-(
2003-09-17 14:21:13 +00:00
tipaul
64d6029a7d notforloan value in itemtype was overwritting notforloan value in a given item.
I changed this behaviour :
if notforloan is set for a given item, and NOT for all items from this itemtype, the notforloan is kept.
If notforloan is set for itemtype, it's used (and impossible to loan a specific item from this itemtype)
2003-09-17 10:24:39 +00:00
tipaul
b36dc7537c fix for 593 (data duplication in MARC-DB) 2003-09-04 14:11:23 +00:00
tipaul
8bc5e4ab66 fix for 583 (values in marc_word table should have quotation marks, etc, stripped) 2003-09-04 10:17:07 +00:00
tipaul
83cca02a46 fix for publicationyear : extracting numeric value from MARC string, like for copyrightdate.
(note that copyrightdate still extracted to get numeric format)
2003-08-06 12:54:52 +00:00
slef
bdd6346c90 change show columns to use biblioitems bnotes too 2003-07-15 23:09:18 +00:00
slef
c72ec1dc6a fixes from paul email 2003-07-15 11:34:52 +00:00
slef
d0f40352af Work on bug 515... can we do a single-side rename of notes to bnotes? 2003-07-15 00:02:49 +00:00
tipaul
125530b3e3 *** empty log message *** 2003-07-11 11:51:32 +00:00
tipaul
af76ab2d58 typo fix 2003-07-10 12:24:20 +00:00
tipaul
cdb9220d74 fix for copyrightdate problem, #514 2003-07-10 10:37:19 +00:00
tipaul
f1f7658357 fix for #519 : items.dateaccessioned imports incorrectly 2003-07-02 14:47:17 +00:00
tipaul
f558018f3d fix for #512 (not sure it's enogh. to be checked by NPL) 2003-07-02 13:57:13 +00:00
tipaul
bb7fecd745 improvments/fixes for z3950 support.
* Works now even on ADD, not only on MODIFY
* able to search on ISBN, author, title
2003-06-17 11:21:12 +00:00
rangi
5bfaef8cfb Just added an order clause to getitemtypes 2003-06-16 09:22:53 +00:00
tipaul
27edbcc574 fixing typo in Biblio.pm POD 2003-05-20 16:22:44 +00:00
tipaul
7a95c1d809 support for subtitles, additional authors, subject.
This supports is only for MARC <-> OLD-DB link. It worked previously, but values entered as MARC were not reported to OLD-DB, neither values entered as OLD-DB were reported to MARC.
Note that some OLD-DB subs are strange (dummy ?) see OLDmodsubject, OLDmodsubtitle, OLDmodaddiauthor in C4/Biblio.pm
For example it seems impossible to have more that 1 addi author and 1 subtitle. In MARC it's not the case. So, if you enter more than one, I'm afraid only the LAST will be stored.
2003-05-19 13:45:18 +00:00
tipaul
26543b430e really proud of this commit :-)
z3950 search and import seems to works fine.
Let me explain how :
* a "search z3950" button is added in the addbiblio template.
* when clicked, a popup appears and z3950/search.pl is called
* z3950/search.pl calls addz3950search in the DB
* the z3950 daemon retrieve the records and stores them in z3950results AND in marc_breeding table.
* as long as there as searches pending, the popup auto refresh every 2 seconds, and says how many searches are pending.
* when the user clicks on a z3950 result => the parent popup is called with the requested biblio, and auto-filled

Note :
* character encoding support : (It's a nightmare...) In the z3950servers table, a "encoding" column has been added. You can put "UNIMARC" or "USMARC" in this column. Depending on this, the char_decode in C4::Biblio.pm replaces marc-char-encode by an iso 8859-1 encoding. Note that in the breeding import this value has been added too, for a better support.
* the marc_breeding and z3950* tables have been modified : they have an encoding column and the random z3950 number is stored too for convenience => it's the key I use to list only requested biblios in the popup.
2003-04-29 16:48:25 +00:00
tipaul
e5bbeace3d Those fixes solves the "internal server error" with MARC::Record 1.12.
It was due to an illegal contruction in Koha : we tried to retrive subfields from <10 tags.
That's not possible. MARC::Record accepted this in 0.93 version, but it was fixed after.
Now, the construct/retrieving is OK !
2003-04-28 13:07:14 +00:00
tipaul
88867f1426 Fix some bugs :
* worked in 1.9.0, but not in 1.9.1 :
- modif of a biblio didn't work
- empty fields where not shown when modifying a biblio. empty fields managed by the library (ie in tab 0->9 in MARC parameter table) MUST be entered, even if not presented.

* did not work before :
- repeatable subfields now works correctly. Enter 2 subfields separated by | and they will be splitted during saving.
- dropped the last subfield of the MARC form :-(

Internal changes :
- MARCmodbiblio now works by deleting and recreating the biblio. It's not perf optimized, but MARC is a "do_something_impossible_to_trace" standard, so, it's the best solution. not a problem for me, as biblio are rarely modified.
Note the MARCdelbiblio has been rewritted to enable deletion of a biblio WITHOUT deleting items.
2003-04-10 13:56:02 +00:00
tipaul
e60f831e1f last commits before 1.9.1 2003-04-04 08:40:44 +00:00
tipaul
452e65166c fixes 2003-04-01 12:26:43 +00:00
tipaul
9658d683f6 pod updating 2003-03-11 15:14:03 +00:00
tipaul
1b0620652e * moving generic functions to Koha.pm
* improvement of SearchMarc.pm
* bugfixes
* code cleaning
2003-03-07 16:35:42 +00:00
tipaul
fe8746a471 * moving prepare / execute to ? form.
* some # cleaning
* little bugfix.
* road to 1.9.2 => acquisition and cataloguing merging
2003-02-27 16:51:59 +00:00
tipaul
fa0f51d9c2 Support for 000 -> 010 fields.
Those fields doesn't have subfields.
In koha, we will use a specific "trick" : fields <10 will have a "virtual" subfield : "@".
Note it's only virtual : when rebuilding the MARC::Record, the koha API handle correctly "@" subfields => the resulting MARC record has a 00x field without subfield.
2003-02-12 11:01:04 +00:00
tipaul
8d75bf9568 Support for 000 -> 010 fields.
Those fields doesn't have subfields.
In koha, we will use a specific "trick" : fields <10 will have a "virtual" subfield : "@".
Note it's only virtual : when rebuilding the MARC::Record, the koha API handle correctly "@" subfields => the resulting MARC record has a 00x field without subfield.
2003-02-12 11:01:01 +00:00
acli
b5ecefd485 Minor factoring in C4/Biblio.pm, plus change to export the per-tag
'mandatory' property to a per-subfield 'tag_mandatory' template parameter,
so that addbiblio.tmpl can distinguish between mandatory subfields in a
mandatory tag and mandatory subfields in an optional tag

Not-minor factoring in acqui.simple/addbiblio.pl to make the if-else blocks
smaller, and to add some POD; need further testing for this

Added function to check if a MARC subfield name is "koha-internal" (instead
of checking it for 'lib' and 'tag' everywhere); temporarily added to Koha.pm

Use above function in acqui.simple/additem.pl and search.marc/search.pl
2003-02-03 18:46:00 +00:00
tipaul
c0c8f96121 fixing MARCmodbiblio API and reindenting code 2003-01-28 14:50:04 +00:00
tipaul
8392f92ec0 adding char_decode to decode MARC21 or UNIMARC extended chars 2003-01-23 12:22:37 +00:00
tipaul
80a37bdd4a small but important bugfix (fixes a problem in export) 2002-12-16 15:08:50 +00:00
tipaul
4b9af7f1ff 1st draft of marc export 2002-12-13 16:22:04 +00:00
tipaul
4d315418f2 YAB ! (Yet Another Bugfix) => related to biblio modif
(some warning cleaning too)
2002-12-12 21:26:35 +00:00
tipaul
dd696c61e8 adding authentification with Auth.pm and
MAJOR BUGFIX on marc biblio modification
2002-12-12 16:34:41 +00:00
tipaul
9b6d589336 fugfixes from Dombes Abbey work 2002-12-10 13:30:03 +00:00
tipaul
5c67993c8f road to 1.3.2
various bugfixes, improvments, and migration from acquisition.pm to biblio.pm
2002-11-19 12:31:34 +00:00
tipaul
e11872aeb1 road to 1.3.2 :
* many bugfixes
* adding value_builder : you can map a subfield in the marc_subfield_structure to a sub stored in "value_builder" directory. In this directory you can create screen used to build values with any method. In this commit is a 1st draft of the builder for 100$a unimarc french subfield, which is composed of 35 digits, with 12 differents values (only the 4th first are provided for instance)
2002-11-12 15:58:43 +00:00
tipaul
94b6b3a6c1 Road to 1.3.2
* bugfixes and improvements
2002-10-25 10:58:26 +00:00
arensb
fbb774f115 Fixed "no title" warning when generating HTML documentation from POD. 2002-10-24 12:09:01 +00:00
arensb
15d6ecc822 Added some FIXME comments. 2002-10-16 12:42:29 +00:00
tipaul
6d578747a9 removing Acquisition.pm
deleting unused code in biblio.pm, rewriting POD and answering most FIXME comments
2002-10-15 13:39:17 +00:00
arensb
eff606ba56 Replaced expressions of the form "$x = $x <op> $y" with "$x <op>= $y".
Thus, $x = $x+2 becomes $x += 2, and so forth.
2002-10-13 11:32:14 +00:00
arensb
fddab26c2e Deleted unused variables.
Removed trailing whitespace.
2002-10-13 08:27:49 +00:00
arensb
c7f9fb2b99 Added some FIXME comments. 2002-10-13 05:56:10 +00:00
arensb
81ec28f127 Replaced &requireDBI with C4::Context->dbh 2002-10-11 12:34:53 +00:00
tipaul
b47c3c7627 bugfixes 2002-10-10 14:48:25 +00:00
tipaul
dd1fd87846 road to 1.3.1 : viewing MARC biblio 2002-10-07 14:04:26 +00:00
arensb
dbca39823f Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.
2002-10-05 09:44:27 +00:00
tipaul
f75126490d Extending Context.pm to add stopword management and using it in MARC-API.
First benchmarks show a medium speed improvement, which  is nice as this part is heavily called.
2002-10-03 11:28:18 +00:00
tipaul
0d150edefe road to 1.3.1 2002-10-02 16:26:44 +00:00
arensb
048d545d11 Added some FIXME comments, mostly marking duplicate functions. 2002-10-01 11:48:51 +00:00
tipaul
3120194e94 long WAS the road to 1.3.0...
coming VERY SOON NOW...
modifying installer and buildrelease to update the DB
2002-09-24 13:49:26 +00:00
arensb
4bddc658c2 Added some FIXME comments. 2002-09-22 16:49:20 +00:00
tipaul
973334c26a long is the road to 1.4.0
* MARCadditem and MARCmoditem now wroks
* various bugfixes in MARC management
!!! 1.3.0 should be released very soon now. Be careful !!!
2002-09-20 12:57:46 +00:00
tipaul
de7dfb22fc MARC API continued...
* some bugfixes
* multiple item management : MARCadditem and MARCmoditem have been added. They suppose that ALL the MARC field linked to koha-item are in the same MARC tag (on the same line of MARC file)

Note : it should not be hard for marcimport and marcexport to re-link fields from internal tag/subfield to "legal" tag/subfield.
2002-09-10 13:53:52 +00:00
tonnesen
1e67687742 Added copyright statement to all .pl and .pm files 2002-08-14 18:12:50 +00:00
tipaul
0ae56dd011 pod documenting the API. 2002-07-25 13:40:31 +00:00
tipaul
9fb81afb85 Now, the API...
Database.pm and Output.pm are almost not modified (var test...)

Biblio.pm is almost completly rewritten.

WHAT DOES IT ??? ==> END of Hitchcock suspens

1st, it does... nothing...
Every old API should be there. So if MARC-stuff is not done, the behaviour is EXACTLY the same (if there is no added bug, of course). So, if you use normal acquisition, you won't find anything new neither on screen or old-DB tables ...

All old-API functions have been cloned. for example, the "newbiblio" sub, now has become :
* a "newbiblio" sub, with the same parameters. It just call a sub named OLDnewbiblio
* a "OLDnewbiblio" sub, which is a copy/paste of the previous newbiblio sub. Then, when you want to add the MARC-DB stuff, you can modify the newbiblio sub without modifying the OLDnewbiblio one. If we correct a bug in 1.2 in newbiblio, we can do the same in main branch by correcting OLDnewbiblio.
* The MARC stuff is usually done through a sub named MARCxxx where xxx is the same as OLDxxx. For example, newbiblio calls MARCnewbiblio. the MARCxxx subs use a MARC::Record as parameter.
The last thing to solve was to manage biblios through real MARC import : they must populate the old-db, but must populate the MARC-DB too, without loosing information (if we go from MARC::Record to old-data then back to MARC::Record, we loose A LOT OF ROWS). To do this, there are subs beginning by "ALLxxx" : they manage datas with MARC::Record datas. they call OLDxxx sub too (to populate old-DB), but MARCxxx subs too, with a complete MARC::Record ;-)

In Biblio.pm, there are some subs that permits to build a old-style record from a MARC::Record, and the opposite. There is also a sub finding a MARC-bibid from a old-biblionumber and the opposite too.
Note we have decided with steve that a old-biblio <=> a MARC-Biblio.
2002-07-24 16:11:37 +00:00
tonnesen
e30b2ea968 use warnings breaks perl 5.005 2002-07-08 16:45:34 +00:00
tipaul
528f1b2b80 Long is the road to MARC..
Not related to MARC :
* removed HLT- empty link when no basket for a supplier (should be useful to copy this into rel-1-2 i think)
* fixed some "use of uninitialized value"
related to MARC
* changed use Acquisition to use Catalogue, new package for MARC management

For instance, nothing is done to MARC DB, but structure is modified (see Biblio.pm for details), and everything seems to work : it's still possible to use acqui, and it fills old-DB pretty good.

WARNING : if you work on main trunk, please note Acquisition.pm is NO MORE USED in /acqui/ system. Every sub in Acquisition.pm has been moved to Biblio.pm or Catalogue.pm.
2002-07-04 15:53:02 +00:00
tipaul
3bee5b5743 * Acquisition synchronised with rel-1-2
* Update of biblio.pm and catalogue.pm that continuates MARC stuff. Lot of explanations at the beginning of Biblio.pm
2002-06-20 21:07:30 +00:00
tipaul
3d7df52b0d Going to MARC 1.4...
0- Requires MARC::Record from cpan to work

1- divided Catalogue.pm in 2 parts :
Biblio.pm ,that contains biblio management
Catalogue.pm, that contains acquisition management.
When ended, they will replace the Acquisition.pm package

2- Created MARCxxx functions :
* MARCgetbiblio : retrieves a MARC::Record from the bibid passed in parameter (working, see test.pl script)
* MARCaddbiblio : creates a MARC-DB entry, for a MARC::Record given as parameter. (working)
* MARCmodsubfield : modifies a subfield for a given subfieldid
* MARCfingsubfield : retrieves a subfieldvalue from a bibid/tag/subfield
* MARCaddsubfield : adds a subfield to biblio into the DB
* MARCkoha2marc : builds a MARC::Record, given a biblionumber, a biblioitemnumber and/or an itemnumber. (working).


TODO :
A lot ;-))))
For instance, you can create only a MARC-DB entry from a old-DB entry. Note some questions are still to solve around bibid (old-DB/MARC-DB)...
2002-06-14 16:47:33 +00:00