Use biblioitems.itemtype as a default for items.itype
authorMichael Hafen <mdhafen@tech.washk12.org>
Fri, 12 Sep 2008 19:16:58 +0000 (13:16 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 24 Apr 2009 15:26:57 +0000 (10:26 -0500)
commit34d339914982a11b2b72191d0362dbf38c7c31dd
tree329ded3f042dc7f4afde021f5a6ae86553a5db65
parent0a306bc28c3c931e06bcd5caea293871f5af4471
Use biblioitems.itemtype as a default for items.itype

This correct the html select default in additem.pl, and enforces use of
biblioitems.itemtype as the default in Items::AddItem.  The code in
Items is to catch items added through MARC record staging.

Thanks to Joe Atzberger for suggestion.

[RM note: this patch means that an item's item-level item type,
 once that item is added or updated via additem.pl,
 now cannot be blank or NULL unless the biblio-level item type
 is blank.]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Items.pm
cataloguing/additem.pl