OSUL: Sync config.tt2 with rel_2_4
authorDan Scott <dscott@laurentian.ca>
Wed, 8 May 2013 15:50:11 +0000 (11:50 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 May 2013 15:50:11 +0000 (11:50 -0400)
Turn on Google Book Previews while we're at it.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates_laurentian/opac/parts/config.tt2

index f15f254..6b79b23 100644 (file)
@@ -130,4 +130,24 @@ search.adv_config = [
 
 search.default_qtypes = ['keyword','title','author'];
 
+##############################################################################
+# Basic Search Box definition
+# This allows selection of what, exactly, basic search uses for a selection
+# box. Previously it was hardcoded to use an attr box of mattype or item_type.
+#
+# type can be "attr" or "filter"
+# group is the attr or filter entries you want to check for
+# none_label is the label for the default nothing selected entry.
+
+search.basic_config = {
+    type => 'attr',
+    group => ['mattype','item_type'],
+    none_label => l("All Formats"),
+};
+
+##############################################################################
+# Show Google Book Previews
+# Set to 1 or 'true' to enable
+ctx.google_books_preview = 1;
+
 %]