[open-ils-commits] r13267 - trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat May 30 11:05:09 EDT 2009
Author: miker
Date: 2009-05-30 11:05:07 -0400 (Sat, 30 May 2009)
New Revision: 13267
Modified:
trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml
trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml
Log:
bringing craftsman up to speed with BibTemplate and the copy location display. minor display glitch (top border) with the copy location cell
Modified: trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml 2009-05-30 03:01:10 UTC (rev 13266)
+++ trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml 2009-05-30 15:05:07 UTC (rev 13267)
@@ -18,6 +18,7 @@
<tr>
<td style='border: 1px solid #ddd;'>&rdetail.copyInfo.library;</td>
<td style='border: 1px solid #ddd;'>&rdetail.copyInfo.callnumber;</td>
+ <td name='rdetail_copylocation_header' class='rdetail_copy_info_header_cell hide_me'>&rdetail.copyInfo.copylocation;</td>
<td style='border: 1px solid #ddd;'>&rdetail.copyInfo.actions;</td>
<td style='border: 1px solid #ddd;' nowrap='nowrap' class='rdetail_copy_info_header_cell' id='rdetail_copy_info_status'>
<div name='rdetail_status_cell'> </div>
@@ -30,6 +31,7 @@
<a name='lib_print_link' class='hide_me'>&rdetail.copyInfo.print;</a>
</td>
<td name='rdetail_callnumber_cell' style='border: 1px solid #ddd;'> </td>
+ <td class="hide_me" name='rdetail_copylocation_cell'> </td>
<td name='rdetail_actions_cell' style='border: 1px solid #ddd;'>
<div style='padding: 0 0 2px 0;'><a name='details'>&rdetail.copyInfo.details;</a></div>
<div><a name='browse'>&rdetail.copyInfo.browse;</a></div>
Modified: trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml 2009-05-30 03:01:10 UTC (rev 13266)
+++ trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml 2009-05-30 15:05:07 UTC (rev 13267)
@@ -16,6 +16,11 @@
</div>
</td>
<td class='title'>&common.title;</td>
+ <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
+ *** summary screen with more and/or different information. In this case, the raw MARC 245.
+ *** Just swap the following two lines of HTML.
+ *** See the default skin for more examples of this technique. -->
+ <!-- <td type='opac/slot-data' query='datafield[tag=245]' class='rdetail_item' id='rdetail_title'> </td> -->
<td id='rdetail_title'> </td>
</tr>
<tr>
@@ -65,7 +70,7 @@
<!-- unAPI URI goes here -->
</abbr>
- <script language='javascript' type='text/javascript'>
+ <script language='javascript' type='text/javascript'><![CDATA[
config.ids.rdetail.details_body = 'rdetail_details_body';
config.ids.rdetail.title = 'rdetail_title';
config.ids.rdetail.author = 'rdetail_author';
@@ -77,7 +82,19 @@
config.ids.rdetail.abstr = 'rdetail_abstract';
config.ids.rdetail.image = 'rdetail_image';
config.ids.rdetail.tor_pic = 'rdetail_tor_pic';
- </script>
+ 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();
+ });
+
+ ]]></script>
+
</div> <!-- details_body -->
More information about the open-ils-commits
mailing list