bringing craftsman up to speed with BibTemplate and the copy location display. minor...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 May 2009 15:05:07 +0000 (15:05 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 May 2009 15:05:07 +0000 (15:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13267 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_copyinfo.xml
Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml

index 9557d28..251d2c9 100644 (file)
@@ -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>&nbsp;
@@ -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>
index 8914b31..b7b594a 100644 (file)
                     </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';
                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 -->