updates to support corner cases in circ
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jan 2006 18:16:43 +0000 (18:16 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jan 2006 18:16:43 +0000 (18:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2764 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/action.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/asset.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/config.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/dbi.pm
Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm

index 18288a7..3ddcb7b 100644 (file)
@@ -6,6 +6,20 @@ package action;
 use base qw/OpenILS::Application::Storage::CDBI/;
 #-------------------------------------------------------------------------------
 
 use base qw/OpenILS::Application::Storage::CDBI/;
 #-------------------------------------------------------------------------------
 
+package action::in_house_use;
+use base qw/action/;
+__PACKAGE__->table('action_in_house_use');
+__PACKAGE__->columns(Primary => 'id');
+__PACKAGE__->columns(Essential => qw/item staff org_unit use_time/);
+#-------------------------------------------------------------------------------
+
+package action::non_cataloged_circulation;
+use base qw/action/;
+__PACKAGE__->table('action_non_cataloged_circulation');
+__PACKAGE__->columns(Primary => 'id');
+__PACKAGE__->columns(Essential => qw/patron staff circ_lib item_type circ_time/);
+#-------------------------------------------------------------------------------
+
 package action::survey;
 use base qw/action/;
 __PACKAGE__->table('action_survey');
 package action::survey;
 use base qw/action/;
 __PACKAGE__->table('action_survey');
index 881ca0c..c5b9c39 100644 (file)
@@ -39,7 +39,7 @@ __PACKAGE__->columns( Essential => qw/call_number barcode creator create_date ed
                                   edit_date copy_number status loan_duration circ_lib
                                   fine_level circulate deposit price ref opac_visible
                                   circ_as_type circ_modifier deposit_amount location
                                   edit_date copy_number status loan_duration circ_lib
                                   fine_level circulate deposit price ref opac_visible
                                   circ_as_type circ_modifier deposit_amount location
-                                  holdable/ );
+                                  holdable dummy_title dummy_author/ );
 
 #-------------------------------------------------------------------------------
 package asset::stat_cat;
 
 #-------------------------------------------------------------------------------
 package asset::stat_cat;
index f81cf1d..cf429bc 100644 (file)
@@ -6,6 +6,13 @@ package config;
 use base qw/OpenILS::Application::Storage::CDBI/;
 #-------------------------------------------------------------------------------
 
 use base qw/OpenILS::Application::Storage::CDBI/;
 #-------------------------------------------------------------------------------
 
+package config::non_cataloged_item;
+use base qw/config/;
+__PACKAGE__->table('config_non_cataloged_item');
+__PACKAGE__->columns(Primary => 'id');
+__PACKAGE__->columns(Essential => qw/owning_lib name/);
+#-------------------------------------------------------------------------------
+
 package config::standing;
 use base qw/config/;
 __PACKAGE__->table('config_standing');
 package config::standing;
 use base qw/config/;
 __PACKAGE__->table('config_standing');
index 3fb33d5..57cdfe2 100644 (file)
        action::circulation->sequence( 'money.billable_xact_id_seq' );
 
        #---------------------------------------------------------------------
        action::circulation->sequence( 'money.billable_xact_id_seq' );
 
        #---------------------------------------------------------------------
+       package action::in_house_use;
+       
+       action::in_house_use->table( 'action.in_house_use' );
+       action::in_house_use->sequence( 'action.in_house_use_id_seq' );
+
+       #---------------------------------------------------------------------
+       package action::non_cataloged_circulation;
+       
+       action::non_cataloged_circulation->table( 'action.non_cataloged_circulation' );
+       action::non_cataloged_circulation->sequence( 'action.non_cataloged_circulation_id_seq' );
+
+       #---------------------------------------------------------------------
        package action::open_circulation;
        
        action::open_circulation->table( 'action.open_circulation' );
        package action::open_circulation;
        
        action::open_circulation->table( 'action.open_circulation' );
        action::survey_response->sequence( 'action.survey_response_id_seq' );
        
        #---------------------------------------------------------------------
        action::survey_response->sequence( 'action.survey_response_id_seq' );
        
        #---------------------------------------------------------------------
+       package config::non_cataloged_type;
+       
+       config::non_cataloged_type->table( 'config.non_cataloged_type' );
+       config::non_cataloged_type->sequence( 'config.non_cataloged_type_id_seq' );
+
+       #---------------------------------------------------------------------
        package config::copy_status;
        
        config::copy_status->table( 'config.copy_status' );
        package config::copy_status;
        
        config::copy_status->table( 'config.copy_status' );
index 69be355..dbc1267 100644 (file)
@@ -65,6 +65,9 @@ sub _init {
                'Fieldmapper::container::call_number_bucket_item'       => { hint => 'ccnbi'   },
                'Fieldmapper::container::biblio_record_entry_bucket_item'               => { hint => 'cbrebi'   },
 
                'Fieldmapper::container::call_number_bucket_item'       => { hint => 'ccnbi'   },
                'Fieldmapper::container::biblio_record_entry_bucket_item'               => { hint => 'cbrebi'   },
 
+               'Fieldmapper::action::in_house_use'             => { hint => 'aihu'   },
+               'Fieldmapper::action::non_cataloged_circulation'=> { hint => 'ancc'   },
+
                'Fieldmapper::action::survey'                   => { hint               => 'asv',
                                                                     proto_fields       => { questions  => 1,
                                                                                             responses  => 1 } },
                'Fieldmapper::action::survey'                   => { hint               => 'asv',
                                                                     proto_fields       => { questions  => 1,
                                                                                             responses  => 1 } },
@@ -94,8 +97,6 @@ sub _init {
                'Fieldmapper::actor::org_address'               => { hint => 'aoa'    },
                'Fieldmapper::actor::profile'                   => { hint => 'ap'    },
                'Fieldmapper::actor::card'                      => { hint => 'ac'    },
                'Fieldmapper::actor::org_address'               => { hint => 'aoa'    },
                'Fieldmapper::actor::profile'                   => { hint => 'ap'    },
                'Fieldmapper::actor::card'                      => { hint => 'ac'    },
-               'Fieldmapper::config::standing'                 => { hint => 'cst'   },
-               'Fieldmapper::config::copy_status'              => { hint => 'ccs'   },
                'Fieldmapper::actor::stat_cat'                  => { hint               => 'actsc',
                                                                     proto_fields       => { entries => 1 } },
                'Fieldmapper::actor::stat_cat_entry'            => { hint => 'actsce'    },
                'Fieldmapper::actor::stat_cat'                  => { hint               => 'actsc',
                                                                     proto_fields       => { entries => 1 } },
                'Fieldmapper::actor::stat_cat_entry'            => { hint => 'actsce'    },
@@ -181,6 +182,9 @@ sub _init {
                'Fieldmapper::config::rules::recuring_fine'     => { hint => 'crrf'  },
                'Fieldmapper::config::rules::circ_duration'     => { hint => 'crcd'  },
                'Fieldmapper::config::rules::max_fine'          => { hint => 'crmf'  },
                'Fieldmapper::config::rules::recuring_fine'     => { hint => 'crrf'  },
                'Fieldmapper::config::rules::circ_duration'     => { hint => 'crcd'  },
                'Fieldmapper::config::rules::max_fine'          => { hint => 'crmf'  },
+               'Fieldmapper::config::non_cataloged_type'       => { hint => 'cnct'   },
+               'Fieldmapper::config::standing'                 => { hint => 'cst'   },
+               'Fieldmapper::config::copy_status'              => { hint => 'ccs'   },
 
                'Fieldmapper::authority::full_rec'              => { hint => 'afr'  },
                'Fieldmapper::authority::record_descriptor'     => { hint => 'ard'  },
 
                'Fieldmapper::authority::full_rec'              => { hint => 'afr'  },
                'Fieldmapper::authority::record_descriptor'     => { hint => 'ard'  },