From 7f536f9826c81017473ee5e281dc9a2d6954f473 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 2 Dec 2005 21:25:53 +0000 Subject: [PATCH] libraries are now filtered on id (there are duplicate names, such as "Bookmobile") git-svn-id: svn://svn.open-ils.org/ILS/trunk@2174 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/tables.example.xml | 27 +++++++++---------- .../templates/widgets/lib-choose.dropdown | 4 +-- .../templates/widgets/lib-choose.multiselect | 4 +-- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/Open-ILS/src/reporter/tables.example.xml b/Open-ILS/src/reporter/tables.example.xml index a28445e049..c72eff74b2 100644 --- a/Open-ILS/src/reporter/tables.example.xml +++ b/Open-ILS/src/reporter/tables.example.xml @@ -110,30 +110,35 @@ @@ -174,14 +179,16 @@ - - Library ID + + Unique Library ID Library Name @@ -228,12 +235,7 @@ - - Date joiner - - Date @@ -250,12 +252,7 @@ - - time joiner - - Date and Hour diff --git a/Open-ILS/src/reporter/templates/widgets/lib-choose.dropdown b/Open-ILS/src/reporter/templates/widgets/lib-choose.dropdown index 4d27612d60..c84eb138cb 100644 --- a/Open-ILS/src/reporter/templates/widgets/lib-choose.dropdown +++ b/Open-ILS/src/reporter/templates/widgets/lib-choose.dropdown @@ -32,7 +32,7 @@ WRAPPER select id=input_prefix name=input_prefix onchange='change_hier_' _ table INCLUDE option value='' content='Select One'; INCLUDE option value='' content='----------'; FOR f = DBI.query(root); - INCLUDE option value=f.$fieldname; + INCLUDE option value=f.id content=f.name; INCLUDE next_level parent_ou = f.id depth; END; END; @@ -62,7 +62,7 @@ BLOCK next_level; x = x - 1; END; - INCLUDE option value=f.name content=val _ f.name id='dr_' _ f.id; + INCLUDE option value=f.id content=f.name content=val _ f.name id='dr_' _ f.id; INCLUDE next_level parent_ou = f.id; END; END; diff --git a/Open-ILS/src/reporter/templates/widgets/lib-choose.multiselect b/Open-ILS/src/reporter/templates/widgets/lib-choose.multiselect index 96ae4bf8a7..05c57b6f58 100644 --- a/Open-ILS/src/reporter/templates/widgets/lib-choose.multiselect +++ b/Open-ILS/src/reporter/templates/widgets/lib-choose.multiselect @@ -34,7 +34,7 @@ org_unit_type = DBI.tie('actor.org_unit_type', 'id') WRAPPER select name=input_prefix multi="multi" onchange='change_multihier_' _ table_alias _ '(this);'; depth = 0; FOR f = DBI.query(root); - INCLUDE option value=f.$fieldname; + INCLUDE option value=f.id content=f.name; INCLUDE next_level parent_ou = f.id depth; END; END; @@ -63,7 +63,7 @@ BLOCK next_level; x = x - 1; END; - INCLUDE option value=f.name content=val _ f.name id='mh_' _ f.id; + INCLUDE option value=f.id content=f.name content=val _ f.name id='mh_' _ f.id; INCLUDE next_level parent_ou = f.id; END; END; -- 2.43.2