Commit graph

181 commits

Author SHA1 Message Date
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
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
bob_lyon
404da07848 merging katipo changes...
adding new preference IssuingInProcess
2006-06-07 02:02:47 +00:00
bob_lyon
c7623fc55c Merging Katipo changes...
Adding new system pref where one can still retrieve a correct reading
record history if one has moved older data from issues to oldissues table
to speed up issues speed
2006-06-06 23:42:46 +00:00
rangi
b9ce47b194 Adding a new column to the statistics table 2006-06-01 03:18:11 +00:00
rangi
1cb0577c28 Adding new systempreference allowing for the library to add borrowers to institutions (rest homes, parishes, schools, classes etc). 2006-05-22 22:40:45 +00:00
tgarip1957
e6c8e77bf8 Added new fields to auth_header and auth_subfield_table to allow ZEBRA use of authorities and new MARC framework like structure.
Authority tables are modified to be compatible with new MARC frameworks. This change is part of Authority Linking & Zebra authorities. Requires change in Mysql database. It will break head unless all changes regarding this is implemented. This warning will take place on all commits regarding this
2006-05-19 19:31:29 +00:00
alaurin
ca7dc72536 update database for :
- new feature ip and printer management
adding two fields in branches table (branchip,branchprinter)

- waiting date : adding one field in reserves table(waiting date) to calculate the Maximum delay to pick up a reserved document when it's available

new system preference :
- ReservesMaxPickUpDelay : Maximum delay to pick up a reserved document
TransfersMaxDaysWarning : Max delay before considering the transfer as potentialy a problem
2006-05-19 16:51:44 +00:00
plg
47549951fa bug fixed: typo fixed in labels and labels_conf tables creation query. 2006-04-18 09:36:36 +00:00
sushi
7f7d59fc30 Added 'labels' and 'labels_conf' tables, for spine lable tool. 2006-04-17 21:55:33 +00:00
tgarip1957
d63c509765 Marc record should be set to UTF-8 in leader.Force it.
XML should be with<record> wrappers
2006-04-15 02:37:03 +00:00
tipaul
97182dceb2 improvements from SAN Ouest Provence :
* introducing a category_type into categories. It can be A (adult), C (children), P (Professionnal), I (institution/organisation).
* each category_type has it's own forms to create members.
* the borrowers table has been heavily modified (many fields changed), to get something more logic & readable
* reintroducing guarantor/guanrantee system that is now independant from hardcoded C/A for categories
* updating templates to fit template rules

(see mail feb, 17 on koha-devel "new features for borrowers" for more details)
2006-04-14 09:31:24 +00:00
plg
3bec20f948 new: function C4::Date::get_date_format_string_for_DHTMLcalendar based on
the system preference prefered date format.

improvement: book fund list and budget list screen redesigned. Filters on
each field. Columns are not sortable yet. Using DHTML Calendar to fill date
fields instead of manual filling. Pagination system. From the book fund
list, you can reach the budget list, filtered on a book fund, or not. A
budget can be added only from book fund list screen.

bug fixed: branchcode was missing in table aqbudget.

bug fixed: when setting a branchcode to a book fund, all associated budgets
move to this branchcode.

modification: when adding/modifying budget/fund, MySQL specific "REPLACE..."
statements replaced by standard SQL compliant statement.

bug fixed: when adding/modifying a budget, if the book fund is associated to
a branch, the branch selection is disabled and set to the book fund branch.
2006-04-13 08:36:42 +00:00
hdl
682cf34ecb Bugfixing : aqbookfund needed a field. 2006-04-06 12:37:05 +00:00