Commit graph

473 commits

Author SHA1 Message Date
Galen Charlton
396f998788 more items work; handle unlinked subfields (DB rev => 048)
As a consequence, the items table now remains authoritative
for all item information: any subfields not explicitly mapped
in the framework are still stored.

In addition, the additional unlinked subfields are now retained
during a call to ModItem.

Two additional points of note:

* an upgrade script from 2.2 and earlier 3.0 instllations is needed
  to populate items.marc_subfields_xml; I am working on this.
* A behavour of bulkmarcimport.pl has now changed; any item subfields
  not explicitly mapped to a Koha items field were dropped; they are
  now retained and are stored in items.more_subfields_xml.  This can
  affect data migrations.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-22 07:24:13 -06:00
Chris Cormack
dbfd4ca4c0 Fix for bug 1766 typo in sys pref explanation for dontmerge
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-17 21:01:05 -06:00
Henri-Damien LAURENT
70a284bd1e adding syspref PatronsPerPage
PatronsPerPage stores the number of patrons to display per page.
Default is 20

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-15 15:32:29 -06:00
d7487d473e Patch
See attached file. Thanks.

>From b0d40589f4fa0921ee05073b14903ed79b90c474 Mon Sep 17 00:00:00 2001
From: Frederic DEMIANS <f.demians@tamil.fr>
Date: Mon, 14 Jan 2008 14:20:35 +0100
Subject: [PATCH] Sample News in French

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-14 16:48:19 -06:00
Paul POULAIN
2f6a24640c Adding OpacRenewalAllowed systempref (bump to 047)
to let the library decide wheter their patrons can or can't renew checked-out items directly from their account.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-14 16:47:52 -06:00
Paul POULAIN
8c9b43cd73 translation for subtag_registry
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-14 16:41:11 -06:00
Mason James
3db9849709 Revert "adding TRUNCATES before INSERTS"
This reverts commit 732c11be895b3b2c79942c1071d11f497d87f1dc.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-10 21:26:28 -06:00
Mason James
71d08b44e3 adding TRUNCATES before INSERTS
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-10 08:33:00 -06:00
Joshua Ferraro
802b13e5f5 fix for 1754; fixing I18N BiDi, improvements to handling of language
TODO: clean up the OPAC similarly

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-10 08:32:48 -06:00
Joshua Ferraro
3d4147042a adding a few missing sysprefs
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 21:06:29 -06:00
Joshua Ferraro
aa12a1f76c couple of commas out of place
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 20:31:18 -06:00
Ryan Higgins
17897d254a Fix for typo, leftover index on 046 updatedb commit.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 20:09:56 -06:00
Henri-Damien LAURENT
b5a1060788 Improving encoding Support for z3950 clients.
Adding encoding for z3950 server information.
Uses Text::Iconv for conversion (ISO6937 and ISO_5428 and ISO5427)
For ISO 5426 (ANSEL or MARC-8) new char_decode5426 based on marc4j tool.

Not Tested on LOC or any USMARC z3950 source. But tested OK on BNF and SUDOC.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 19:23:30 -06:00
Ryan Higgins
f18482f172 CHANGE TO PREVIOUS .046 DATABASE UPDATE
This commit changes .046 updatedatebase , where itemnumber was changed
to int and keyed on items table.  As there is code in serials module that
uses itemnumber (text) as a list of itemnumbers, this change would cause data
loss if that field had multiple items in it.
Instead, we add a new table to link serial and items tables, so that
(1) we can have many items per serial issue, and
(2) staged upgrades that use the serial.itemnumber (text) list won't be affected.
Further commits will make use of the serialitems linking table.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 16:13:17 -06:00
Ryan Higgins
c727170358 Framework update: make cn_itempart visible, rm mandatory on 300$a.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 14:06:26 -06:00
Ryan Higgins
3de59aba27 Serials updates to link item record to serial table.
This commit makes db changes to subscription, serials tables:
  allow subscriptions larger than 127 issues
  link serial to item uniquely.
MARC Framework:
  Adding MARC tag 942$s (990$s unimarc) to map biblio.serial
Udate biblio.serial on new-subscription.
Use biblio.serial to check if Items.pm should return
  pubdate and enumeration text string from serials table with items.
Update opac-detail so serial items are sorted most recent first.
Adding link from items table to serial table.

Allows sorting of serials in details pages, and removes
enum data from itemnotes field.
Also fixes  visibility in serials item editor

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-08 11:11:45 -06:00
14b0381408 Fixes two bugs affecting Web installer when used with Unimarc/French
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-07 20:02:17 -06:00
Joshua Ferraro
a13481083d adding support for Armenian in the subtag registry
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-07 02:23:45 -06:00
Galen Charlton
62d38a050c fixed typo in 044 DB update SQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-07 01:57:44 -06:00
Joshua Ferraro
2baca29e58 WARNING: BIG I18N PATCH, you must import the subtag_registry.sql after this upgrade to benefit from the new features ... if you don't everything will work as before.
bugfixing I18N language selection from staff and OPAC, adding BiDi
support

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-05 02:59:51 -06:00
Joshua Ferraro
db14eacd5c Fixes to installer with changes to language management
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-05 02:59:42 -06:00
Joshua Ferraro
8d072519b6 synching deletedborrowers table with borrowers table
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-04 21:30:30 -06:00
Joshua Ferraro
37ca0cac1f fix for bug 1697, as well as repairing inability to change category to Staff
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-04 21:30:25 -06:00
Galen Charlton
8340c478fa start of big MARC21 authorities work
* Defined local field 942$a to store the authority type
  for MARC21 instead of 152$b
* Added 942$b to MARC21 authority framework.
* Added auth_header.authid and auth_header.authtypecode
  to appropriate subfields in MARC21 authority framework.
* Started work on two new modules:
    C4::AuthoritiesMarc::MARC21
    C4::AuthoritiesMarc::UNIMARC
  These modules will be used to extract MARC-format-specific
  behavior out of C4::AuthoritiesMarc
