Commit graph

58 commits

Author SHA1 Message Date
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
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
tipaul
5e44e797eb synch'ing 2.2 and head 2005-06-20 13:15:46 +00:00
tipaul
7aad473042 synch'ing 2.2 and head 2005-05-04 08:45:03 +00:00
doxulting
bc7a148e96 Added a new case for =duplicate 2005-03-01 16:35:09 +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
230e6759ba bugfix : when modifying a biblio, on a repeated field with many subfields, the test to show empty subfields in X>1 was wrong : the missing subfields of the 1st field were repeated.
Example :
606 has $a$x$z

1st is 606$a (so $x$z empty)
2nd is 606$a$x

The marc editor in the 2nd field showed before this fix :
606 $a a_value
   $x another_value
   $x
   $z
(the 2nd $x being useless
2004-12-23 08:43:43 +00:00
oleonard
a8ed2fd65a Quoting attributes in script-generated HTML 2004-11-16 22:40:40 +00:00
tipaul
22d416f5bd missing use C4 2004-11-08 19:44:51 +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
691aec77b0 (bugfix for previous commit, that was wrong)
when repeating a repeatable field, the new field is now :
* created AFTER the existing field(s)

This is more logic when adding subjects, from most to less important (or author, or anything else).
2004-10-04 20:02:36 +00:00
tipaul
d4b74a5013 when repeating a repeatable field, the new field is now :
* empty
* created AFTER the existing field(s)

This is more logic when adding subjects, from most to less important (or author, or anything else).
2004-09-30 15:52:28 +00:00
tipaul
121ba6b2ba a subfield checked to a plugin can manually be modified 2004-09-23 16:12:06 +00:00
tipaul
b77d7eddaa bugfix : repeatable field management for new biblio 2004-09-13 15:18:58 +00:00
tipaul
cac4a46055 fixing minor bug for hidden fields in editor 2004-09-02 16:21:29 +00:00
tipaul
19ae27fc49 minor modifs for hidden subfields 2004-08-18 16:04:53 +00:00
tipaul
bedba1eb5e bugfix : adding existing value for fields mapped to authority & modif of a biblio. 2004-08-17 11:05:17 +00:00
tipaul
37d454a82a adding frameworkcode to API in some subs 2004-08-13 16:37:25 +00:00
tipaul
f3547ff1c8 last sync for 2.1.0 release 2004-06-29 16:07:09 +00:00
tipaul
ff113395ff MARC authority management (continued) 2004-06-10 09:33:56 +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
8e8230f792 warning commented 2004-05-28 08:22:10 +00:00
tipaul
88e67b8d3e framework management : 1 MARC framework for each itemtype 2004-05-18 15:22:10 +00:00
tipaul
e03a18467c removing maxlength=80 in MARC editor : Koha can handle fields >> 255, so the marxlength is stupid. 2004-03-17 16:55:40 +00:00
tipaul
3635a596cf synch'ing 2.0.0 branch and head 2004-02-11 08:35:31 +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
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
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
8f989ba073 *** empty log message *** 2003-05-21 14:34:44 +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
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
05e5034932 bugfixes + adding buttons to switch between normal and MARC view of a record 2003-03-07 16:34:04 +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
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
tipaul
1f4e2fb312 warn removing 2003-01-14 16:43:50 +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