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=refs%2Fheads%2Fuser%2Fberick%2Fttopac-refworks-ou-patch;p=working%2FEvergreen.git Set refworks default org to match org tree root Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/templates/default/opac/parts/record/refworks.tt2 b/Open-ILS/web/templates/default/opac/parts/record/refworks.tt2 index 23af9a359f..928ce9026e 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/refworks.tt2 +++ b/Open-ILS/web/templates/default/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;