Commit graph

201 commits

Author SHA1 Message Date
Paul POULAIN
28257e7a98 #1485 (issuing rules improvement) continued
IMPORTANT NOTE : all existing test database for 3.0 must manually delete ALL constraints on issuingrules table
(the update22to30.pl don't contain the constraints anymore, as kohastructure.sql, so are concerned only the existing 3.0 tests databases)

Filling issuingrules table :
- the issuingrules table can't have a constraint on categorycode, as we have a '*' categorycode (=default issuingrule)
- reintroducing the "default" issuingrule column
- changing some text ('*' replaced by something more explanatory)
- handling correctly the '0' (that is different from 'undefined'

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-12 22:22:12 -05:00
Paul POULAIN
e378fb11e6 Bumping to 3.00.00.008 : adding biblio.datecreated
The top issue was based on a timestamp field, that was updated everytime a biblio is modified

This commit add a datecreated field, that is filled only when a biblio is ADDED
it is used by opac-topissues & can be useful at other places i'm sure

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:09:42 -05:00
Paul POULAIN
d1e0eda8fa IMPORTANT : biblioitems.editionresponsibility field was sometimes spelled with a 'a'
editionserponsability.
This commit fixes all editionresponsAbibility. However, that won't change the biblioitems
column name if you have a wrong one in your DB (if you install a new one, or try a migration from 2.2, that should be OK)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:08:44 -05:00
Paul POULAIN
d98587afed The kohafield in authorities can't be NOT NULL (as it is always null in fact...)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:06:06 -05:00
Paul POULAIN
1d8f12b9eb bugfix : some column add a wrong size
In Koha 3.0, most short code have been resized to varchar(10). This includes itemtype, branchcode, patron category
I've found some tables refering to an old-small-size definition

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-08 15:54:26 -05:00
Paul POULAIN
6344ec8140 splitting updatedatabase in 2 parts
- update 22to30, that does the update from 22 to 3.0 using old mechanism.
- updatedatabase, that just does new updating stuff.

Note that there are fixes on some column size (next commit will contain fixed kohastructure.sql)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-08 15:54:05 -05:00
Chris Cormack
47db7248a2 Setting up a system preference to choose whether CGI::Session uses mysql, or
temporary files
Need to add it to a couple more places in C4::Auth

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 17:03:18 -05:00
Joshua Ferraro
3dcc72ad91 removing multivolume,multivolumepart,binding
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 01:38:27 -05:00
paul
336ce43e85 bump to 3.00.00.006 : issues.issuedate auto fill added on update
In Koha 2.2 there was no field to store the issue date. There was only a timestamp
which is modified every time you do something on the line.
it's fixed in 3.0, but the new issuedate field is empty for 2.2 catalogue migrated to 3.0
This fills the issue date with a value that is probably wrong, but we can't know the correct one.
at least we have something and the stats works (Date::Calc is very unhappy if the field is empty)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-05 19:27:20 -05:00
Paul POULAIN
6f7efca7e1 BUGFIX for browser and nozebra tables
- adding browser and nozebra table definition to kohastructure & updatedatabase
- bumping to 3.00.00.005

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-02 04:35:49 -05:00
Chris Cormack
4c39033dcc Fixing syntax error
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-28 16:41:18 -05:00
Mason James
6bbed80c79 adding debuglevel syspref too, v3.00.00.004
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-28 16:40:53 -05:00
Mason James
fa0d39a1f9 added debuglevel syspref, to control error message verbosity after runtime error.
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-27 20:25:10 -05:00
Chris Cormack
1a4fc157bf Applying the fix for bug 1416 from paul
Had to edit the patch as it was corrupt
2007-09-20 17:39:43 -05:00
Paul POULAIN
bb54c2ae28 BUGBIX : this line has nothing to do here
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-13 17:17:58 -05:00
Chris Cormack
67237dcd7a Making some changes so the resulting db matches kohastructure.sql more closely
Still more to be done

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-10 20:37:07 -05:00
Chris Cormack
65080b46d1 Shifting print before operation
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-10 20:36:56 -05:00
Paul POULAIN
284beffc62 changing Session table structure (due to CGI::Sessions)
I switch to 3.00.00.002, that's another test to check that everything is fine with the new kohaversion management.
Work like a charm...

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:59:17 -05:00
Paul POULAIN
2f3c909089 removing useless script
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:58:48 -05:00
Paul POULAIN
61c72f8f3e Adding KOHAVERSION management.
The kohaversion is in the code directory (in /kohaversion.pl)
C4::Context now has a new method C4::Context->KOHAVERSION
that returns the koha code version.
The systempreference Version contains the database version.

If the 2 are differents, when the user log in, he is redirected to web installer (new behaviour : before this commit, the check was done on everypage, it's too CPU costly I think)

In the web installer, we check now if we do a new setup or an upgrade and show only the appropriate link.

The updatedatabase contains a lot of new things :
* SetVersion($kohaversion), that set the kohaversion after each update
* TransformToNum($kohaversion) that returns a number (3.0000001 from 3.00.00.001 for example) for a given koha version
* DropAllForeignKeys($table) that does what is written : drop all foreign keys. A shame it's not possible directly in mySQL...
* for each database update, just :
add the following lines :
=item
    Describe what it does for other developpers
=cut

$DBversion = "your.koha.version.dbnumber";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
	#
	# DO YOUR UPDATE STUFF
	#
        print "Upgrade to $DBversion done (specify what it does if you want)\n";
        SetVersion ($DBversion);
}

IMPORTANT NOTES :
in koha 2.2, a new install was done through installing a 2.2.0 database, then updating it to the installed version.
in Koha 3.0, /installer/kohaversion.sql MUST contain an uptodate version, as the installer set the DB version to kohaversion after uploading kohaversion.sql. It does NOT run updatedatabase.

The update from Koha 2.2 to Koha 3.0 must NOT be done through the webinstaller : updatedatabase is very very long to run and you'll reach Apache timeout for sure. See http://wiki.koha.org/doku.php?id=22_to_30 that contains my notes for upgrading (with some/few UNIMARC specific stuff)


Note For RM, please eyeball this change

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:58:32 -05:00
Joshua Ferraro
6cdf0832e2 new virtual shelves changes, keyed by biblionumber
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-09 09:17:49 -05:00
hdl
c229732630 Adding some new fields to biblioitems:
collectiontitle
collectionissn
collectionvolume


Changing publicationyear to text.
2007-07-19 10:21:22 +00:00
rangi
d27c5bb427 Fix for bug 1296, making surnames uppercase a systems preference 2007-07-02 02:30:15 +00:00
tipaul
ce94bf33e0 removing some useless tables from updatedatabase 2007-06-26 13:25:37 +00:00
tipaul
5de780ff27 improving OpacBrowser systempref explanation 2007-06-26 09:23:26 +00:00
tipaul
e585fb5dab missing field declaration 2007-06-25 15:02:31 +00:00
toins
29cd577524 bugfix : bibliotitems.dewey & deletedbiblioitems.dewey mustn't be double(8,6). 2007-06-15 13:09:08 +00:00
toins
ad43aa9135 bug fix : items.homebranch must be VARCHAR(10) 2007-06-08 09:40:12 +00:00
tipaul
e4b1cc5f42 skip move to innoDB for the 4 22 tables, that are used to store MARC records, are useless in Koha 3.0 The process is very very long, so the updatedatabase should speed up a lot (by long I mean 1 hour on my Dual core with SCSI disk, for a 50 000 biblios long table 2007-05-23 16:33:10 +00:00
tipaul
e1d907c688 various bugfixes on parameters modules + adding default NoZebraIndexes systempreference if it's empty 2007-05-04 16:24:08 +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
tipaul
a0b19e3e94 bugfix for updatedatabase : when there is no default value (NULL fields) + removing bibliothesaurus table+adding NoZebra systempref (False by default) 2007-04-30 16:16:50 +00:00
hdl
c6951debf0 Adding Version variable to systempreferences. 2007-04-13 16:27:55 +00:00
toins
3e764c663f - adding default value in marc_subfield_structure.
- now marc_subfields_structure displays subfields in tab view.
2007-03-19 18:35:12 +00:00
kados
56244e6efd Using my precrash CVS copy I did the following:
cvs -z3 -d:ext:kados@cvs.savannah.nongnu.org:/sources/koha co -P koha
find koha.precrash -type d -name "CVS" -exec rm -v {} \;
cp -r koha.precrash/* koha/
cd koha/
cvs commit

This should in theory put us right back where we were before the crash
2007-03-16 01:25:08 +00:00
tipaul
fc1342f73d rel_3_0 moved to HEAD 2007-03-09 15:12:54 +00:00
tipaul
967ec60b62 the new "includes" features, for personalized templates. Look at koha-devel, i'll write a mail here (& something on the wiki) 2006-08-11 10:03:13 +00:00
bob_lyon
d1cd796e6d Merging back in some katipo changes to serials 2006-07-20 04:36:01 +00:00
toins
9c8439c38a auto_increment id in aqbooksellers 2006-07-17 12:51:48 +00:00
toins
d6c6ec3435 sync with rel_2_2 2006-07-17 12:28:45 +00:00
toins
cc9524a875 Head & rel_2_2 merged 2006-07-04 14:36:51 +00:00
btoumi
477e8db3dc modify (initials,phone ) fields property in borrowers and deletedborrowers table 2006-06-27 09:26:37 +00:00
btoumi
5692934fa4 sorry i forget deletedborrowers table
modify firstname field from deletedborrowers table
2006-06-22 10:33:14 +00:00
btoumi
a0e06bc047 modify firstname field caracteristic from borrowers table 2006-06-22 10:30:57 +00:00
rangi
f30b030af8 Code to allow the associated borrowers to work 2006-06-20 22:35:47 +00:00
rangi
c59b34d069 Adding id field to reviews table 2006-06-17 22:12:01 +00:00
rangi
90f46afd60 Table definition for the reviews table 2006-06-17 03:36:41 +00:00
rangi
862d718568 Variable to allow librarians to switch reviews on or off 2006-06-17 03:29:41 +00:00
btoumi
72363f4a1e updatedatabase.pl: add change of borrowers table to deletedborrowers table
deletemem.pl: delete use of warn function
2006-06-16 09:45:02 +00:00
alaurin
193e22714f Add a new system preference 'AutomaticItemReturn' :
if this prefence is switched on: the document returned in another library than homebranch, the system automaticly transfer the document to his homebranch (with notification for librarian in returns.tmpl) .

switch off : the document stay in the holdingbranch ...

correcting bugs :
- comment C4::acquisition (not using in request.pl).
- correcting date in request.pl
-add the new call of function getbranches in request.pl
2006-06-08 15:36:31 +00:00