Correct long-standing, wide-spread "recurance" and "recuring" typos.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Nov 2009 14:46:19 +0000 (14:46 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Nov 2009 14:46:19 +0000 (14:46 +0000)
We'll miss you - *sniff*

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14920 dcc99617-32d9-48b4-a31d-7c20da2025e4

26 files changed:
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/cgi-bin/circ-rules.cgi
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm
Open-ILS/src/perlmods/OpenILS/Application/Circ.pm
Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/action.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/Application/Storage/Publisher/action.pm
Open-ILS/src/reporter/clark-kent.pl
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/1.4.0.5-1.6.0.0-upgrade-db.sql
Open-ILS/src/sql/Pg/100.circ_matrix.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/reporter-schema.sql
Open-ILS/src/sql/Pg/stats/circ_stats.sql
Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql [new file with mode: 0644]
Open-ILS/src/support-scripts/test-scripts/indb_circ.pl
Open-ILS/web/opac/common/js/fm_table_conf.js
Open-ILS/web/reports/oils_rpt_report_editor.js
Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
build/i18n/tests/data/testidl.ent
build/i18n/tests/data/testidl.xml
build/i18n/tests/data/testidlent.xml

index f7baeb5..4c2ef68 100644 (file)
@@ -2151,8 +2151,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
                        <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
-                       <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
-                       <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
+                       <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+                       <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
                        <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
                        <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
@@ -2184,7 +2184,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                        <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
                        <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
                        <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
@@ -2211,8 +2211,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
                        <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
-                       <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
-                       <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
+                       <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+                       <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
                        <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
                        <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
@@ -2247,7 +2247,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                        <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
                        <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
                        <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
@@ -2275,8 +2275,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
                        <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
-                       <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
-                       <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
+                       <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+                       <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
                        <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
                        <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
@@ -2315,7 +2315,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                        <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
                        <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
                        <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
@@ -3268,8 +3268,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field name="max_fine_rule" reporter:datatype="link"/>
                        <field name="opac_renewal" reporter:datatype="bool"/>
                        <field name="phone_renewal" reporter:datatype="bool"/>
-                       <field name="recuring_fine" reporter:datatype="money" />
-                       <field name="recuring_fine_rule" reporter:datatype="link"/>
+                       <field name="recurring_fine" reporter:datatype="money" />
+                       <field name="recurring_fine_rule" reporter:datatype="link"/>
                        <field name="renewal_remaining" reporter:datatype="int" />
                        <field name="stop_fines" reporter:datatype="text"/>
                        <field name="stop_fines_time" reporter:datatype="timestamp"/>
@@ -3283,7 +3283,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                </links>
        </class>
        <class id="msfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::subject_field_entry" oils_persist:tablename="metabib.subject_field_entry" reporter:label="Subject Field Entry">
@@ -3298,22 +3298,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
                </links>
        </class>
-       <class id="crrf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::recuring_fine" oils_persist:tablename="config.rule_recuring_fine" reporter:label="Recurring Fine Rule">
-               <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recuring_fine_id_seq">
+       <class id="crrf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::recurring_fine" oils_persist:tablename="config.rule_recurring_fine" reporter:label="Recurring Fine Rule">
+               <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recurring_fine_id_seq">
                        <field name="high" reporter:datatype="money" />
                        <field name="id" reporter:selector="name" reporter:datatype="id"/>
                        <field name="low" reporter:datatype="money" />
                        <field name="name" reporter:datatype="text"/>
                        <field name="normal" reporter:datatype="money" />
-                       <field name="recurance_interval" reporter:datatype="interval"/>
+                       <field name="recurrence_interval" reporter:datatype="interval"/>
                </fields>
                <links/>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>
-                <create permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
+                <create permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
                 <retrieve/>
-                <update permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
-                <delete permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
+                <update permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
+                <delete permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
             </actions>
         </permacrud>
        </class>
@@ -4742,7 +4742,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field name="data" reporter:datatype="link"/>
                        <field name="folder" reporter:datatype="link"/>
                        <field name="recur" reporter:datatype="bool"/>
-                       <field name="recurance" reporter:datatype="interval"/>
+                       <field name="recurrence" reporter:datatype="interval"/>
                        <field name="name" reporter:datatype="text"/>
                        <field name="description" reporter:datatype="text"/>
                        <field name="runs" oils_persist:virtual="true" reporter:datatype="link"/>
@@ -5360,8 +5360,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
                        <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
-                       <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
-                       <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
+                       <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+                       <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
                        <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
                        <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
                        <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
@@ -5388,7 +5388,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                        <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
                        <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
                        <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
index f676879..d65c39f 100755 (executable)
@@ -82,10 +82,10 @@ my %fine_cols = (
        high                    => "High",
        normal                  => "Normal",
        low                     => "Low",
-       recurance_interval      => "Interval",
+       recurrence_interval     => "Interval",
 );
 
-my @fine_display_order = ( qw/name recurance_interval normal high low/ );
+my @fine_display_order = ( qw/name recurrence_interval normal high low/ );
 
 my %age_cols = (
        name    => "Name",
@@ -120,13 +120,13 @@ if (my $action = $cgi->param('action')) {
                                { map { ($_ => $cgi->param($_)) } keys %dur_cols }
                        );
                }
-       } elsif ($form eq 'recuring_fine') {
+       } elsif ($form eq 'recurring_fine') {
                if ($action eq 'Remove Selected') {
                        for my $id ( ($cgi->param('remove_me')) ) {
-                               config::rules::recuring_fine->retrieve($id)->delete;
+                               config::rules::recurring_fine->retrieve($id)->delete;
                        }
                } elsif ( $action eq 'Add New' ) {
-                       config::rules::recuring_fine->create(
+                       config::rules::recurring_fine->create(
                                { map { ($_ => $cgi->param($_)) } keys %fine_cols }
                        );
                }
@@ -196,11 +196,11 @@ if (my $action = $cgi->param('action')) {
 
 {
        #-----------------------------------------------------------------------
-       # Recuring Fine form
+       # Recurring Fine form
        #-----------------------------------------------------------------------
        print   "<form method='POST'>".
-               "<input type='hidden' name='rules_form' value='recuring_fine'>".
-               "<h2>Recuring Fine Levels</h2>".
+               "<input type='hidden' name='rules_form' value='recurring_fine'>".
+               "<h2>Recurring Fine Levels</h2>".
                "<table class='table_class'><tr class='header_class'>\n";
        
        for my $col ( @fine_display_order ) {
@@ -209,7 +209,7 @@ if (my $action = $cgi->param('action')) {
        
        print "<td/>\n";
        
-       for my $row ( config::rules::recuring_fine->retrieve_all ) {
+       for my $row ( config::rules::recurring_fine->retrieve_all ) {
                print "</tr><tr class='row_class'>\n";
                for my $col ( @fine_display_order ) {
                        print td($row->$col);
index 4f189fb..898afcb 100644 (file)
        <event code='1608' textcode='METABIB_SUBJECT_FIELD_ENTRY_NOT_FOUND'>
                <desc xml:lang='en-US'>The requested metabib_subject_field_entry was not found</desc>
        </event>
-       <event code='1609' textcode='CONFIG_RULES_RECURING_FINE_NOT_FOUND'>
-               <desc xml:lang='en-US'>The requested config_rules_recuring_fine was not found</desc>
+       <event code='1609' textcode='CONFIG_RULES_RECURRING_FINE_NOT_FOUND'>
+               <desc xml:lang='en-US'>The requested config_rules_recurring_fine was not found</desc>
        </event>
        <event code='1610' textcode='MONEY_CHECK_PAYMENT_NOT_FOUND'>
                <desc xml:lang='en-US'>The requested money_check_payment was not found</desc>
index 082b3d2..f3b7a7c 100644 (file)
@@ -812,9 +812,9 @@ sub fetch_recurring_fine_by_name {
        my( $obj, $evt );
        $obj = $self->simplereq(
                'open-ils.cstore', 
-               'open-ils.cstore.direct.config.rules.recuring_fine.search.atomic', { name => $name } );
+               'open-ils.cstore.direct.config.rules.recurring_fine.search.atomic', { name => $name } );
        $obj = $obj->[0];
-       $evt = OpenILS::Event->new('CONFIG_RULES_RECURING_FINE_NOT_FOUND') unless $obj;
+       $evt = OpenILS::Event->new('CONFIG_RULES_RECURRING_FINE_NOT_FOUND') unless $obj;
        return ($obj, $evt);
 }
 
index 163ce37..10be02c 100644 (file)
@@ -897,7 +897,7 @@ sub copy_details {
                         'checkin_workstation', 
                         'duration_rule', 
                         'max_fine_rule', 
-                        'recuring_fine_rule'
+                        'recurring_fine_rule'
                     ]
                 },
                 order_by => { circ => 'xact_start desc' }, 
index 4c90660..a228cb0 100644 (file)
@@ -984,7 +984,7 @@ sub get_circ_policy {
         recurring_fine_rule => $recurring_fine_rule->name,
         max_fine_rule => $max_fine_rule->name,
         max_fine => $self->get_max_fine_amount($max_fine_rule),
-        fine_interval => $recurring_fine_rule->recurance_interval,
+        fine_interval => $recurring_fine_rule->recurrance_interval,
         renewal_remaining => $duration_rule->max_renewals
     };
 
@@ -1540,19 +1540,19 @@ sub build_checkout_circ_object {
             "with duration=$dname, maxfine=$mname, recurring=$rname");
     
         $circ->duration($policy->{duration});
-        $circ->recuring_fine($policy->{recurring_fine});
+        $circ->recurring_fine($policy->{recurring_fine});
         $circ->duration_rule($duration->name);
-        $circ->recuring_fine_rule($recurring->name);
+        $circ->recurring_fine_rule($recurring->name);
         $circ->max_fine_rule($max->name);
         $circ->max_fine($policy->{max_fine});
-        $circ->fine_interval($recurring->recurance_interval);
+        $circ->fine_interval($recurring->recurrance_interval);
         $circ->renewal_remaining($duration->max_renewals);
 
     } else {
 
         $logger->info("circulator: copy found with an unlimited circ duration");
         $circ->duration_rule(OILS_UNLIMITED_CIRC_DURATION);
-        $circ->recuring_fine_rule(OILS_UNLIMITED_CIRC_DURATION);
+        $circ->recurring_fine_rule(OILS_UNLIMITED_CIRC_DURATION);
         $circ->max_fine_rule(OILS_UNLIMITED_CIRC_DURATION);
         $circ->renewal_remaining(0);
     }
index 3cbfc7b..8802e57 100644 (file)
@@ -64,7 +64,7 @@ __PACKAGE__->table('action_circulation');
 __PACKAGE__->columns(Primary => 'id');
 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
                                     duration duration_rule renewal_remaining
-                                    recuring_fine_rule recuring_fine stop_fines
+                                    recurring_fine_rule recurring_fine stop_fines
                                     max_fine max_fine_rule fine_interval
                                     stop_fines xact_finish due_date opac_renewal
                                     checkin_staff circ_staff circ_lib checkin_lib
@@ -79,7 +79,7 @@ __PACKAGE__->table('action_open_circulation');
 __PACKAGE__->columns(Primary => 'id');
 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
                                     duration duration_rule renewal_remaining
-                                    recuring_fine_rule recuring_fine stop_fines
+                                    recurring_fine_rule recurring_fine stop_fines
                                     max_fine max_fine_rule fine_interval
                                     stop_fines xact_finish due_date opac_renewal
                                     checkin_staff circ_staff circ_lib checkin_lib
index 5e88455..bde4372 100644 (file)
@@ -55,11 +55,11 @@ __PACKAGE__->columns(Primary => 'id');
 __PACKAGE__->columns(Essential => qw/name amount is_percent/);
 #-------------------------------------------------------------------------------
 
-package config::rules::recuring_fine;
+package config::rules::recurring_fine;
 use base qw/config/;
-__PACKAGE__->table('config_rule_recuring_fine');
+__PACKAGE__->table('config_rule_recurring_fine');
 __PACKAGE__->columns(Primary => 'id');
-__PACKAGE__->columns(Essential => qw/name high normal low recurance_interval/);
+__PACKAGE__->columns(Essential => qw/name high normal low recurrence_interval/);
 #-------------------------------------------------------------------------------
 
 package config::rules::age_hold_protect;
index 2da5d7c..0620bd7 100644 (file)
        config::rules::max_fine->sequence( 'config.rule_max_fine_id_seq' );
        
        #---------------------------------------------------------------------
-       package config::rules::recuring_fine;
+       package config::rules::recurring_fine;
        
-       config::rules::recuring_fine->table( 'config.rule_recuring_fine' );
-       config::rules::recuring_fine->sequence( 'config.rule_recuring_fine_id_seq' );
+       config::rules::recurring_fine->table( 'config.rule_recurring_fine' );
+       config::rules::recurring_fine->sequence( 'config.rule_recurring_fine_id_seq' );
        
        #---------------------------------------------------------------------
        package config::net_access_level;
index f58ff7b..82eb65e 100644 (file)
@@ -755,7 +755,7 @@ sub generate_fines {
        
                        $client->respond( "\t$pending_fine_count pending fine(s)\n" );
 
-                       my $recuring_fine = int($c->recuring_fine * 100);
+                       my $recurring_fine = int($c->recurring_fine * 100);
                        my $max_fine = int($c->max_fine * 100);
 
                        my ($latest_billing_ts, $latest_amount) = ('',0);
@@ -788,8 +788,8 @@ sub generate_fines {
                                );
                                next if (@cl);
        
-                               $current_fine_total += $recuring_fine;
-                               $latest_amount += $recuring_fine;
+                               $current_fine_total += $recurring_fine;
+                               $latest_amount += $recurring_fine;
                                $latest_billing_ts = $timestamptz;
 
                                money::billing->create(
@@ -797,7 +797,7 @@ sub generate_fines {
                                          note          => "System Generated Overdue Fine",
                                          billing_type  => "Overdue materials",
                                          btype         => 1,
-                                         amount        => sprintf('%0.2f', $recuring_fine/100),
+                                         amount        => sprintf('%0.2f', $recurring_fine/100),
                                          billing_ts    => $timestamptz,
                                        }
                                );
index 5e87cb2..9800a9c 100755 (executable)
@@ -284,7 +284,7 @@ for my $r ( @reports ) {
                                $r->{folder},
                                $r->{runner},
                                $r->{run_time},
-                               $r->{report}->{recurance},
+                               $r->{report}->{recurrence},
                                $r->{email},
                                $r->{csv_format},
                                $r->{excel_format},
index 2475548..22099db 100644 (file)
@@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log (
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0084'); -- senator
+INSERT INTO config.upgrade_log (version) VALUES ('0085'); -- dbs
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
@@ -309,15 +309,15 @@ COMMENT ON TABLE config.rule_max_fine IS $$
  */
 $$;
 
-CREATE TABLE config.rule_recuring_fine (
+CREATE TABLE config.rule_recurring_fine (
        id                      SERIAL          PRIMARY KEY,
        name                    TEXT            NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ),
        high                    NUMERIC(6,2)    NOT NULL,
        normal                  NUMERIC(6,2)    NOT NULL,
        low                     NUMERIC(6,2)    NOT NULL,
-       recurance_interval      INTERVAL        NOT NULL DEFAULT '1 day'::INTERVAL
+       recurrence_interval     INTERVAL        NOT NULL DEFAULT '1 day'::INTERVAL
 );
-COMMENT ON TABLE config.rule_recuring_fine IS $$
+COMMENT ON TABLE config.rule_recurring_fine IS $$
 /*
  * Copyright (C) 2005  Georgia Public Library Service 
  * Mike Rylander <mrylander@gmail.com>
@@ -325,7 +325,7 @@ COMMENT ON TABLE config.rule_recuring_fine IS $$
  * Circulation Recurring Fine rules
  *
  * Each circulation is given a recurring fine amount based on one of
- * these rules.  The recurance_interval should not be any shorter
+ * these rules.  The recurrence_interval should not be any shorter
  * than the interval between runs of the fine_processor.pl script
  * (which is run from CRON), or you could miss fines.
  * 
index 3151188..302fded 100644 (file)
@@ -115,13 +115,13 @@ CREATE TABLE action.circulation (
        create_time             TIMESTAMP WITH TIME ZONE    NOT NULL DEFAULT NOW(),
        duration                INTERVAL,                                 -- derived from "circ duration" rule
        fine_interval           INTERVAL                        NOT NULL DEFAULT '1 day'::INTERVAL, -- derived from "circ fine" rule
-       recuring_fine           NUMERIC(6,2),                             -- derived from "circ fine" rule
+       recurring_fine          NUMERIC(6,2),                             -- derived from "circ fine" rule
        max_fine                NUMERIC(6,2),                             -- derived from "max fine" rule
        phone_renewal           BOOL                            NOT NULL DEFAULT FALSE,
        desk_renewal            BOOL                            NOT NULL DEFAULT FALSE,
        opac_renewal            BOOL                            NOT NULL DEFAULT FALSE,
        duration_rule           TEXT                            NOT NULL, -- name of "circ duration" rule
-       recuring_fine_rule      TEXT                            NOT NULL, -- name of "circ fine" rule
+       recurring_fine_rule     TEXT                            NOT NULL, -- name of "circ fine" rule
        max_fine_rule           TEXT                            NOT NULL, -- name of "max fine" rule
        stop_fines              TEXT                            CHECK (stop_fines IN (
                                               'CHECKIN','CLAIMSRETURNED','LOST','MAXFINES','RENEW','LONGOVERDUE','CLAIMSNEVERCHECKEDOUT')),
@@ -190,8 +190,8 @@ CREATE OR REPLACE VIEW action.all_circulation AS
     SELECT  id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
         copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
         circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
-        stop_fines_time, checkin_time, create_time, duration, fine_interval, recuring_fine,
-        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recuring_fine_rule,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
         max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ
       FROM  action.aged_circulation
             UNION ALL
@@ -199,8 +199,8 @@ CREATE OR REPLACE VIEW action.all_circulation AS
         cp.call_number AS copy_call_number, cp.location AS copy_location, cn.owning_lib AS copy_owning_lib, cp.circ_lib AS copy_circ_lib,
         cn.record AS copy_bib_record, circ.xact_start, circ.xact_finish, circ.target_copy, circ.circ_lib, circ.circ_staff, circ.checkin_staff,
         circ.checkin_lib, circ.renewal_remaining, circ.due_date, circ.stop_fines_time, circ.checkin_time, circ.create_time, circ.duration,
-        circ.fine_interval, circ.recuring_fine, circ.max_fine, circ.phone_renewal, circ.desk_renewal, circ.opac_renewal, circ.duration_rule,
-        circ.recuring_fine_rule, circ.max_fine_rule, circ.stop_fines, circ.workstation, circ.checkin_workstation, circ.checkin_scan_time,
+        circ.fine_interval, circ.recurring_fine, circ.max_fine, circ.phone_renewal, circ.desk_renewal, circ.opac_renewal, circ.duration_rule,
+        circ.recurring_fine_rule, circ.max_fine_rule, circ.stop_fines, circ.workstation, circ.checkin_workstation, circ.checkin_scan_time,
         circ.parent_circ
       FROM  action.circulation circ
         JOIN asset.copy cp ON (circ.target_copy = cp.id)
@@ -232,15 +232,15 @@ BEGIN
         (id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
         copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
         circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
-        stop_fines_time, checkin_time, create_time, duration, fine_interval, recuring_fine,
-        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recuring_fine_rule,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
         max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ)
       SELECT
         id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
         copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
         circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
-        stop_fines_time, checkin_time, create_time, duration, fine_interval, recuring_fine,
-        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recuring_fine_rule,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
         max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ
         FROM action.all_circulation WHERE id = OLD.id;
 
index a0c6183..8272604 100644 (file)
@@ -1124,7 +1124,7 @@ ALTER TABLE action.hold_request ADD COLUMN cancel_note TEXT;
 ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN juvenile_flag BOOL;
 ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN circulate BOOL NOT NULL DEFAULT TRUE;
 ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN duration_rule INT REFERENCES config.rule_circ_duration (id) DEFERRABLE INITIALLY DEFERRED;
-ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN recurring_fine_rule INT REFERENCES config.rule_recuring_fine (id) DEFERRABLE INITIALLY DEFERRED;
+ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN recurring_fine_rule INT REFERENCES config.rule_recurring_fine (id) DEFERRABLE INITIALLY DEFERRED;
 ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN max_fine_rule INT REFERENCES config.rule_max_fine (id) DEFERRABLE INITIALLY DEFERRED;
 ALTER TABLE config.circ_matrix_matchpoint ADD COLUMN script_test TEXT;
 
index 08abe39..2e79c98 100644 (file)
@@ -111,7 +111,7 @@ CREATE TABLE config.circ_matrix_matchpoint (
     usr_age_upper_bound  INTERVAL,
     circulate            BOOL    NOT NULL DEFAULT TRUE,    -- Hard "can't circ" flag requiring an override
     duration_rule        INT     NOT NULL REFERENCES config.rule_circ_duration (id) DEFERRABLE INITIALLY DEFERRED,
-    recurring_fine_rule  INT     NOT NULL REFERENCES config.rule_recuring_fine (id) DEFERRABLE INITIALLY DEFERRED,
+    recurring_fine_rule  INT     NOT NULL REFERENCES config.rule_recurring_fine (id) DEFERRABLE INITIALLY DEFERRED,
     max_fine_rule        INT     NOT NULL REFERENCES config.rule_max_fine (id) DEFERRABLE INITIALLY DEFERRED,
     script_test          TEXT,                           -- javascript source 
     total_copy_hold_ratio     FLOAT,
index a0752f0..6c9abf2 100644 (file)
@@ -97,13 +97,13 @@ INSERT INTO config.rule_max_fine VALUES
     (7, oils_i18n_gettext(7, 'overdue_equip_max', 'crmf', 'name'), 100.00);
 SELECT SETVAL('config.rule_max_fine_id_seq'::TEXT, 100);
 
-INSERT INTO config.rule_recuring_fine VALUES 
+INSERT INTO config.rule_recurring_fine VALUES 
     (1, oils_i18n_gettext(1, 'default', 'crrf', 'name'), 0.50, 0.10, 0.05, '1 day');
-INSERT INTO config.rule_recuring_fine VALUES 
+INSERT INTO config.rule_recurring_fine VALUES 
     (2, oils_i18n_gettext(2, '10_cent_per_day', 'crrf', 'name'), 0.50, 0.10, 0.10, '1 day');
-INSERT INTO config.rule_recuring_fine VALUES 
+INSERT INTO config.rule_recurring_fine VALUES 
     (3, oils_i18n_gettext(3, '50_cent_per_day', 'crrf', 'name'), 0.50, 0.50, 0.50, '1 day');
-SELECT SETVAL('config.rule_recuring_fine_id_seq'::TEXT, 100);
+SELECT SETVAL('config.rule_recurring_fine_id_seq'::TEXT, 100);
 
 INSERT INTO config.rule_age_hold_protect VALUES
        (1, oils_i18n_gettext(1, '3month', 'crahp', 'name'), '3 months', 0);
index 2790e02..5e16c2c 100644 (file)
@@ -84,7 +84,7 @@ CREATE TABLE reporter.report (
        data            TEXT                            NOT NULL,
        folder          INT                             NOT NULL REFERENCES reporter.report_folder (id) DEFERRABLE INITIALLY DEFERRED,
        recur           BOOL                            NOT NULL DEFAULT FALSE,
-       recurance       INTERVAL
+       recurrence      INTERVAL
 );
 CREATE INDEX rpt_rpt_owner_idx ON reporter.report (owner);
 CREATE INDEX rpt_rpt_fldr_idx ON reporter.report (folder);
index 0948dab..a0764ab 100644 (file)
@@ -20,13 +20,13 @@ CREATE TABLE circ_stats.circulation (
     checkin_time       TIMESTAMP WITH TIME ZONE,
     duration           INTERVAL                        NOT NULL,
     fine_interval      INTERVAL                        NOT NULL,
-    recuring_fine      NUMERIC(6,2)                    NOT NULL,
+    recurring_fine     NUMERIC(6,2)                    NOT NULL,
     max_fine           NUMERIC(6,2)                    NOT NULL,
     opac_renewal       BOOL                            NOT NULL,
     phone_renewal      BOOL                            NOT NULL,
     desk_renewal       BOOL                            NOT NULL,
     duration_rule      TEXT                            NOT NULL,
-    recuring_fine_rule TEXT                            NOT NULL,
+    recurring_fine_rule        TEXT                            NOT NULL,
     max_fine_rule      TEXT                            NOT NULL,
     stop_fines         TEXT
 ) WITHOUT OIDS;
@@ -101,13 +101,13 @@ CREATE TABLE circ_stats.circ_dim (
        circ_desk_renewal       BOOL,
        circ_phone_renewal      BOOL,
        circ_self_checkout      BOOL,
-       circ_recuring_fine      NUMERIC(6,2)                    NOT NULL,
+       circ_recurring_fine     NUMERIC(6,2)                    NOT NULL,
        circ_max_fine           NUMERIC(6,2)                    NOT NULL,
        circ_fine_interval      INTERVAL                        NOT NULL,
        circ_duration           INTERVAL                        NOT NULL,
        circ_due_date           TIMESTAMP WITH TIME ZONE        NOT NULL,
        circ_duration_rule      TEXT                            NOT NULL,
-       circ_recuring_fine_rule TEXT                            NOT NULL,
+       circ_recurring_fine_rule        TEXT                            NOT NULL,
        circ_max_fine_rule      TEXT                            NOT NULL,
        circ_stop_fines         TEXT
 ) WITHOUT OIDS;
@@ -194,13 +194,13 @@ CREATE OR REPLACE VIEW circ_stats.checkout_full_view AS
                circ_staff,
                circ_opac_renewal,
                circ_self_checkout,
-               circ_recuring_fine,
+               circ_recurring_fine,
                circ_max_fine,
                circ_fine_interval,
                circ_duration,
                circ_due_date,
                circ_duration_rule,
-               circ_recuring_fine_rule,
+               circ_recurring_fine_rule,
                circ_max_fine_rule,
                circ_stop_fines,
 
@@ -250,13 +250,13 @@ CREATE OR REPLACE VIEW circ_stats.checkin_full_view AS
                circ_staff,
                circ_opac_renewal,
                circ_self_checkout,
-               circ_recuring_fine,
+               circ_recurring_fine,
                circ_max_fine,
                circ_fine_interval,
                circ_duration,
                circ_due_date,
                circ_duration_rule,
-               circ_recuring_fine_rule,
+               circ_recurring_fine_rule,
                circ_max_fine_rule,
                circ_stop_fines,
 
@@ -306,13 +306,13 @@ CREATE OR REPLACE VIEW circ_stats.renewal_full_view AS
                circ_staff,
                circ_opac_renewal,
                circ_self_checkout,
-               circ_recuring_fine,
+               circ_recurring_fine,
                circ_max_fine,
                circ_fine_interval,
                circ_duration,
                circ_due_date,
                circ_duration_rule,
-               circ_recuring_fine_rule,
+               circ_recurring_fine_rule,
                circ_max_fine_rule,
                circ_stop_fines,
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql b/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql
new file mode 100644 (file)
index 0000000..5e5a7ff
--- /dev/null
@@ -0,0 +1,121 @@
+-- Correct the long-standing "recuring" (recurring) and "recurance" (recurrence) typos
+
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0085'); -- dbs
+
+ALTER TABLE config.rule_recuring_fine RENAME TO rule_recurring_fine;
+ALTER TABLE config.rule_recurring_fine RENAME COLUMN recurance_interval TO recurrence_interval;
+
+ALTER TABLE action.circulation RENAME COLUMN recuring_fine TO recurring_fine;
+ALTER TABLE action.circulation RENAME COLUMN recuring_fine_rule TO recurring_fine_rule;
+
+ALTER TABLE action.aged_circulation RENAME COLUMN recuring_fine TO recurring_fine;
+ALTER TABLE action.aged_circulation RENAME COLUMN recuring_fine_rule TO recurring_fine_rule;
+
+-- Might as well keep the comment in sync as well
+COMMENT ON TABLE config.rule_recurring_fine IS $$
+/*
+ * Copyright (C) 2005  Georgia Public Library Service 
+ * Mike Rylander <mrylander@gmail.com>
+ *
+ * Circulation Recurring Fine rules
+ *
+ * Each circulation is given a recurring fine amount based on one of
+ * these rules.  The recurrence_interval should not be any shorter
+ * than the interval between runs of the fine_processor.pl script
+ * (which is run from CRON), or you could miss fines.
+ * 
+ *
+ * ****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+$$;
+
+ALTER TABLE reporter.report RENAME COLUMN recurance TO recurrence;
+
+-- You would think that CREATE OR REPLACE would be enough, but in testing
+-- PostgreSQL complained about renaming the columns in the view. So we
+-- drop the view first.
+DROP VIEW action.all_circulation;
+
+-- Now we can recreate the view successfully
+CREATE OR REPLACE VIEW action.all_circulation AS
+    SELECT  id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
+        copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
+        circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
+        max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ
+      FROM  action.aged_circulation
+            UNION ALL
+    SELECT  DISTINCT circ.id,COALESCE(a.post_code,b.post_code) AS usr_post_code, p.home_ou AS usr_home_ou, p.profile AS usr_profile, EXTRACT(YEAR FROM p.dob)::INT AS usr_birth_year,
+        cp.call_number AS copy_call_number, cp.location AS copy_location, cn.owning_lib AS copy_owning_lib, cp.circ_lib AS copy_circ_lib,
+        cn.record AS copy_bib_record, circ.xact_start, circ.xact_finish, circ.target_copy, circ.circ_lib, circ.circ_staff, circ.checkin_staff,
+        circ.checkin_lib, circ.renewal_remaining, circ.due_date, circ.stop_fines_time, circ.checkin_time, circ.create_time, circ.duration,
+        circ.fine_interval, circ.recurring_fine, circ.max_fine, circ.phone_renewal, circ.desk_renewal, circ.opac_renewal, circ.duration_rule,
+        circ.recurring_fine_rule, circ.max_fine_rule, circ.stop_fines, circ.workstation, circ.checkin_workstation, circ.checkin_scan_time,
+        circ.parent_circ
+      FROM  action.circulation circ
+        JOIN asset.copy cp ON (circ.target_copy = cp.id)
+        JOIN asset.call_number cn ON (cp.call_number = cn.id)
+        JOIN actor.usr p ON (circ.usr = p.id)
+        LEFT JOIN actor.usr_address a ON (p.mailing_address = a.id)
+        LEFT JOIN actor.usr_address b ON (p.billing_address = a.id);
+
+CREATE OR REPLACE FUNCTION action.age_circ_on_delete () RETURNS TRIGGER AS $$
+DECLARE
+found char := 'N';
+BEGIN
+
+    -- If there are any renewals for this circulation, don't archive or delete
+    -- it yet.   We'll do so later, when we archive and delete the renewals.
+
+    SELECT 'Y' INTO found
+    FROM action.circulation
+    WHERE parent_circ = OLD.id
+    LIMIT 1;
+
+    IF found = 'Y' THEN
+        RETURN NULL;  -- don't delete
+        END IF;
+
+    -- Archive a copy of the old row to action.aged_circulation
+
+    INSERT INTO action.aged_circulation
+        (id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
+        copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
+        circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
+        max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ)
+      SELECT
+        id,usr_post_code, usr_home_ou, usr_profile, usr_birth_year, copy_call_number, copy_location,
+        copy_owning_lib, copy_circ_lib, copy_bib_record, xact_start, xact_finish, target_copy,
+        circ_lib, circ_staff, checkin_staff, checkin_lib, renewal_remaining, due_date,
+        stop_fines_time, checkin_time, create_time, duration, fine_interval, recurring_fine,
+        max_fine, phone_renewal, desk_renewal, opac_renewal, duration_rule, recurring_fine_rule,
+        max_fine_rule, stop_fines, workstation, checkin_workstation, checkin_scan_time, parent_circ
+        FROM action.all_circulation WHERE id = OLD.id;
+
+    RETURN OLD;
+END;
+$$ LANGUAGE 'plpgsql';
+
+-- Get the permissions right
+UPDATE permission.perm_list SET code = 'ADMIN_RECURRING_FINE_RULE' WHERE code = 'ADMIN_RECURING_FINE_RULE';
+
+-- Let's not break existing reports
+UPDATE reporter.template SET data = REGEXP_REPLACE(data, E'^(.*)recuring(.*)$', E'\\1recurring\\2') WHERE data LIKE '%recuring%';
+UPDATE reporter.template SET data = REGEXP_REPLACE(data, E'^(.*)recurance(.*)$', E'\\1recurrence\\2') WHERE data LIKE '%recurance%';
+
+COMMIT;
index ae1b8d6..55bc546 100755 (executable)
@@ -78,7 +78,7 @@ if($cp->fine_level == 1) {
 
 print "Duration [".$rule_set->duration_rule->name."] = $dur\n";
 print "Recurring fines [".$rule_set->recurring_fine_rule->name."; interval='".
-    $rule_set->recurring_fine_rule->recurance_interval."'] = \$$recf\n";
+    $rule_set->recurring_fine_rule->recurrence_interval."'] = \$$recf\n";
 print "Max fine [".$rule_set->max_fine_rule->name."] = \$".$rule_set->max_fine_rule->amount."\n";
 print "took: $rundur\n";
 
index 9153b5a..646d485 100644 (file)
@@ -96,7 +96,7 @@ var FM_TABLE_DISPLAY = {
                        'template',
                        'create_time',
                        'recur',
-                       'recurance',
+                       'recurrence',
                        'owner',
                ]
        },
index b613e29..ed9d564 100644 (file)
@@ -120,7 +120,7 @@ oilsRptReportEditor.prototype.save = function() {
        report.name( DOM.oils_rpt_report_editor_name.value );
        report.description( DOM.oils_rpt_report_editor_desc.value );
        report.recur(this.paramEditor.recur());
-       report.recurance(this.paramEditor.recurInterval());
+       report.recurrence(this.paramEditor.recurInterval());
 
 
        /* collect the param data */
index d6ba72a..2b4f29a 100644 (file)
@@ -279,8 +279,8 @@ function load_item() {
         set("max_fine_rule", '');
         set("opac_renewal", '');
         set("phone_renewal", '');
-        set("recuring_fine", '');
-        set("recuring_fine_rule", '');
+        set("recurring_fine", '');
+        set("recurring_fine_rule", '');
         set("renewal_remaining", '');
         set("stop_fines", '');
         set("stop_fines_time", '');
@@ -320,8 +320,8 @@ function load_item() {
             set("opac_renewal", details.circ.opac_renewal()); 
             set("phone_renewal", details.circ.phone_renewal()); 
             set("renewal_type", renewal_composite_kludge(details.circ));
-            set("recuring_fine", details.circ.recuring_fine()); 
-            set("recuring_fine_rule", details.circ.recuring_fine_rule()); 
+            set("recurring_fine", details.circ.recurring_fine()); 
+            set("recurring_fine_rule", details.circ.recurring_fine_rule()); 
             set("renewal_remaining", details.circ.renewal_remaining()); 
             set("stop_fines", details.circ.stop_fines()); 
             set("stop_fines_time", details.circ.stop_fines_time()); 
index 6094c58..d1cfb57 100644 (file)
@@ -9,7 +9,7 @@
 <!ENTITY field.rodcirc.duration.label "Quisque pharetra">
 <!ENTITY field.aws.name.label "lectus vitae aliquam">
 <!ENTITY class.auoi.label "venenatis, mi nisl">
-<!ENTITY field.rodcirc.recuring_fine_rule.label "suscipit sapien, eu sollicitudin">
+<!ENTITY field.rodcirc.recurring_fine_rule.label "suscipit sapien, eu sollicitudin">
 <!ENTITY field.rodcirc.duration_rule.label "neque dolor a nulla">
 <!ENTITY field.auoi.id.label "Phasellus aliquam vulputate justo">
 <!ENTITY field.rodcirc.payment_total.label "Proin augue libero">
@@ -28,7 +28,7 @@
 <!ENTITY field.rodcirc.max_fine_rule.label "ultricies quam">
 <!ENTITY field.rodcirc.xact_start.label "lacinia accumsan">
 <!ENTITY field.rodcirc.billable_transaction.label "Nullam imperdiet">
-<!ENTITY field.rodcirc.recuring_fine.label "tincidunt mauris">
+<!ENTITY field.rodcirc.recurring_fine.label "tincidunt mauris">
 <!ENTITY field.auoi.staff.label "Staff Member">
 <!ENTITY field.aws.id.label "Workstation ID">
 <!ENTITY field.rodcirc.usr.label "Mauris ac diam">
index b8c9c83..6f50931 100644 (file)
@@ -69,8 +69,8 @@
                        <field reporter:label="Max Fine Rule" name="max_fine_rule" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
                        <field reporter:label="OPAC Renewal" name="opac_renewal" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
                        <field reporter:label="Phone Renewal" name="phone_renewal" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
-                       <field reporter:label="Recurring Fine Amount" name="recuring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
-                       <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
+                       <field reporter:label="Recurring Fine Amount" name="recurring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
+                       <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
                        <field reporter:label="Remaining Renewals" name="renewal_remaining" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="int" />
                        <field reporter:label="Fine Stop Reason" name="stop_fines" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
                        <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="timestamp"/>
@@ -97,7 +97,7 @@
                        <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
                        <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
                        <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
-                       <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+                       <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
                        <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
                        <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
                        <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
index edc6764..6de1893 100644 (file)
@@ -73,8 +73,8 @@
                        <field reporter:label='&field.rodcirc.max_fine_rule.label;' oils_persist:virtual='false' name='max_fine_rule' reporter:datatype='link' oils_obj:array_position='15' />
                        <field reporter:label='&field.rodcirc.opac_renewal.label;' oils_persist:virtual='false' name='opac_renewal' reporter:datatype='bool' oils_obj:array_position='16' />
                        <field reporter:label='&field.rodcirc.phone_renewal.label;' oils_persist:virtual='false' name='phone_renewal' reporter:datatype='bool' oils_obj:array_position='17' />
-                       <field reporter:label='&field.rodcirc.recuring_fine.label;' oils_persist:virtual='false' name='recuring_fine' reporter:datatype='money' oils_obj:array_position='18' />
-                       <field reporter:label='&field.rodcirc.recuring_fine_rule.label;' oils_persist:virtual='false' name='recuring_fine_rule' reporter:datatype='link' oils_obj:array_position='19' />
+                       <field reporter:label='&field.rodcirc.recurring_fine.label;' oils_persist:virtual='false' name='recurring_fine' reporter:datatype='money' oils_obj:array_position='18' />
+                       <field reporter:label='&field.rodcirc.recurring_fine_rule.label;' oils_persist:virtual='false' name='recurring_fine_rule' reporter:datatype='link' oils_obj:array_position='19' />
                        <field reporter:label='&field.rodcirc.renewal_remaining.label;' oils_persist:virtual='false' name='renewal_remaining' reporter:datatype='int' oils_obj:array_position='20' />
                        <field reporter:label='&field.rodcirc.stop_fines.label;' oils_persist:virtual='false' name='stop_fines' reporter:datatype='text' oils_obj:array_position='21' />
                        <field reporter:label='&field.rodcirc.stop_fines_time.label;' oils_persist:virtual='false' name='stop_fines_time' reporter:datatype='timestamp' oils_obj:array_position='22' />
                        <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
                        <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
                        <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
-                       <link field='recuring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+                       <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
                        <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
                        <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
                        <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
                </links>
        </class>
-</IDL>
\ No newline at end of file
+</IDL>