Set refworks default org to match org tree root
authorBill Erickson <berick@esilibrary.com>
Wed, 6 Jul 2011 14:12:00 +0000 (10:12 -0400)
committerDan Scott <dscott@laurentian.ca>
Sat, 17 Sep 2011 01:18:33 +0000 (21:18 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/record/refworks.tt2

index 23af9a3..928ce90 100644 (file)
@@ -1,6 +1,6 @@
 [%
-    # Default to aou.id = 1 in the absence of a specific library
-    loc = 1;
+    # Default to the root of the org unit tree in the absence of a specific library
+    loc = ctx.aou_tree.id;
     IF CGI.param('loc');
         loc = CGI.param('loc');
     END;