add makefile and autogen support for the facet definition bits; more minor bug fixing...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Mar 2010 17:05:22 +0000 (17:05 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Mar 2010 17:05:22 +0000 (17:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16061 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/Makefile.am
Open-ILS/src/extras/autogen.sh
Open-ILS/src/extras/facet_types_js.pl

index c726383..0daeebf 100644 (file)
@@ -38,6 +38,7 @@ autojsbinscripts = @srcdir@/extras/fieldmapper.pl \
         @srcdir@/extras/locale_html_options.pl \
         @srcdir@/extras/org_tree_js.pl \
         @srcdir@/extras/org_lasso_js.pl \
+        @srcdir@/extras/facet_types_js.pl \
         @srcdir@/extras/org_tree_html_options.pl \
         @srcdir@/extras/org_tree_proximity.pl \
         @srcdir@/extras/autogen.sh \
index 3dbac70..7a81711 100755 (executable)
@@ -113,6 +113,10 @@ echo "Updating Search Groups";
 perl org_lasso_js.pl "$CONFIG" > "$JSDIR/OrgLasso.js";
 cp "$JSDIR/OrgLasso.js" "$FMDOJODIR/"
 
+echo "Updating Facet Definitions";
+perl facet_types_js.pl "$CONFIG" "$JSDIR" "FacetDefs.js";
+cp "$JSDIR/en-US/FacetDefs.js" "$FMDOJODIR/"
+
 if [ ! -z "$PROXIMITY" ]
 then
        echo "Refreshing proximity of org units";
index 50e0890..3bae8ea 100644 (file)
@@ -77,12 +77,12 @@ sub build_tree_js {
         my %hash = (
             id          => $o->id,
             name        => val($o->name),
-            label       => $o->val($o->label),
+            label       => val($o->label),
             classname   => val($o->field_class->name),
             classlabel  => val($o->field_class->label)
         );
 
-        $pile .= $hash{id}.':{'.join(',', map { "$_:$hash{$_}" } keys %hash).'",';
+        $pile .= $hash{id}.':{'.join(',', map { "$_:$hash{$_}" } keys %hash).'},';
     }
 
     $pile =~ s/,$//; # remove trailing comma