From 9c906ded5ac9f36a6fdcc13922fa67469a7be7f2 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 30 May 2009 15:05:07 +0000 Subject: [PATCH] bringing craftsman up to speed with BibTemplate and the copy location display. minor display glitch (top border) with the copy location cell git-svn-id: svn://svn.open-ils.org/ILS/trunk@13267 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../skin/craftsman/xml/rdetail/rdetail_copyinfo.xml | 2 ++ .../skin/craftsman/xml/rdetail/rdetail_summary.xml | 21 +++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml b/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml index 9557d28802..251d2c909b 100644 --- a/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml +++ b/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml @@ -18,6 +18,7 @@ &rdetail.copyInfo.library; &rdetail.copyInfo.callnumber; + &rdetail.copyInfo.copylocation; &rdetail.copyInfo.actions;
  @@ -30,6 +31,7 @@ &rdetail.copyInfo.print; +
&rdetail.copyInfo.details;
&rdetail.copyInfo.browse;
diff --git a/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml index 8914b313ad..b7b594a049 100644 --- a/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml @@ -16,6 +16,11 @@ &common.title; + + @@ -65,7 +70,7 @@ - + + dojo.addOnLoad( function () { + var here = findOrgUnit(getLocation()); + if (getDepth() > 0 || getDepth === 0 ) { + while (getDepth() < findOrgDepth(here)) + here = findOrgUnit( here.parent_ou ); + } + + dojo.require('openils.BibTemplate'); + new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render(); + }); + + ]]> -- 2.11.0