[open-ils-commits] r13012 - trunk/Open-ILS/web/opac/skin/default/xml/rdetail (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 28 21:08:22 EDT 2009


Author: miker
Date: 2009-04-28 21:08:21 -0400 (Tue, 28 Apr 2009)
New Revision: 13012

Modified:
   trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
experiment-turned-feature: openils.BibTemplate dojo module, with an example in result_summary.xml

Modified: trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2009-04-29 00:48:57 UTC (rev 13011)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml	2009-04-29 01:08:21 UTC (rev 13012)
@@ -21,6 +21,9 @@
                     </div>
 				</td>
 				<td nowrap='nowrap' class='rdetail_desc'>&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. -->
+                <!-- <td type='opac/slot-data' query='datafield[tag=245]' class='rdetail_item' id='rdetail_title'> </td> -->
 				<td class='rdetail_item' id='rdetail_title'> </td>
 			</tr>
 
@@ -95,6 +98,11 @@
 		config.ids.rdetail.abstr				= 'rdetail_abstract';
 		config.ids.rdetail.image				= 'rdetail_image';
 		config.ids.rdetail.tor_pic				= 'rdetail_tor_pic';
+
+        dojo.addOnLoad( function () {
+            dojo.require('openils.BibTemplate');
+            new openils.BibTemplate({ record : new CGI().param('r')}).render();
+        });
 	</script>
 
 </div> <!-- details_body -->



More information about the open-ils-commits mailing list