Main Koha release repository https://koha-community.org
Find a file
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
acqui fix for bug 1723. no auth on finishreceive.pl 2008-01-01 20:11:49 -06:00
admin Allow Library select on new bookfund and term update. 2008-01-03 16:23:00 -06:00
authorities authorities: make tag editor links consistent with bib 2007-12-29 06:53:52 -06:00
C4 Fixing Database Definitions for Statuses *PARTIAL* 2008-01-03 16:23:04 -06:00
catalogue Fixing Database Definitions for Statuses *PARTIAL* 2008-01-03 16:23:04 -06:00
cataloguing Fix for bug 1319, can no longer delete an item with a waiting reserve on it 2007-12-30 16:59:05 -06:00
circ Fix to redirect the user ot the select branch page if they try to use 2008-01-01 20:03:08 -06:00
etc Fix Genre-form and Subject-topical for MARC21 2008-01-03 08:28:04 -06:00
install_misc Some tweaks for Debian Etch install procedure 2008-01-03 16:22:58 -06:00
installer Fixing Database Definitions for Statuses *PARTIAL* 2008-01-03 16:23:04 -06:00
koha-tmpl Allow Library select on new bookfund and term update. 2008-01-03 16:23:00 -06:00
labels label-manager - POSIX unused, commented out 2008-01-03 01:18:18 -06:00
members tmpl var CATCODE_MULTI now passed 2008-01-03 01:44:11 -06:00
misc Fixing Database Definitions for Statuses *PARTIAL* 2008-01-03 16:23:04 -06:00
opac opac-detail.pl - cleanup incl. exit after redirect 2008-01-03 01:18:13 -06:00
reports removing some unnecessary lines 2007-12-13 18:03:47 -06:00
reserve Some refinements to statuses and messages. Beginning to standardize call number displays. 2008-01-03 01:20:33 -06:00
reviews functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
rss rel_3_0 moved to HEAD 2007-03-09 15:12:54 +00:00
serials padding Add_Delta_Days date, again. 2008-01-03 00:32:51 -06:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms adding SMS stuff so we don't forget about it 2007-10-29 21:21:20 -05:00
suggestion removing useless code 2007-10-24 17:03:38 -05:00
svc bib_profile web svc: report biblioitems.itemtype subfield as non-mandatory 2007-12-04 15:06:05 -06:00
t Dates.pm - IMPORTANT fix for dmy_array (part of obejct, not class) 2007-12-20 19:13:21 -06:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools import_borrowers.pl - convert dates BEFORE AddMember or ModMember 2007-12-20 20:51:28 -06:00
virtualshelves Warning: Big Commit. Fixing Virtual Shelves 2007-12-23 14:31:14 -06:00
.htaccess Solution for error pages 2004-07-30 14:04:20 +00:00
about.pl session management: use YAML::Syck for serialization 2007-12-27 17:24:02 -06:00
changelanguage.pl Searching Patch 1: fixing searching in 3.0 2007-10-29 17:45:14 -05:00
edithelp.pl Bugfix for help editor 2007-09-13 18:37:19 -05:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl HTML::Template => HTML::Template::Pro 2007-12-02 14:55:55 -06:00
INSTALL updating INSTALL and INSTALL.debian 2007-12-30 17:00:26 -06:00
install-CPAN.pl BUGFIX: need to create authors/id if CPAN is unused 2007-09-07 05:26:16 -05:00
INSTALL.debian Some tweaks for Debian Etch install procedure 2008-01-03 16:22:58 -06:00
kohaversion.pl Fix for bug 1552, fix ordering of issued items 2007-12-30 16:24:27 -06:00
LICENSE re-naming some files prior to release 2007-12-30 12:13:39 -06:00
mainpage.pl Perltidy mainpage.pl 2007-08-03 17:28:27 -05:00
Makefile.PL important: DBD::mysql 4.004 or later required 2007-12-28 08:18:53 -06:00
MANIFEST.SKIP Do not pack the git repository 2007-09-06 17:14:36 -05:00
README adding README 2007-12-30 12:13:57 -06:00
rewrite-config.PL various installer changes 2007-12-22 18:59:04 -06:00

Koha 3 - the next-generation release of the award-winning Koha open-source
integrated library system.

30 December 2007 - Joshua Ferraro <jmf AT liblime DOT com>

Koha is distributed under the GNU GPL. Please read the file LICENSE for
more details.

To install or upgrade Koha, please see the INSTALL file.

Please report any bugs to the koha mailing lists or bug tracker and we
will try to fix them in a future release. The main koha web site is
http://www.koha.org/