From 6af8d867625bb5eb3b144c0e4db008360697c518 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 6 Jul 2011 10:12:00 -0400 Subject: [PATCH] Set refworks default org to match org tree root Signed-off-by: Bill Erickson Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/record/refworks.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/refworks.tt2 b/Open-ILS/src/templates/opac/parts/record/refworks.tt2 index 23af9a359f..928ce9026e 100644 --- a/Open-ILS/src/templates/opac/parts/record/refworks.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/refworks.tt2 @@ -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; -- 2.11.0