experiment-turned-feature: openils.BibTemplate dojo module, with an example in result...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Apr 2009 01:08:21 +0000 (01:08 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Apr 2009 01:08:21 +0000 (01:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13012 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml

index 3852339..554c0d6 100644 (file)
@@ -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>
 
                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 -->