6 # This script checks for required updates to the database.
8 # Part of the Koha Library Software www.koha.org
9 # Licensed under the GPL.
12 # - Would also be a good idea to offer to do a backup at this time...
14 # NOTE: If you do something more than once in here, make it table driven.
24 # FIXME - The user might be installing a new database, so can't rely
25 # on /etc/koha.conf anyway.
32 %existingtables, # tables already in database
36 $type, $null, $key, $default, $extra,
37 $prefitem, # preference item in systempreferences table
40 my $dbh = C4::Context->dbh;
45 # Tables to add if they don't exist
47 shelfcontents => "( shelfnumber int not null,
48 itemnumber int not null,
50 bookshelf => "( shelfnumber int auto_increment primary key,
51 shelfname char(255))",
52 z3950queue => "( id int auto_increment primary key,
61 identifier char(30))",
62 z3950results => "( id int auto_increment primary key,
72 branchrelations => "( branchcode varchar(4),
73 categorycode varchar(4))",
74 websites => "( websitenumber int(11) NOT NULL auto_increment,
75 biblionumber int(11) NOT NULL default '0',
79 PRIMARY KEY (websitenumber) )",
80 marcrecorddone => "( isbn char(40),
83 controlnumber char(40))",
84 uploadedmarc => "( id int(11) NOT NULL auto_increment PRIMARY KEY,
86 hidden smallint(6) default NULL,
87 name varchar(255) default NULL)",
88 ethnicity => "( code varchar(10) NOT NULL default '',
89 name varchar(255) default NULL,
90 PRIMARY KEY (code) )",
91 sessions => "( sessionID varchar(255) NOT NULL default '',
92 userid varchar(255) default NULL,
93 ip varchar(16) default NULL,
95 PRIMARY KEY (sessionID) )",
96 sessionqueries => "( sessionID varchar(255) NOT NULL default '',
97 userid char(100) NOT NULL default '',
98 ip char(18) NOT NULL default '',
99 url text NOT NULL default '' )",
100 bibliothesaurus => "( id bigint(20) NOT NULL auto_increment,
101 freelib char(255) NOT NULL default '',
102 stdlib char(255) NOT NULL default '',
103 category char(10) NOT NULL default '',
104 level tinyint(4) NOT NULL default '1',
105 hierarchy char(80) NOT NULL default '',
106 father char(80) NOT NULL default '',
108 KEY freelib (freelib),
110 KEY category (category),
111 KEY hierarchy (hierarchy)
114 bibid bigint(20) unsigned NOT NULL auto_increment,
115 biblionumber int(11) NOT NULL default '0',
116 datecreated date NOT NULL default '0000-00-00',
117 datemodified date default NULL,
118 origincode char(20) default NULL,
120 KEY origincode (origincode),
121 KEY biblionumber (biblionumber)
123 marc_blob_subfield => "(
124 blobidlink bigint(20) NOT NULL auto_increment,
125 subfieldvalue longtext NOT NULL,
126 PRIMARY KEY (blobidlink)
128 marc_subfield_structure => "(
129 tagfield char(3) NOT NULL default '',
130 tagsubfield char(1) NOT NULL default '',
131 liblibrarian char(255) NOT NULL default '',
132 libopac char(255) NOT NULL default '',
133 repeatable tinyint(4) NOT NULL default '0',
134 mandatory tinyint(4) NOT NULL default '0',
135 kohafield char(40) default NULL,
136 tab tinyint(1) default NULL,
137 authorised_value char(10) default NULL,
138 thesaurus_category char(10) default NULL,
139 value_builder char(80) default NULL,
140 PRIMARY KEY (tagfield,tagsubfield),
141 KEY kohafield (kohafield),
144 marc_subfield_table => "(
145 subfieldid bigint(20) unsigned NOT NULL auto_increment,
146 bibid bigint(20) unsigned NOT NULL default '0',
147 tag char(3) NOT NULL default '',
148 tagorder tinyint(4) NOT NULL default '1',
149 tag_indicator char(2) NOT NULL default '',
150 subfieldcode char(1) NOT NULL default '',
151 subfieldorder tinyint(4) NOT NULL default '1',
152 subfieldvalue varchar(255) default NULL,
153 valuebloblink bigint(20) default NULL,
154 PRIMARY KEY (subfieldid),
157 KEY tag_indicator (tag_indicator),
158 KEY subfieldorder (subfieldorder),
159 KEY subfieldcode (subfieldcode),
160 KEY subfieldvalue (subfieldvalue),
161 KEY tagorder (tagorder)
163 marc_tag_structure => "(
164 tagfield char(3) NOT NULL default '',
165 liblibrarian char(255) NOT NULL default '',
166 libopac char(255) NOT NULL default '',
167 repeatable tinyint(4) NOT NULL default '0',
168 mandatory tinyint(4) NOT NULL default '0',
169 authorised_value char(10) default NULL,
170 PRIMARY KEY (tagfield)
173 bibid bigint(20) NOT NULL default '0',
174 tag char(3) NOT NULL default '',
175 tagorder tinyint(4) NOT NULL default '1',
176 subfieldid char(1) NOT NULL default '',
177 subfieldorder tinyint(4) NOT NULL default '1',
178 word varchar(255) NOT NULL default '',
179 sndx_word varchar(255) NOT NULL default '',
182 KEY tagorder (tagorder),
183 KEY subfieldid (subfieldid),
184 KEY subfieldorder (subfieldorder),
186 KEY sndx_word (sndx_word)
188 marc_breeding => "( id bigint(20) NOT NULL auto_increment,
189 file varchar(80) NOT NULL default '',
190 isbn varchar(10) NOT NULL default '',
191 title varchar(128) default NULL,
192 author varchar(80) default NULL,
194 encoding varchar(40) default NULL,
199 authorised_values => "(id int(11) NOT NULL auto_increment,
200 category char(10) NOT NULL default '',
201 authorised_value char(80) NOT NULL default '',
206 userflags => "( bit int(11) NOT NULL default '0',
207 flag char(30), flagdesc char(255),
212 my %requirefields = (
213 biblio => { 'abstract' => 'text' },
214 deletedbiblio => { 'abstract' => 'text' },
216 'lccn' => 'char(25)',
217 'url' => 'varchar(255)',
220 deletedbiblioitems => {
221 'lccn' => 'char(25)',
222 'url' => 'varchar(255)',
225 branchtransfers => { 'datearrived' => 'datetime' },
226 statistics => { 'borrowernumber' => 'int(11)' },
228 'invoicedisc' => 'float(6,4)',
229 'nocalc' => 'int(11)'
232 'userid' => 'char(30)',
233 'password' => 'char(30)',
234 'flags' => 'int(11)',
235 'textmessaging' => 'varchar(30)',
236 'zipcode' => 'varchar(25)',
237 'homezipcode' => 'varchar(25)',
239 aqorders => { 'budgetdate' => 'date' },
240 aqbudget => {'aqbudgetid' => 'tinyint(4) auto_increment primary key'},
242 #added so that reference items are not available for reserves...
243 itemtypes => { 'notforloan' => 'smallint(6)' },
244 systempreferences => { 'explanation' => 'char(80)',
245 'type' => 'char(20)',
246 'options' => 'text' },
247 z3950servers => { 'syntax' => 'char(80)' },
250 my %dropable_table = (
251 classification => 'classification',
252 multipart => 'multipart',
253 multivolume => 'multivolume',
254 newitems => 'newitems',
255 procedures => 'procedures',
256 publisher => 'publisher',
257 searchstats => 'searchstats',
258 serialissues => 'serialissues',
261 # The tabledata hash contains data that should be in the tables.
262 # The uniquefieldrequired hash entry is used to determine which (if any) fields
263 # must not exist in the table for this row to be inserted. If the
264 # uniquefieldrequired entry is already in the table, the existing data is not
265 # modified, unless the forceupdate hash entry is also set. Fields in the
266 # anonymous "forceupdate" hash will be forced to be updated to the default
267 # values given in the %tabledata hash.
272 uniquefieldrequired => 'bit',
274 flag => 'superlibrarian',
275 flagdesc => 'Access to all librarian functions',
279 uniquefieldrequired => 'bit',
282 flagdesc => 'Circulate books',
286 uniquefieldrequired => 'bit',
289 flagdesc => 'View Catalogue (Librarian Interface)',
293 uniquefieldrequired => 'bit',
295 flag => 'parameters',
296 flagdesc => 'Set Koha system paramters',
300 uniquefieldrequired => 'bit',
303 flagdesc => 'Add or modify borrowers',
307 uniquefieldrequired => 'bit',
309 flag => 'permissions',
310 flagdesc => 'Set user permissions',
314 uniquefieldrequired => 'bit',
316 flag => 'reserveforothers',
317 flagdesc => 'Reserve books for patrons',
321 uniquefieldrequired => 'bit',
324 flagdesc => 'Borrow books',
328 uniquefieldrequired => 'bit',
330 flag => 'reserveforself',
331 flagdesc => 'Reserve books for self',
335 uniquefieldrequired => 'bit',
337 flag => 'editcatalogue',
338 flagdesc => 'Edit Catalogue (Modify bibliographic/holdings data)',
342 uniquefieldrequired => 'bit',
344 flag => 'updatecharges',
345 flagdesc => 'Update borrower charges',
349 systempreferences => [
351 uniquefieldrequired => 'variable',
352 forceupdate => { 'explanation' => 1,
354 variable => 'autoMemberNum',
356 explanation => 'Member number is auto-calculated',
361 uniquefieldrequired => 'variable',
362 forceupdate => { 'explanation' => 1,
365 variable => 'acquisitions',
368 'Normal, budget-based acquisitions, or Simple bibliographic-data acquisitions',
370 options => 'simple|normal'
373 uniquefieldrequired => 'variable',
374 forceupdate => { 'explanation' => 1,
377 variable => 'dateformat',
380 'date format (US mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy/mm/dd)',
382 options => 'metric|us|iso'
385 uniquefieldrequired => 'variable',
386 variable => 'template',
387 forceupdate => { 'explanation' => 1,
390 explanation => 'Preference order for intranet interface templates',
394 uniquefieldrequired => 'variable',
395 variable => 'autoBarcode',
396 forceupdate => { 'explanation' => 1,
399 explanation => 'Barcode is auto-calculated',
403 uniquefieldrequired => 'variable',
404 variable => 'insecure',
405 forceupdate => { 'explanation' => 1,
409 'If YES, no auth at all is needed. Be careful if you set this to yes!',
413 uniquefieldrequired => 'variable',
414 variable => 'authoritysep',
415 forceupdate => { 'explanation' => 1,
420 'the separator used in authority/thesaurus. Usually --',
425 uniquefieldrequired => 'variable',
426 variable => 'opaclanguages',
427 forceupdate => { 'explanation' => 1,
430 explanation => 'Set the preferred order for translations. The top language will be tried first.',
434 uniquefieldrequired => 'variable',
435 variable => 'opacthemes',
436 forceupdate => { 'explanation' => 1,
439 explanation => 'Set the preferred order for themes. The top theme will be tried first.',
443 uniquefieldrequired => 'variable',
444 variable => 'timeout',
445 forceupdate => { 'explanation' => 1,
448 explanation => 'Inactivity timeout for cookies authentication (in seconds)',
452 uniquefieldrequired => 'variable',
454 forceupdate => { 'explanation' => 1,
457 explanation => 'Turn on MARC support',
461 uniquefieldrequired => 'variable',
462 variable => 'marcflavour',
463 forceupdate => { 'explanation' => 1,
468 'your MARC flavor (MARC21 or UNIMARC) used for character encoding',
470 options => 'MARC21|UNIMARC'
473 uniquefieldrequired => 'variable',
474 variable => 'checkdigit',
476 forceupdate => { 'explanation' => 1,
479 explanation => 'Validity checks on membership number: none or "Katipo" style checks',
481 options => 'none|katipo'
484 uniquefieldrequired => 'variable',
485 variable => 'maxoutstanding',
486 forceupdate => { 'explanation' => 1,
490 'maximum amount withstanding to be able make reserves ',
494 uniquefieldrequired => 'variable',
495 variable => 'maxreserves',
496 forceupdate => { 'explanation' => 1,
500 'maximum number of reserves a member can make',
505 uniquefieldrequired => 'variable',
506 variable => 'noissuescharge',
507 forceupdate => { 'explanation' => 1,
511 'maximum amount withstanding to be able to check out an item',
516 uniquefieldrequired => 'variable',
517 variable => 'KohaAdminEmailAddress',
518 forceupdate => { 'explanation' => 1,
520 value => 'your.mail@here',
521 explanation => 'the email adress where borrowers modifs are sent',
525 uniquefieldrequired => 'variable',
527 forceupdate => { 'explanation' => 1,
530 explanation => 'the gist rate. NOT in %, but in numeric form (0.12 for 12%)',
537 my %fielddefinitions = (
540 field => 'printername',
549 field => 'bookfundid',
558 field => 'aqbudgetid',
559 type => 'tinyint(4)',
562 default => 'auto_increment'
572 extra => 'auto_increment'
582 # Get version of MySQL database engine.
583 my $mysqlversion = `mysqld --version`;
584 $mysqlversion =~ /Ver (\S*) /;
586 if ( $mysqlversion ge '3.23' ) {
587 print "Could convert to MyISAM database tables...\n";
590 #---------------------------------
593 # Collect all tables into a list
594 $sth = $dbh->prepare("show tables");
596 while ( my ($table) = $sth->fetchrow ) {
597 $existingtables{$table} = 1;
600 # Now add any missing tables
601 foreach $table ( keys %requiretables ) {
602 print "Checking $table table...\n" if $debug;
603 unless ( $existingtables{$table} ) {
604 print "Adding $table table...\n";
605 my $sth = $dbh->prepare("create table $table $requiretables{$table}");
608 print "Error : $sth->errstr \n";
614 # now drop useless tables
615 foreach $table ( keys %dropable_table ) {
616 print "Dropping unused tables...\n" if $debug;
617 if ( $existingtables{$table} ) {
618 $dbh->do("drop table $table");
620 print "Error : $dbh->errstr \n";
624 unless ( $existingtables{'z3950servers'} ) {
625 print "Adding z3950servers table...\n";
626 my $sti = $dbh->prepare( "create table z3950servers (
638 $sti = $dbh->prepare( "insert into z3950servers
639 values ('z3950.loc.gov',
643 'Library of Congress',
649 #---------------------------------
652 foreach $table ( keys %requirefields ) {
653 print "Check table $table\n" if $debug;
654 $sth = $dbh->prepare("show columns from $table");
657 while ( ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
659 $types{$column} = $type;
661 foreach $column ( keys %{ $requirefields{$table} } ) {
662 print " Check column $column [$types{$column}]\n" if $debug;
663 if ( !$types{$column} ) {
665 # column doesn't exist
666 print "Adding $column field to $table table...\n";
667 $query = "alter table $table
668 add column $column " . $requirefields{$table}->{$column};
669 print "Execute: $query\n" if $debug;
670 my $sti = $dbh->prepare($query);
673 print "**Error : $sti->errstr \n";
680 foreach $table ( keys %fielddefinitions ) {
681 print "Check table $table\n" if $debug;
682 $sth = $dbh->prepare("show columns from $table");
685 while ( ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
687 $definitions->{$column}->{type} = $type;
688 $definitions->{$column}->{null} = $null;
689 $definitions->{$column}->{key} = $key;
690 $definitions->{$column}->{default} = $default;
691 $definitions->{$column}->{extra} = $extra;
693 my $fieldrow = $fielddefinitions{$table};
694 foreach my $row (@$fieldrow) {
695 my $field = $row->{field};
696 my $type = $row->{type};
697 my $null = $row->{null};
698 my $key = $row->{key};
699 my $default = $row->{default};
700 my $extra = $row->{extra};
701 my $def = $definitions->{$field};
702 unless ( $type eq $def->{type}
703 && $null eq $def->{null}
704 && $key eq $def->{key}
705 && $default eq $def->{default}
706 && $extra eq $def->{extra} )
712 if ( $key eq 'PRI' ) {
713 $key = 'PRIMARY KEY';
715 unless ( $extra eq 'auto_increment' ) {
720 "alter table $table change $field $field $type $null $key $extra default ?"
722 $sth->execute($default);
723 print " Alter $field in $table\n";
728 # Get list of columns from items table
731 $sth = $dbh->prepare("show columns from items");
733 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
735 $itemtypes{$column} = $type;
738 unless ( $itemtypes{'barcode'} eq 'varchar(20)' ) {
739 $itemtypes{'barcode'} =~ /varchar\((\d+)\)/;
741 if ( $oldlength < 20 ) {
742 print "Setting maximum barcode length to 20 (was $oldlength).\n";
745 "alter table items change barcode barcode varchar(20) not null");
750 # extending the timestamp in branchtransfers...
753 $sth = $dbh->prepare("show columns from branchtransfers");
755 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
757 $branchtransfers{$column} = $type;
760 unless ( $branchtransfers{'datesent'} eq 'datetime' ) {
761 print "Setting type of datesent in branchtransfers to datetime.\n";
764 "alter table branchtransfers change datesent datesent datetime");
768 unless ( $branchtransfers{'datearrived'} eq 'datetime' ) {
769 print "Setting type of datearrived in branchtransfers to datetime.\n";
772 "alter table branchtransfers change datearrived datearrived datetime");
776 # changing the branchcategories table around...
777 my %branchcategories;
779 $sth = $dbh->prepare("show columns from branchcategories");
781 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
783 $branchcategories{$column} = $type;
786 unless ( $branchcategories{'categorycode'} eq 'varchar(4)' ) {
788 "Setting type of categorycode in branchcategories to varchar(4),\n and making the primary key.\n";
791 "alter table branchcategories change categorycode categorycode varchar(4) not null"
796 "alter table branchcategories add primary key (categorycode)");
800 unless ( $branchcategories{'categoryname'} eq 'text' ) {
801 print "Changing branchcode in branchcategories to categoryname text.\n";
804 "alter table branchcategories change branchcode categoryname text");
808 unless ( $branchcategories{'codedescription'} eq 'text' ) {
810 "Replacing branchholding in branchcategories with codedescription text.\n";
813 "alter table branchcategories change branchholding codedescription text"
818 # Populate tables with required data
820 foreach my $table ( keys %tabledata ) {
821 print "Checking for data required in table $table...\n";
822 my $tablerows = $tabledata{$table};
823 foreach my $row (@$tablerows) {
824 my $uniquefieldrequired = $row->{uniquefieldrequired};
825 my $uniquevalue = $row->{$uniquefieldrequired};
826 my $forceupdate = $row->{forceupdate};
829 "select $uniquefieldrequired from $table where $uniquefieldrequired=?"
831 $sth->execute($uniquevalue);
833 foreach my $field (keys %$forceupdate) {
834 if ($forceupdate->{$field}) {
835 my $sth=$dbh->prepare("update systempreferences set $field=? where $uniquefieldrequired=?");
836 $sth->execute($row->{$field}, $uniquevalue);
840 print "Adding row to $table: ";
844 foreach my $field ( keys %$row ) {
845 next if $field eq 'uniquefieldrequired';
846 next if $field eq 'forceupdate';
847 my $value = $row->{$field};
848 push @values, $value;
849 print " $field => $value";
850 $fieldlist .= "$field,";
851 $placeholders .= "?,";
854 $fieldlist =~ s/,$//;
855 $placeholders =~ s/,$//;
858 "insert into $table ($fieldlist) values ($placeholders)");
859 $sth->execute(@values);
869 # Revision 1.53 2003/07/07 14:11:16 tipaul
870 # fixing bug #526 : gst rate is now calculated through systempref gist entry.
872 # * was harcoded to 12,5%
873 # * some bugs in template parameters prevented the javascript to work.
874 # * some bugs prevented some calculations to be done properly.
876 # Revision 1.52 2003/06/23 15:54:32 tipaul
877 # *** empty log message ***
879 # Revision 1.51 2003/06/23 11:27:29 tipaul
880 # *** empty log message ***
882 # Revision 1.50 2003/06/11 21:28:22 tonnesen
883 # Added modifications required to the systempreferences table by the new
884 # systempreferences.pl script. The systempreferences.pl script will not work
885 # properly until this table is updated.
887 # Revision 1.49 2003/05/26 10:41:53 tipaul
888 # bugfix : borrowers modifs overwritten by stupid hash entry existing twice.
890 # Revision 1.48 2003/05/20 19:50:45 slef
891 # Initial fix to bug 456: hardwired paths
893 # Revision 1.47 2003/05/15 12:23:33 tipaul
894 # adding zipcode and homezipcode into borrowers table (bug #246
896 # Revision 1.46 2003/05/08 12:48:24 wolfpac444
897 # Added "noissuescharge" parameter
899 # Revision 1.45 2003/05/08 12:26:16 wolfpac444
902 # Revision 1.44 2003/05/03 05:39:57 rangi
904 # (Wording changes in the explanation fields in system preferences)
906 # Revision 1.43 2003/05/02 23:01:09 rangi
907 # Adding the textmessaging column to the borrowers table.
908 # insertdata.pl is expecting this to exist, and hence modifying/adding
909 # borrowers was broken.
911 # Also ran they script thru perltidy
913 # Revision 1.42 2003/04/29 16:53:25 tipaul
914 # really proud of this commit :-)
915 # z3950 search and import seems to works fine.
916 # Let me explain how :
917 # * a "search z3950" button is added in the addbiblio template.
918 # * when clicked, a popup appears and z3950/search.pl is called
919 # * z3950/search.pl calls addz3950search in the DB
920 # * the z3950 daemon retrieve the records and stores them in z3950results AND in marc_breeding table.
921 # * as long as there as searches pending, the popup auto refresh every 2 seconds, and says how many searches are pending.
922 # * when the user clicks on a z3950 result => the parent popup is called with the requested biblio, and auto-filled
925 # * 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.
926 # * 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.
928 # Revision 1.41 2003/04/29 08:09:44 tipaul
929 # z3950 support is coming...
930 # * adding a syntax column in z3950 table = this column will say wether the z3950 must be called with PerferedRecordsyntax => USMARC or PerferedRecordsyntax => UNIMARC. I tried some french UNIMARC z3950 servers, and some only send USMARC, some only UNIMARC, some can answer with both.
931 # Note this is a 1st draft. More to follow (today ? I hope).
933 # Revision 1.40 2003/04/22 10:48:27 wolfpac444
934 # Added "father" column to bibliothesaurus table
936 # Revision 1.39 2003/04/04 08:45:00 tipaul
937 # last commits before 1.9.1
939 # Revision 1.38 2003/03/18 10:58:19 tipaul
940 # adding checkdigit parameter that choose how to check the members cardnumber.
942 # * none = no checking
943 # * katipo = checked as before
945 # Revision 1.37 2003/01/30 01:47:48 acli
946 # Corrected syntax error reported by Benedict
948 # Made the indentation somewhat easier to read; the messiness probably caused
949 # the original syntax error.
951 # Revision 1.36 2003/01/28 15:13:30 tipaul
952 # userflag table now created in upgrade script (bugfix #171)
954 # Revision 1.35 2003/01/27 03:12:49 acli
955 # Reworded the description for "acquisitions" to make it fit on the screen
957 # Added "iso" to dateformat, since dateformat is not yet being used anyway
959 # Revision 1.34 2003/01/23 12:30:02 tipaul
960 # introducint marcflavour in systempref file : used for character decoding
962 # Revision 1.33 2003/01/21 09:03:27 tipaul
963 # bugfix (NOTE : this bugs makes installation of the 1.3.3 a little fuzzy. Please fix your DB if you installed 1.3.3)
965 # Revision 1.32 2003/01/16 10:29:45 tipaul
966 # adding a MARC parameter in systempref ( which is ON or OFF)
967 # the search will be a marc search if MARC=ON
968 # and a standard (v1.2) search if MARC=OFF
970 # Revision 1.31 2003/01/06 13:32:43 tipaul
971 # *** empty log message ***
973 # Revision 1.29 2003/01/06 11:14:11 tipaul
974 # last bugfixes before 1.3.3 : systempref table correctly filled
976 # Revision 1.28 2002/12/10 13:27:47 tipaul
977 # bugfixes (davide mails in koha-dev)
979 # Revision 1.27 2002/11/26 15:04:54 tipaul
980 # road to 1.3.2. Updating db structure during installation
982 # Revision 1.26 2002/11/12 17:42:40 tonnesen
983 # Merged some features over from rel-1-2, including primary key checking.
985 # Revision 1.25 2002/11/12 16:44:38 tipaul
988 # * 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)
990 # Revision 1.24 2002/10/30 14:00:23 arensb
991 # (bug fix): Fixed typo.
993 # Revision 1.23 2002/10/25 10:55:46 tipaul
995 # * bugfixes and improvements
996 # * manage mandatory MARC subfields
997 # * new table : authorised_values. this table contains categories and authorised values for the category. On MARC management, you can map a subfield to a authorised_values category. If you do this, the subfield can only be filled with a authorised_value of the selected category.
998 # this submit contains everything needed :
1001 # * "links" management
1002 # * creation of a html-list if a subfield is mapped to an authorised value.
1004 # Note this is different from authorities support, which will come soon.
1005 # The authorised_values is supposed to contains a "small" number of authorised values for a category (less than 50-100). If you enter more authorised values than this, it should be hard to find what you want in a BIG list...
1007 # Revision 1.22 2002/10/15 10:08:19 tipaul
1008 # fixme corrected, re-indent and adding the marc_breeding table (see commit of marcimport.pl for more explanations about breeding)
1010 # Revision 1.21 2002/10/14 11:48:59 tipaul
1013 # Revision 1.20 2002/10/10 04:49:41 arensb
1014 # Added some FIXME comments.
1016 # Revision 1.19 2002/10/05 10:17:17 arensb
1017 # Merged with arensb-context branch: use C4::Context->dbh instead of
1018 # &C4Connect, and generally prefer C4::Context over C4::Database.
1020 # Revision 1.18.2.2 2002/10/05 06:18:43 arensb
1021 # Added a whole mess of FIXME comments.
1023 # Revision 1.18.2.1 2002/10/04 02:46:00 arensb
1024 # Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
1027 # Revision 1.18 2002/09/24 13:50:55 tipaul
1028 # long WAS the road to 1.3.0...
1029 # coming VERY SOON NOW...
1030 # modifying installer and buildrelease to update the DB
1032 # Revision 1.17 2002/09/24 12:57:35 tipaul
1033 # long WAS the road to 1.3.0...
1034 # coming VERY SOON NOW...
1035 # modifying installer and buildrelease to update the DB
1037 # Revision 1.16 2002/07/31 02:34:27 finlayt
1039 # added "notforloan" field to the itemtypes table.
1041 # Revision 1.15 2002/07/20 22:30:06 rangi
1042 # Making sure fix makes it into the main branch as well
1045 # Revision 1.14 2002/07/08 16:20:26 tonnesen
1046 # Added sessionqueries table and password/userid fields to borrowers table
1048 # Revision 1.13 2002/07/04 18:05:36 tonnesen
1051 # Revision 1.12 2002/07/04 16:41:06 tonnesen
1052 # Merged changes from rel-1-2. Abstracted table structure changes by alan.