* Updated Zebra config for MARC21 to use only the 942$a
  for the authority type.
* For MARC21, added logic to move 152$b to 942$a for
  existing authority records.  Specifically, AddAuthority
  now does this move when a record is saved, while
  GetAuthority and GetAuthorityXML do this when
  extracting a record for other use.  This logic
  is temporary, and can hopefully be removed later, once
  use of 152$b in MARC21 authorities is confirmed to be
  absent for Koha users.  I will also create a batch
  job to do this update in one fell swoop.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-04 18:42:40 -06:00
Joshua Ferraro
9c25d6368a improvements to INSTALL.debian, adding Symbols for currencies adding \n to make bulkmarcimport.pl prettier
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 21:28:37 -06:00
Joshua Ferraro
896754d71a fixing incorrect reference to opaclanguages syspref
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 21:28:17 -06:00
Joe Atzberger
0ed71ca7d0 updatedatabase - DB version to 043 for 2 new columns in currency table
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 20:21:52 -06:00
Joe Atzberger
5e78bc9a07 currency expansion - symbol and timestamp. PLEASE VERIFY SQL edit. Should be equivalent to: ALTER TABLE currency ADD symbol varchar(5) default NULL, ADD timestamp timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP;
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 20:21:28 -06:00
Galen Charlton
6ddf723fe8 DB rev 042: disallow null in aqbooksellers.name
Patch per Ryan Higgins; part of fix for bug 1251.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 16:23:09 -06:00
Galen Charlton
ef7219e411 DB rev 041: disallow NULL in some item status columns
notforloan, damaged, itemlost, wthdrawn

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 16:23:08 -06:00
Joshua Ferraro
5c23369af2 Fixing Database Definitions for Statuses *PARTIAL*
Prior to this fix, the status fields had three 'off' values, NULL, "",
and 0. I've reduced it to two in the db, removing the option for NULL, and
setting the default value to 0, however, we need to verify that we don't ever
write out as "" as this needlessly complicates the indexing process,
critical for searching or limiting by status (e.g., availability). Also,
queries that attempt to write a NULL value to one of these fields will fail
(based on my tests).

This patch includes the following changes:

* Updated the database definition for notforloan, damaged, itemlost, and
wthdrawn in kohastructure.sql to forbid NULL and default to 0; MySQL
can't forbid other values (such as empty ""), so this has to be handled
at the application layer and REQUIRES further patching.

* Fixed the 'limit by availability' query node in Search.pm to use a
much less confusing definition of 'available'

* Added code to set values to 0 where they are NULL or empty ( "" ) for
notforloan, damaged, itemlost or wthdrawn in both the MARC and the items
table:

  * Biblio.pm -> AddBiblioAndItems
  * catalogue/updateitem.pl
  * SEE NOTE BELOW, REQUIRES UPDATE TO THE REST OF KOHA'S ITEM MGT!

* Removed code in bulkmarcimport.pl that sets notforloan status depending
  on item-level or bib-level itemtype -- that flag is designed to be set
  only to override the notforloan setting for the item's (or bib's,
  depending on the syspref) assigned itemtype (it doesn't need to override
  to 'for loan', only to 'not for loan').

  added $dbh->do("truncate zebraqueue"); when operation is 'delete'

* I updated some notes in catalogue/updateitem.pl as to why ModItem can't be
used -- we don't have _a_ place where we can change the item and marc :/

  I've tested the following:

  bulkmarcimport.pl..........................MARC/items OK
  Staged Records Import......................NOT OK
  updateitem.pl (via moredetail.pl)..........MARC/items OK
  circulation.pl.............................NOT OK
  returns.pl.................................NOT OK
  addbiblio.pl...............................NOT OK
  additem.pl.................................NOT OK

Basically, there isn't a single place to apply this patch that will
update both item data and MARC data in one place ... a future patch
needs to address this issue.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 16:23:04 -06:00
Joe Atzberger
fc60e7413c install.pl - exit after redirect
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 01:18:14 -06:00
Joshua Ferraro
554bbe1bda s/Waited/Expected/ for serials statuses reformating rebuild_nozebra.pl indexes
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-01 12:59:28 -06:00
Joshua Ferraro
498e69d183 improving sample data for English
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-30 17:00:42 -06:00
Chris Cormack
bcc60a1117 Fix for bug 1552, fix ordering of issued items
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-30 16:24:27 -06:00
Joshua Ferraro
1299d6b60c Bugfixing Systempreferences:
* fix to bug in version 3.00.00.038 update (bad SQL)
    * putting finesCalendar and CircControl in Circulation tab in
systempreferences
    * changing default for IndependantBranches to 0
    * removing ' from integers
    * fix canreservefromotherbranches nomenclature

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-29 08:24:03 -06:00
Joshua Ferraro
a4004ade12 Sysprefs Changes
* Fix for Bug 1601: uppercasesurnames system preference needs to be added

* Partial fix for Bug 1711: reinstate the ‘CircControl’ syspref, which is
of type Choice with the following choices: PickupLibrary | PatronLibrary |
ItemHomeLibrary

* reinstate the ‘finesCalendar’ syspref, which is of type Choice with
the following choices: ignoreCalendar | noFinesWhenClosed

* ‘HomeorHoldingbranch’ is deprecated and removed

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-29 08:23:52 -06:00
Galen Charlton
3584922a70 fixed quoting problem in updatedatabase.pl; version now 038
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-28 12:39:40 -06:00
Joshua Ferraro
095ab72323 missing "
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-28 08:37:23 -06:00
Joshua Ferraro
c70df80694 Search.pm Bugfixing
Getting Search.pm air tight ... cleaned up some local variables
that were declared global

fix to asynchronous federated searching lost since dev_week, immediate
use is authority search

template fixes to item-level itemtypes and bib-level itemtypes

temp workaround to javascript problems preventing item edits

