From: Bill Erickson Date: Wed, 6 Jul 2011 14:12:00 +0000 (-0400) Subject: Set refworks default org to match org tree root X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6af8d867625bb5eb3b144c0e4db008360697c518;p=contrib%2FConifer.git Set refworks default org to match org tree root Signed-off-by: Bill Erickson Signed-off-by: Dan Scott --- 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;