LP#1269911: TPAC generates format selector from icon_format attr
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Feb 2014 18:31:18 +0000 (13:31 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 21 Feb 2014 20:38:52 +0000 (15:38 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/config.tt2

index bd4f77c..77e1936 100644 (file)
@@ -147,7 +147,7 @@ search.default_qtypes = ['keyword','title','author'];
 
 search.basic_config = {
     type => 'attr',
-    group => ['mattype','item_type'],
+    group => [ctx.get_cgf('opac.icon_attr').value, 'item_type'],
     none_label => l("All Formats"),
 };