fix to installer

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-28 08:32:24 -06:00
Joshua Ferraro
d7938406c5 s/holded by/maintained/
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-28 08:32:07 -06:00
Galen Charlton
e2169110c7 fixed typo in new borrower column
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:24:32 -06:00
Galen Charlton
a858e8a8b8 session management: use YAML::Syck for serialization
When using mysql and a sufficiently recent version
of DBD::mysql that actually respects the mysql_enable_utf8
option, setting the current branch to a name that
includes a diacritic causes the session to fail
and forces the user to the login screen upon
clicking another link.

This turned out to be due to the default (Data::Dumper)
serialization used by CGI::Session, which truncated the
session object at the diacritic.  By enabling
that module's YAML serialization option, the problem
was resolved.

This patch introduces a dependency on the YAML::Syck
module.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:24:02 -06:00
Ryan Higgins
6c9d1614d8 adding change to syspref for finesmode.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:23:55 -06:00
Ryan Higgins
a9d03af6dc adding 'exempt fine on return' option.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:22:45 -06:00
Chris Cormack
7d6282e513 Fix for 1704, now if autoitemreturns is off you get a dialogue warning a
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-27 17:22:00 -06:00
Galen Charlton
bedab2e973 web installer: clean up warns; improve naming of Nozebra op
The former 'Nozebra' op has been renamed to 'SetIndexingEngine'
to avoid having a 'Nozebra' op and a 'NoZebra' parameter
distinguished only by case.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 20:48:04 -06:00
Joshua Ferraro
da8a4ca991 BIG COMMIT: minimal fix to authorities search
This is a minimal fix -- pname authorities work propertly, but nothing
else has been tested yet

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 20:23:16 -06:00
Chris Cormack
dfc5c181bc Big bugfix for bug 1631
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 18:40:28 -06:00
Chris Cormack
b75dae1893 Fix for typo in Insert line in updatedatabase.pl
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 14:33:05 -06:00
Paul POULAIN
20649b7dc0 Adding OPACItemsResultsDisplay syspref & bumping to version 036
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 14:33:04 -06:00
Paul POULAIN
d46958af51 replacing SHELF_LOC by LOC, as decided with kados on the chat
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 14:33:02 -06:00
Paul POULAIN
6686dda761 mapping items.onloan to 995$n (to handle biblio status from zebra)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-26 14:32:58 -06:00
Joshua Ferraro
9b8201328d prefixing all holdings auth values with HINGS 2007-12-26 10:40:58 -06:00
Joshua Ferraro
ab8a6af819 removing unused ReadingHistory syspref
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-25 13:57:44 -06:00
Joshua Ferraro
11005a5236 removing postgres sql from main installaer dir, it exists in data/Pg/, though in a different form, Chris, please double-check that I haven't removed the latest one and if so, git revert and git mv it into the right slot.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-25 12:28:44 -06:00
Galen Charlton
c87df4e334 bug 1368 - remove FOREIGN_KEY_CHECKS = 0 from installer
[1] Web installer no longer sets FOREIGN_KEY_CHECKS = 0
    when loading frameworks and sample SQL.
