Main Koha release repository
https://koha-community.org
5c23369af2
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> |
||
---|---|---|
acqui | ||
admin | ||
authorities | ||
C4 | ||
catalogue | ||
cataloguing | ||
circ | ||
etc | ||
install_misc | ||
installer | ||
koha-tmpl | ||
labels | ||
members | ||
misc | ||
opac | ||
reports | ||
reserve | ||
reviews | ||
rss | ||
serials | ||
skel | ||
sms | ||
suggestion | ||
svc | ||
t | ||
tmp/modified_authorities | ||
tools | ||
virtualshelves | ||
.htaccess | ||
about.pl | ||
changelanguage.pl | ||
edithelp.pl | ||
fix-perl-path.PL | ||
help.pl | ||
INSTALL | ||
install-CPAN.pl | ||
INSTALL.debian | ||
kohaversion.pl | ||
LICENSE | ||
mainpage.pl | ||
Makefile.PL | ||
MANIFEST.SKIP | ||
README | ||
rewrite-config.PL |
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/