Commit graph

104 commits

Author SHA1 Message Date
tipaul
3635a596cf synch'ing 2.0.0 branch and head 2004-02-11 08:35:31 +00:00
tipaul
15088957e4 synch'ing with rel_2_0 2004-01-12 16:55:48 +00:00
tipaul
f8bde9b034 sync'ing with rel_2_0 (mostly prepare/execute pb, bug #662) 2003-12-22 19:16:58 +00:00
tipaul
94deaaec47 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 17:12:41 +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
21a38798e6 removing warning 2003-09-04 13:08:17 +00:00
tipaul
0ee4bfe070 fix for 565 : item barcode not checked unique 2003-09-04 13:04:12 +00:00
tipaul
bc124d87f4 fixing bug in char decoding 2003-08-06 12:37:32 +00:00
tipaul
010f15b12b small fix for biblio modif : when modifying a biblio, fields that were left 100% empty during add were no more in the editor. Thus, it was impossible to add them forever. This 1 line fix restore correct behaviour. 2003-06-26 14:11:09 +00:00
tipaul
2537461334 repetable field support.
The 3 problem from yesterday are fixed :
* cc the + to each tab (for instance, only in tab 0)
* doing the french template
* fixing an annoying bug : everything is stored in the same field :
200$a$b$c$a$b$c and not
200$a$b$c
200$a$b$c
as expected.

100% FUNCTIONNAL (at least I expect !)

IMPORTANT NOTE :
ALL subfields from a field MUST be in the same tab. Otherwise, Koha can't magically find how to group subfields in case of repeted fields.
I'll add a check in checkmarc immediatly.
That's not a "bug" in Koha. That's mandatory because of MARC structure.
2003-06-20 14:32:08 +00:00
tipaul
28b099f89e partial work for repetable fields.
Near each field is a +
If you click on it, it's duplicated.
TODO :
* cc the + to each tab (for instance, only in tab 0)
* doing the french template
* fixing an annoying bug : everything is stored in the same field :
200$a$b$c$a$b$c and not
200$a$b$c
200$a$b$c
 as expected.
2003-06-19 16:38:49 +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
tipaul
7b1a99acc6 unused script 2003-06-05 14:13:58 +00:00
tipaul
03f9467912 moving breeding farm import to parameters page (GUI) and to new import/ directory (code structure) 2003-06-04 13:46:24 +00:00
tipaul
8f989ba073 *** empty log message *** 2003-05-21 14:34:44 +00:00
rangi
becb6ce25c Mostly templated.
Still needs some work
2003-05-11 06:59:11 +00:00
rangi
45b2420797 This script is now templated
3 more to go i think
2003-05-09 23:47:22 +00:00
rangi
9f73cb0732 Continuing work on the nonmarc simple acq 2003-05-04 04:00:00 +00:00
rangi
4da8f3c721 We have a simple acquisitions system without marc mostly going now.
You can add a new biblio/biblioitem/item  now.

Currently you can only do this by using the   Add biblio without ISBN/ISSN
link. The next task is to get the isbnsearch and title search linking to the
nonmarc scripts if marc support is off, and then to template them all.
2003-05-04 03:16:15 +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
a118eeacfc 1st draft for z3950 client import.
moving Breeding farm script to a perl package C4/Breeding.pm
2003-04-22 12:22:52 +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
13922e8276 fixing bug when a search gets more than 10 biblios : now, user can reach biblio 10, 20, 30... 2003-03-19 21:01:01 +00:00
tipaul
05e5034932 bugfixes + adding buttons to switch between normal and MARC view of a record 2003-03-07 16:34:04 +00:00
wolfpac444
4d88a09509 Removed the unecessary $dbh argument from being passed.
Resolved a few minor FIXMEs.
2003-02-19 01:01:06 +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
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
acli
1bf47197ba Added some POD, minor comment fixes 2003-02-03 07:03:06 +00:00
acli
52a5fd4bbd Moved C4/Charset.pm to C4/Interface/CGI/Output.pm
Create output_html_with_http_headers function to contain the "print $query
->header(-type => guesstype...),..." call. This is in preparation for
non-HTML output (e.g., text/xml) and charset conversion before output in
the future.

Created C4/Interface/CGI/Template.pm to hold convenience functions specific
to the CGI interface using HTML::Template

Modified moremembers.pl to make the "sex" field localizable for languages
where M and F doesn't make sense
2003-02-02 07:18:37 +00:00
tipaul
75a46dc5bd removing use MARC::Charset
Was a buggy test
2003-01-28 15:28:31 +00:00
tipaul
3f3aec97e0 user can now search in breeding farm with isbn/issn or title. Title/name are stored in breeding farm and showed when a search is done 2003-01-28 15:00:30 +00:00
acli
48bd1f1b3c Handle non-latin1 charsets 2003-01-26 23:21:49 +00:00
tipaul
a9b32d47f4 upgrading import in breeding farm (you can now search on ISBN or on title) AND character encoding. 2003-01-23 12:26:41 +00:00
tipaul
70adcdf925 character encoding ISO646 => 8859-1, first draft 2003-01-21 08:13:50 +00:00
acli
125c7f9c7e Handle meta tags for non-latin1 charsets 2003-01-20 07:39:27 +00:00
acli
ea50c2acb6 Preliminary fix of the CGI.pm problem of always assuming that everything is
in ISO-8859-1.

A new C4::Charset module (tentative name) has been created to guess the
charset of a piece of HTML markup. The CGI programs will be modified to use
this module as they are encountered during translation.
2003-01-19 06:15:44 +00:00
tipaul
3b6f7a6d06 little improvments (mandatory subfields in item appear red if not filled) 2003-01-14 16:45:33 +00:00
tipaul
1f4e2fb312 warn removing 2003-01-14 16:43:50 +00:00
tipaul
08ba8abf0f bugfix : use gettemplate_and_user instead of gettemplate.
fix a blank screen in 1.3.3 in "import in breeding farm"
2003-01-14 16:41:17 +00:00
tipaul
63c8e57b7a removing trailing # 2003-01-06 13:06:28 +00:00
tipaul
d9fa74c37e minor bugfix (for biblio modification) 2002-12-19 14:20:27 +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
6c9d2864d6 * bugfixes
* improvements done during dombes intallation/tests
* adding authentication (new Auth.pm)
2002-12-10 13:29:09 +00:00
tipaul
ef66fec140 bugfixes : enable entering a biblio without isbn
Note that parameter must be modified and changed to "isbn not mandatory" (mandatory on default 1.3.2 install)
2002-12-02 15:13:04 +00:00
tipaul
58df1490fb moved to misc 2002-11-22 10:21:12 +00:00
tipaul
ba814c7544 moving z3950 related scripts to specific dir 2002-11-22 10:15:22 +00:00
tipaul
5a83c14404 small bugfix 2002-11-22 10:13:20 +00:00