[2] Removed FOREIGN_KEY_CHECKS = 0 from SQL scripts
[3] Fixed FK issues in en/optional/sample_patrons.sql

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-25 09:08:44 -06:00
Joshua Ferraro
e4799032d2 Warning: big commit Fixing moredetail.pl
Previously, about 50% of the data on this page was either incorrect or missing.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-23 20:32:34 -06:00
Joshua Ferraro
94387a73ee adding auth value for 'Missing in Holdqueue'
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-23 20:32:24 -06:00
Joshua Ferraro
dcb3858ffd Several important commits:
* adding zebra daemons for managing server and queue processes
  * improvements to the README.debian file
  * Fixes to Search.pm since last series of commits broke zebra-based
    searching (again)
  * moving some files to new misc/bin and misc/cronjobs

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-22 18:26:39 -06:00
Chris Nighswonger
3a85126813 Removing white spaces from directory and filenames as they restrict portability across OS platforms.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-19 18:55:12 -06:00
Galen Charlton
17e4626dff web installer: improve DB permissions check
MySQL-only: improve regex to make sure we are
checking permission on the correct database, not
on another database (when the DB name is a
subset of the DB user's name)
2007-12-17 09:13:54 -06:00
Mason James
395d7aee99 952$y/itemtype was hidden by default, fixed
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 23:05:00 -06:00
Paul POULAIN
9a9bc82c84 UTF-8 and Nozebra fixes
- .txt files have to be in utf-8 (as Koha is utf-8 now), and opened as utf-8 files
otherwise, the diacritics are mixed up on web installer

- typo fix (NoZebra vs Nozebra) to set correctly Nozebra syspref

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 12:12:20 -06:00
Paul POULAIN
e6e3ea4c65 french unimarc filed updated + authorised values added
(+all files are now in utf-8)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 12:02:13 -06:00
Joe Atzberger
0a015b0120 install.pl - Important fix for Algorithm::CheckDigits mismatch
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 10:03:35 -06:00
Paul POULAIN
c1ed403b00 regexp-ing $marcflavour to handle unimarc_xxxxx or marc21_yyyy subdirectories
see previous commit, about having 2 different sets of UNIMARC.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:15:53 -06:00
Paul POULAIN
7fe49b95d2 big change in installer for french unimarc
The biblio & authorities frameworks have been removed from 1-Obligatoire
and moved to marcflavour new directory.

There are 2 sub-unimarc directories :
- unimarc_complet (complet=full), that contains full unimarc frameworks (not finished)
- unimarc_lecture_pub (lecture_pub = public library), that contains simplified frameworks (should work, although more test needed)

That will let the user choose between 2 differents set of unimarc : public libraries often don't care to handle a too complex marc, while conservation libraries need something complete.

This is one of the major thing that ppl wanted : a more public library friendly Koha.

With HideMarc=ON, public libraries should be very happy with the way cataloguing can be done now.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:14:54 -06:00
Paul POULAIN
670798d4b4 removing useless file for french unimarc
it's elsewhere (in 1-obligatoire)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:13:07 -06:00
Paul POULAIN
599e800850 removing marc flavour from syspref for frenchies
as it's now filled by webinstaller and librarian choice

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:12:52 -06:00
Paul POULAIN
c511128e12 some sysprefs added and translated to french.
Note that it's an unfinished work, but those untranslated seems to do nothing.
I've asked koha-devel & will translate the rest when usefull

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 08:55:36 -06:00
Paul POULAIN
3f7ddca45f updating yahoo syspref message to let the user know what is the local string
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 08:55:17 -06:00
Paul POULAIN
29d078c1ce Systempref in french, updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 08:54:55 -06:00
Galen Charlton
073b8b7a36 bugfix: restore setting classification source by dropdown
Apparently as an inadvertant result of the patches to
move the SQL files to load the MARC frameworks, the
authorised_value of 'cn_source' was dropped for
kohafield = 'items.cn_source' and 'biblioitems.cn_source'.

This patch restores those values, thus making the
classification source set by a dropdown in the bib
and item editors.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-13 17:30:34 -06:00
Chris Nighswonger
2c6cfb07b2 Setting BiblioAddsAuthorities OFF by default as things break when enabled in MARC21 libraries
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-13 17:26:55 -06:00
Henri-Damien LAURENT
4339c8585a BugFix 1640
setting QueryFuzzy, QueryStemming and QueryweightFields systempreferences to 0 if Nozebra chosen

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-12 08:14:41 -06:00
Ryan Higgins
46d77f4461 Virtual shelves: per shelf sort, multiple add in OPAC, partial bug fixes.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-12 08:03:13 -06:00
Galen Charlton
121a067dd1 removed 'delete from' statements
Did this because marc21_framework_DEFAULT.sql was the
only install SQL that did this, and thus led to a problem
when the web installer was loading the optional MARC 21
framework SQL before the mandatory one.  Because
of the 'delete from', deleted all of the optional rows.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-08 07:28:11 -06:00
Galen Charlton
4aeb861563 fixed order in which SQL scripts are applied by web installer
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-08 07:28:01 -06:00
Paul POULAIN
a2baa0a3c8 inverting explanation and options columns to have the same order everywhere
the file used to have explanation before options in the SQL dump, except the 6 last inserted lines.

I've inverted them to be as the other lines. Not a bugfix, but to avoid having a bug in some months due to the un-noticed difference...

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-06 11:31:57 -06:00
Joe Atzberger
fbc151c16d Auth.pm should have "CAN_user_updatecharges" (plural), and this change to InstallAuth.pm should catch it.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-04 17:59:41 -06:00
Ryan Higgins
444d01c0a5 adding userflag to allow modification of staff borrowers.
will add Staff category type in subsequent commit

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-02 15:17:45 -06:00
Paul POULAIN
a502aa1c76 HTML::Template => HTML::Template::Pro
HTML::Template is no more used, some were remaining,
fixing the "use ...;" to H::T::Pro only

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-02 14:55:55 -06:00
Galen Charlton
71b0a243a8 improved terminology for WITHDRAWN authorized value
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-27 15:52:55 -06:00
Galen Charlton
583baef555 MARC21 framework: changed 'items.withdrawn' to 'items.wthdrawn'
The correct field is 'items.wthdrawn', not 'items.withdrawn'.
Spelling may be corrected in post-3.0 version.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-27 15:51:55 -06:00
Joshua Ferraro
db15d836fc adding proper frameworkcodes for simple frameworks suppress field
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 18:33:43 -06:00
Joshua Ferraro
f147287fed fix to kohastructure, comma probs
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 18:29:26 -06:00
Joshua Ferraro
b568248004 adding fixes to updatedatabase
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 18:09:09 -06:00
Joshua Ferraro
37dfb6d4ae fix to sort by defaults sysprefs, more choices
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 18:05:06 -06:00
Paul POULAIN
edb1515cc1 1507 : Possible Missing Foreign Key in Accountoffsets
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 17:16:13 -06:00
Joshua Ferraro
728ef09ead adding 'Suppress in OPAC' to MARC frameworks
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:28:34 -06:00
Joshua Ferraro
918a09dd35 adding missing sysprefs to 3.0
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:28:20 -06:00
Joshua Ferraro
f8625dced4 fixing syntax error in sysprefs.sql
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:27:40 -06:00
Joshua Ferraro
f9b132be8c fixing patronimages syspref
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:27:21 -06:00
Joshua Ferraro
9b14dad8cf removing item-level repeatability
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:25:53 -06:00
Joshua Ferraro
87028e026e removing repeatable fields at the item level
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-20 17:53:10 -06:00
Joshua Ferraro
dd05dd3dbb adding xisbn, amazon similar items to OPAC
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-20 16:18:35 -06:00
Joshua Ferraro
866c3dd616 adding endnote export and 'related items'
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-20 16:18:15 -06:00
Joshua Ferraro
c25393f214 adding a diacritic to the sample library data
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-17 10:49:28 -06:00
Joshua Ferraro
18fc0605b0 database changes for xisbn support
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-17 10:49:26 -06:00
Galen Charlton
b69facedc4 matching enhancements -- allow matching rule to be changed on the fly
Enhancement to store the matching rule associated with an
import batch and to allow the current matching rule in
effect to be changed and the duplicate detection redone.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:37:24 -06:00
Galen Charlton
75bd4b2dac bibliographic matching enhancements
* serialization of matching rules to database
* added two default matching rules for MARC21
* update import staging CGI to choose matching rule

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:37:21 -06:00
Chris Nighswonger
b104446f62 Modified SessionStorage pref to include Pg choice
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:27:33 -06:00
Galen Charlton
756f950928 fixed typo in sysprefs.sql
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:27:31 -06:00
MJ Ray
6a3f484ca2 Context.pm version update and a begging NOTE in updatedatabase
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:27:26 -06:00
Chris Cormack
e30fb761ec Adding a system pref so you can stop users from reserving items that dont belong at their branch
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 21:24:23 -06:00
Joshua Ferraro
232dfbf6e8 fixing versioning issue with last updatedatabase patch 2007-11-13 18:01:21 -06:00
Galen Charlton
f45386a3a4 matcher serialization -- added matcher code and some keys
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:58:48 -06:00
Galen Charlton
f4c7364531 updatedatabase changes to reflect C4::Matcher serialization tables
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:58:46 -06:00
Galen Charlton
c8e7e18e13 MARC matching - added tables to serialize C4::Matcher objects
also added two missing 'drop table if exists' statements

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:58:45 -06:00
Galen Charlton
d695d0708e bumping database rev to 027
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:58:44 -06:00
Galen Charlton
a9b24e2e7e corrected en version of sample_labels.sql
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:48:09 -06:00
Chris Cormack
7934f95494 Adding a system preference to choose whether a homebranch or a holdingbranch is used to check against for independentbranches
Changing GanBookBeIssued to use this systempreference
Set to homebranch by default Paul and others you might want to switch this to holdingbranch to get the behaviour you are used to

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 15:30:38 -06:00
Chris Nighswonger
82b6bf935e Moved language dirs one level down under dbms dir (mysql)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:38:29 -06:00
Chris Nighswonger
6d31ee3925 Cleanup to remove old kohastructure_pg.sql
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:20:16 -06:00
Chris Nighswonger
ce65da7206 Ported marc21 simple bib frameworks sql to PostgreSQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:20:14 -06:00
Chris Nighswonger
cce5458d6a Ported marc21 framework sql to PostgreSQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:20:12 -06:00
Chris Nighswonger
a77d7b7b90 Ported marc21 authorities sql to PostgreSQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:20:11 -06:00
Chris Nighswonger
633b174f9b Moved/renamed kohastructure_pg.sql to data/Pg
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 11:22:49 -06:00
Chris Nighswonger
25494aafa7 Moved location of updater scripts to dbms specific dir.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 11:22:47 -06:00
Chris Nighswonger
8d5777db1d Changed path to updatedatabase.pl to dbms specific dir
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 11:22:44 -06:00
Chris Nighswonger
6a6f86f33c Moved kohastructure.sql into mysql dmbs directory
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 11:22:42 -06:00
Chris Nighswonger
e13dcb0e6f Initial port of install.pl to support PostgreSQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 11:22:40 -06:00
Galen Charlton
388c60bff7 misc labels fixes
* Corrected sample label data
* Commented out debug warns and smart comments
* Correct location of a template

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-12 17:42:10 -06:00
Chris Cormack
624c57200a Changing default behaviour of reserves back to needing a return. (this can be switched off in sys prefs)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-11 18:43:47 -06:00
Ryan Higgins
805d8c8f4d changes to item-level itype reintroduce items.itype (had been removed by updatedatabase but still in kohastructure) populate itype with bi.itemtype. fix error in getbiblio
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-11 18:40:04 -06:00
Mason James
2e3676d7de added inital 'delete' lines, so running 'mysql koha3 < marc21_framework_DEFAULT.sql' doesnt fail if you currently have existing rows in your marc-framework tables (which is likely)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-11 12:45:45 -06:00
Chris Nighswonger
4e7a76e256 Added class tables
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-11 12:45:25 -06:00
Mason James
adad591531 updating labels* tables for innodb, and recent dev work.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-09 13:48:02 -06:00
Joshua Ferraro
bc62309d74 adding new sysprefs for YUI Path, default to pull from external source
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-09 10:26:29 -06:00
Chris Nighswonger
f1752b544f Corrected marc_subfield_structure.authorised_value & authtypecode to varchar(20)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:05:17 -06:00
Chris Nighswonger
9f50da6b54 Corrected marc_subfield_structure.seealso to varchar(1100)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:04:53 -06:00
Chris Nighswonger
e3c7bf7b0b Corrected marc_subfield_structure.seealso to varchar(600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:04:51 -06:00
Galen Charlton
8bf13848cf removed references to disused value_builders
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:04:02 -06:00
thd
3423448d1b Adding English UNIMARC frameworks.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:03:57 -06:00
thd
41eb2076c5 Chaning MARC 21 bibliographic frameworks. Removing plugins which have yet to be written. Adding missing biblioitems.cn_prefix column link. Translating Recommandation 995 to English. Removing some development comments and SQL statements for MARC 21 field names with letters.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:03:56 -06:00
thd
81e12471ea Moving simple MARC 21 bibliographic frameworks to installer/data/en/marcflavour/marc21/optional .
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:03:54 -06:00
thd
911fe6c7fd MARC 21 frameworks changes. Moving bibliographic frameworks field names with letters and many development comments, and removing use of unwritten plugins, Changing authority frameworks syntax.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:03:53 -06:00
Mason James
f08492ae90 changing missed branchcode columns from varchar(4) to 10
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 17:55:09 -06:00
Chris Nighswonger
92a308237d kohastructure_pg.sql for PostgreSQL
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-06 06:25:05 -06:00
Ryan Higgins
3c9d0371fe item-level itemtypes issuingrules require some testing.
based on syspref 'item-level_itypes', add an itype col to items table
for 3.2 itype's type will change from varchar(10) to int to allow
circ type definitions per agency.
Note that updatedatabase doesn't populate items.itype, just creates column.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-04 16:28:17 -06:00
Galen Charlton
83270794be fixed typo in 018 DB change
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-01 17:32:15 -05:00
Galen Charlton
5fba123691 made key on deleteditems.barcode non-unique
User could conceivable delete an item, add one with the
same barcode, then delete it again.  If key on
deleteditems.barcode is unique, second deletion
will not populate deleteditems.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-01 17:31:58 -05:00
Galen Charlton
5fabddfe38 made several PKs be auto_increment columns
* biblio.biblionumber
* biblioitems.biblioitemnumber
* items.itemnumber

These IDs are no longer increment by the Perl code, thus
allowing better concurrency during bib/item editing.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-01 17:31:33 -05:00
Joshua Ferraro
5676304fcb removing intranet.css from default sysprefs
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-01 17:27:57 -05:00
Galen Charlton
fc35c6ab3c fixed typo in statement for reports_dictionary
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 19:45:26 -05:00
Galen Charlton
3ab14932e0 fixed extra warning during install.pl
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 19:45:09 -05:00
Galen Charlton
7f60fa7dd5 sample patron data: removed insert with duplicate PK
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 19:44:47 -05:00
Paul POULAIN
23c79b8229 bump to 3.00.00.017 : adding columns to zebraqueue
The zebraque_start scripts works, but it not friendly when you try to track what he did
as records are deleted after done.
This commit changes the behaviour : 2 columns are added done & timestamp.
done is set to 1 when a line have been done. And the timestamp contains the timestamp of the last action (either line creation if done=0 or operation if done=1)

should be helpfull to track problem.

the table will grow, but i'll add soon a DELETE FROM zebraqueue WHERE timestamp > 30 days or something like that

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 19:43:00 -05:00
Galen Charlton
bd40bee1aa added auto_number column as PK for action_logs
* prevents PK warnings when logging actions that occur
  faster than once a second (e.g., batch MARC loads) --
  the original PK of timestamp + user not granular enough
* timestamp + user still indexed for log viewing

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 05:55:25 -05:00
Chris Cormack
0f429f0b31 Adding reports_dictionary table
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-30 17:51:44 -05:00
Paul POULAIN
64278fd6b3 #1505 Primary Key on borrowernumber
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-30 17:47:09 -05:00
Henri-Damien LAURENT
84a3153fc4 Minor changes to keep behaviour unchanged if no marcflavour directory.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-30 17:43:37 -05:00
Joshua Ferraro
f3fac7a562 patch to sysprefs and minor fix to Search.pm that
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 21:21:17 -05:00
Henri-Damien LAURENT
30e6a55268 Changes to install.pl
Changing structure :
adding a marcflavour directory to data/language/
This directory shall have the same subdirectory structure as /data/language
This allows for instance adding optionals CD-Framework or Serials Frameworks
keeping default frameworks mandatory.
install.pl was changed in order to manage those changes.
Could be changed in order to skip marcflavour selection if marcflavour directory is not found.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 17:44:07 -05:00
Galen Charlton
2e07983367 more work on batch import
* Completely removed old marc_breeding table
* Started updated Tools import function to stage records

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:47:58 -05:00
Joshua Ferraro
158033a4b5 adding sample data
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:47:55 -05:00
Joshua Ferraro
edd54d9fad fixing itemtype image, sample data, improving
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:47:54 -05:00
Joshua Ferraro
d314f5d2ed adding itemtype images to sample data
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:47:45 -05:00
Joshua Ferraro
997c200004 adding new Query system preferences
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:47:42 -05:00
Chris Cormack
86d64812f2 Updating kohastructure.sql with tables needed for reports, updatedatabase
still to come, but there are outstanding patches that need to be applied
before I can do that.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:12:50 -05:00
Mason James
4778fc3f1f update for missing subscriptions.lastbranch col in serials
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:06:04 -05:00
Galen Charlton
c6a5e50457 added column to import_records
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:05:23 -05:00
Galen Charlton
363549a67d DB schema changes for enhancements to reservoir and batch loading
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-29 16:05:18 -05:00
Paul POULAIN
565ad79887 adding CircAutocompl systempreference
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-24 17:02:40 -05:00
Joshua Ferraro
e5929a0a08 remove quoted integers and change char to varchar
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-23 18:24:45 -05:00
Joshua Ferraro
44996f90f4 adding missing systempreferences to en
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-23 18:23:58 -05:00
Galen Charlton
51e639ed7e added dropdown for classification source for addbiblio and additem
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-22 19:57:29 -05:00
Galen Charlton
af9dfd9cda bib and item editing bugfixes
- bugfix: update items.cn_sort upon edit of item
- bugfix: make failure of a value_builder plugin non-fatal
- bugfix: remove references to non-existent plugins
          from optional MARC21 frameworks
             bookseller.pl
             marc21_callnumber.pl
             marc21_classcodes.pl
             marc21_locationqualifier.pl
- bugfix: corrected trying to enter 'u*' fields twice in the 'CF'
          format in the optional MARC21 frameworks; resulted in
          most of the framework not being loaded

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-22 19:56:53 -05:00
Paul POULAIN
84385aee1b empty commit
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-22 07:14:14 -05:00
Galen Charlton
43d3efe391 classification sources part 1 - system preferences
Database schema definitions and system preferences support
for defining classification sources and filing rules.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-21 22:11:32 -05:00
Joshua Ferraro
904caa1e61 adding new syspref: CircAutocompl
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-21 21:55:36 -05:00
Ryan Higgins
94ab1fc061 updatedatabase for branch category types
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-21 19:18:42 -05:00
Ryan Higgins
70f46147a6 Extending branch categories : adding search domains. partial commit.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-21 19:18:36 -05:00
Joshua Ferraro
0488bcc4b3 removing another non-existant plugin 2007-10-20 14:39:55 -05:00
Joshua Ferraro
0009a03de9 removing non-existant plugin 2007-10-20 14:29:18 -05:00
Joshua Ferraro
6a9e6c2a4b fixes to marc21 bib framework
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-19 06:59:36 -05:00
Chris Cormack
9344d266c7 Adding index on userid in the borrowers table
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-19 00:34:10 -05:00
Joshua Ferraro
458dda22d3 removing marc21_ plugin that doesn't exist yet from the framework 2007-10-18 20:39:38 -05:00
Chris Cormack
b9c20fa9cf Patch from Galen Charlton, removing $Id$ $Log$ and $Revision$ from files
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 20:22:01 -05:00
Galen Charlton
af466ca41a start of reworking call number handling and other Biblio changes
Most of this commit by Joshua Ferraro.
updatedatabase changes by Galen Charlton.

Major changes:

This commit includes a lot of fairly major changes
to Koha's Biblio handling, largest is the addition
and deletion of several columns in the biblioitems,
items tables, as well as cleanup of deletedbiblioitems,
deleteditems tables. Some of the changes are simple
cleanup, but most have to do with improvements to
storage of call numbers in Koha.

Also, I had to clean up the _koha_* routines quite a
lot to make them work -- there was lots of data just
being lost because columns weren't being updated.

I'm still not completely convinced that the items
table is being treated as authoritative for items
data, investigating further.

DB Changes (updated in kohastructure.sql and in
updatedatabases):

ADDED:
biblioitems.cn_source   ( auth value, CN_SOURCE, stores the source of the
                          call number: DDC, LCC, NLM, etc.)
biblioitems.cn_class    ( plugin, marc21_callnumber.pl, helps fill in
                          the rest of the biblio-level fields)
biblioitems.cn_item
biblioitems.cn_suffix
biblioitems.cn_sort     ( for zebra sorting, stored as a decimal number)
biblioitems.totalissues ( for counting the total times issued )

items.cn_source         ( auth value, CN_SOURCE, stores DDC, LCC, NLM, etc.)
items.itemcallnumber    ( plugin, marc21_itemcallnumber.pl, helps fill in
                          the itemcallnumber based on the record data )
items.cn_sort           ( for zebra sorting, stored as a decimal number)
items.ccode             ( auth value, CCODE, stores the Collection Code
                          of the item, can be used as call number prefix
                          by some libraries )
items.uri
items.materials
items.damaged

DELETED:
items.itype
items.cutterextra
biblioitems.classification
biblioitems.subclass
biblioitems.dewey
biblioitems.lcsort
biblioitems.lccn
biblioitems.ccode

DB version now 3.00.00.009.

Minor changes:

* Drop revision history from C4/Biblio.pm
* GetMarcAuthors now returns additional authors (7XX), not
  main authors (1XX)
* Debug warnings in C4/Search.pm commented out

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 20:19:56 -05:00
thd
c6013f3fd0 Adding 2006 MARC 21 bibliographic update. Adjusting SQL syntax. Adjusting Koha 3.0 biblioitems and items tables mappings.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 20:19:51 -05:00
Paul POULAIN
917c1ab46c fines management (bugfixes & minor improvement)
- pay.pl fixed, the librarian can see patron fines & mark them paid
- fines2.pl fixed, the script now calculate the fines correctly from the finerules :
  * itemtype / patron category if it exist
  * itemtype / default if needed
- renamed misc/fines.pl as fines-sanop.pl
- added 2 systempreferences:
  * MaxFine: the max amount a patron can be charged for an item
  * NoReturnSetLost: how many days of late before a non returned item is marked lost & the patron charged for the full cost of replacement
(those values where hardcoded in fines2.pl
- C4/Circulation/Fines.pm has been removed (unused duplicate of C4/Overdues)

Note that SANOP feature about notify levels have NOT been ported here. I think they are too specific now, and the code is poorly written
I've renammed fines.pl to fines-sanop.pl to point that it is specific.
Thus, all notify_id related features are not used by anything (and always 0)
Can be interesting to reintroduce them, but that will probably be a large work...

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 16:25:00 -05:00
Paul POULAIN
9d7a4829be Insecure should not be set to 'NO'
but to '0'. No is 'true' for Perl.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-17 07:12:24 -05:00
Joshua Ferraro
eac81e3d8b Revert "Minor overhaul of installer WITHOUT thorough testing. Steps broken out into"
This reverts commit b9f141a592.
2007-10-17 06:58:48 -05:00
Joe Atzberger
b9f141a592 Minor overhaul of installer WITHOUT thorough testing. Steps broken out into
More revision is required: CVS variables, bad use of map in void context,
overuse of multiple index lines instead of one RegExp, etc.  Koha GPL
statement at top needed.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-17 06:56:27 -05:00
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
Joshua Ferraro
2abac6e0ec adding missing column to biblio table
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-11 15:57:33 -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
b52a45e4f7 fixing some french files for installer
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:08:08 -05:00
Paul POULAIN
c524420cde French installation files
- removing old & useless files
- renaming directories
- adding some Public & Research specific files

(copying some LibLime ideas)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:06: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
2d4cf61d9f Sorting the install directory
previously, the order was "random". With this patch, you can choose the order
of the file that are shown for adding during install.
Just name the directories: for example 1-Mandatory, 2-Optional, 3-whateveryouwant

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 19:04:20 -05:00
Paul POULAIN
230d8a902e IMPROVEMENT (for #1416 : Available items marked waiting as soon as hold is placed)
In fact, #1416 is not a bug, it's a feature : SAN-OP librarians place the reserve "book in hand", and confirm on phone that it's available
NPL save the reserve, but pick them from the shelves once a day only. So the item must be "to pull"

This commit improves the behaviour :
- document Reserves.pm a little, it was needed !
- add a systempreference ReservesNeedReturns, that let the library choose it's behaviour
- define the systempref in english & french systempreferences files
- add the systempref through the web installer (bumping to 3.00.00.003)

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-09 18:37:39 -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
Joshua Ferraro
c209a6b16d new auth values for MARC21
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 21:17:22 -05:00
Joshua Ferraro
bfecb0001d improvements to marc21 framework
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 17:07:24 -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
cac444cedc improvements to english auth values
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 16:35:08 -05:00
Joshua Ferraro
e494fadf0a partial 1481: adding to templates, fixing non-display of data
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 16:34:56 -05:00
Joshua Ferraro
7290f3207d updates to marc21 default framework
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 01:40:04 -05:00
Joshua Ferraro
0ec11acbe2 improvements to the english sysprefs
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 01:39:46 -05:00
Joshua Ferraro
ba36be1cbc refining barcode plugin, two new options
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 01:39:11 -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
Joshua Ferraro
b36ddc5feb adding better english stopwords
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-06 01:37:37 -05:00
Paul POULAIN
7f4c6d8335 #1449: Installer improved to add a zebra/Nozebra screen
+ some minor changes in html

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-03 05:10:59 -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
Joshua Ferraro
b66f36dac9 updating fund field length and normalizing brancode
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-01 23:10:21 -05:00
Joshua Ferraro
5cb229626b sample label data
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-01 17:40:33 -05:00
Joshua Ferraro
ff5cd2a0e8 more marc21 sample data
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-01 17:40:32 -05:00
Joshua Ferraro
a0959c16aa fixes last two sysprefs explanation values
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 21:34:19 -05:00
Joshua Ferraro
2f5115949b Adding two missing sysprefs
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 21:16:58 -05:00
Joshua Ferraro
06848cfae5 Vast improvements to marc21 bib and auth definitions
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 19:19:12 -05:00
Joshua Ferraro
a754051fcd Remove NOT NULL for new columns in biblioitems as they
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 19:17:51 -05:00
Joshua Ferraro
97db0fb6d6 more sample data for English
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 16:55:23 -05:00
Ryan Higgins
cdb0b859fe fix column spelling errors and inconsistency btwn kohastructure and Biblio.pm (editionreponsability).
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 16:03:49 -05:00
Joshua Ferraro
404ab4bd36 listing valid authority types
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 15:57:13 -05:00
Joshua Ferraro
57408637b9 improvements to the system preferences
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 03:05:47 -05:00
Joshua Ferraro
a62b9d6e38 fixing marc21 authorities defs
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 03:03:49 -05:00
Joshua Ferraro
b6d07ca784 improving sample patron data
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 03:01:28 -05:00
Joshua Ferraro
24b1827200 minor adjustments to frameworks
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 03:00:56 -05:00
Joshua Ferraro
45e9e184ef genericize spsuggest feature
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-29 16:00:55 -05:00
Mason James
bd9341d8de adding cgi::carp module too
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-28 16:40:32 -05:00
Mason James
64a5e75384 adding carp debuglevel syspref
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-27 20:25:21 -05:00
Paul POULAIN
fd10552848 FIX for 1298 : removing hardcoded calls to mySQL, Perl, zebra & yaz-client
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-24 15:29:06 -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
Chris Cormack
2cd76adddf Files sent from paul, Systempreferences translated to French 2007-09-19 02:52:07 -05:00
thd
22b384e0d1 Major change switching Koha record ID from field 090 to 999. 090 is now for
local LC call number as used at many North American academic libraries.
Correcting authoritytypecode values where my typo used the number '0' as
part of the value in one table and the letter 'O' in another table.
Improved seealso column indexing values.

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 21:29:41 -05:00
thd
29f27f0a50 Corrected field and subfield values in frameworks.
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 21:23:09 -05:00
thd
78e7932328 Correcting authoritytypecode values where my typo used the number '0' as
part of the value in one table and the letter 'O' in another table.
Improved seealso column indexing values.

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 21:22:50 -05:00
Paul POULAIN
e2364cbcfa adding Algorithm::CheckDigits dependancy, for barcode printing
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-03 03:41:03 -05:00
Joshua Ferraro
d1f6407baa moved images to img fixed installer path for templates
perl -pi~ -e 's/\/prog\/images\//\/prog\/img\//' *
perl -pi~ -e 's/\/prog\/en\/images\//\/prog\/img\//' *

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-23 21:21:58 -05:00
Joshua Ferraro
7988048ca9 moving sql data to installer directory
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 22:15:30 -05:00
Joshua Ferraro
e92f1d752c adding label manager sql
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 17:39:41 -05:00
Ryan Higgins
6e2564450e Adding labels generator.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 17:39:38 -05:00
Ryan Higgins
05b0bad473 adding labels_templates table
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 17:39:34 -05:00
Ryan Higgins
6a6b8960d5 updating labels_conf table with extra koha columns
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 17:39:22 -05:00
Joshua Ferraro
d60d540d6d 1. remove quotes around integer values
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-18 17:39:07 -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
836b9857ed content-type was incorrectly set in InstallAuth.pm
Adding 'wizard' and 'login' detection

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-15 21:22:21 -05:00
Joshua Ferraro
cefeb583ad fixing permissions on scripts
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-13 12:22:30 -05:00
Chris Cormack
f14a897b90 Fixing a bug that was causing the installer to not check the password
correctly

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-10 15:43:56 -05:00
Chris Cormack
24d5e31dae Changing InstallAuth to use CGI::Session and fixing install.pl which broke
with the kohastruture.sql clean up

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-10 10:55:53 -05:00
Chris Cormack
8494eff8bc Removing warn in Auth.pm
Changing InstallAuth.pm to use CGI::Session

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-10 10:51:59 -05:00
Paul POULAIN
b40c26cffe updating kohastructure.sql by removing some useless tables & rows. See mail on koha-devel for more details
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-09 09:49:21 -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
Joshua Ferraro
8ee881174f Merge branch 'master' of /usr/local/git/koha_base.git/ 2007-08-08 07:27:26 -05:00
Chris Cormack
df630421c8 Changing sessions table to work with CGI::Session
No longer need all the extra columns, its stored in the a_session, and with CGI::Session
you get back a session object which you can do things like
my $userid = $session->param('userid');

Signed-off-by: kados <jmf@liblime.com>
2007-08-07 13:22:23 -05:00
kados
40af15d8e6 changing permissions on templates and scripts 2007-08-07 13:20:51 -05:00
paul
5cabc69758 Removing useless websites table from sql definition
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-07 09:41:20 -05:00