Branchify patch in LP bug #807200. collab/dyrcona/lp807200
authorRobert Soulliere <robert.soulliere@mohawkcollege.ca>
Tue, 9 Aug 2011 20:04:13 +0000 (16:04 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 9 Aug 2011 20:04:13 +0000 (16:04 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/opac/locale/en-US/opac.dtd
Open-ILS/web/opac/skin/default/js/rdetail.js
Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_copyinfo.xml

index f1ea647..2ccf91f 100644 (file)
@@ -541,6 +541,7 @@ We recommend that you remove this title from any bookbags it may have been added
 <!ENTITY rdetail.copyInfo.local "View Copy Information for this location only">
 <!ENTITY rdetail.copyInfo.all "View copy information for all libraries">
 <!ENTITY rdetail.copyInfo.actions "Actions">
+<!ENTITY rdetail.copyInfo.QRCode "QR Code"> 
 <!ENTITY rdetail.copyInfo.print "Print Call Numbers for this library">
 <!ENTITY rdetail.copyInfo.details "Copy Details">
 <!ENTITY rdetail.copyInfo.browse "Browse Call Numbers">
index eae2aa0..55dd83d 100644 (file)
@@ -15,6 +15,7 @@ var rdetailGoogleBookPreview = true;
 var rdetailDisplaySerialHoldings = true;
 var rdetailEnableRefWorks = false;
 var rdetailRefWorksHost = 'http://www.refworks.com';
+var rdetailEnableQRCode = false;
 
 /* vars vars vars */
 var record = null;
@@ -1136,6 +1137,14 @@ function rdetailBuildBrowseInfo(row, cn, local, orgNode, cl) {
        unHideMe( $n(row, 'browse') )
                $n(row, 'browse').setAttribute('href', bHref);
 
+if (rdetailEnableQRCode) {
+        unHideMe( $('QRColumn') ); 
+        unHideMe( $n(row, 'QR_cell') );
+        tit = record.title(); 
+        $n(row, 'QR_cell').appendChild(elem('img', {src:'http://chart.apis.google.com/chart?chs=75x75&cht=qr&chld=L|0&chl='+tit+'%0A'+orgNode.name()+' '+cl+'%0A'+cn}));
+        $n(row, 'QR_cell').appendChild(elem('p'));               
+}
+
        if(isXUL()) {
                unHideMe($n(row, 'hold_div'));
                $n(row, 'hold').onclick = function() {
index 01e463b..f51f313 100644 (file)
@@ -21,6 +21,7 @@
                                <td  class='rdetail_copy_info_header_cell'>&rdetail.copyInfo.callnumber;</td>
                                <td  name='rdetail_copylocation_header' class='rdetail_copy_info_header_cell hide_me'>&rdetail.copyInfo.copylocation;</td>
                                <td  class='rdetail_copy_info_header_cell'>&rdetail.copyInfo.actions;</td>
+                               <td  id='QRColumn' class='rdetail_copy_info_header_cell hide_me'>&rdetail.copyInfo.QRCode;</td> 
                                <td  nowrap='nowrap' class='rdetail_copy_info_header_cell' id='rdetail_copy_info_status'> 
                                        <div name='rdetail_status_cell'> </div>
                                </td>
@@ -50,6 +51,7 @@
                                                        class='classic_link'>&rdetail.copyInfo.hold;</a>
                                        </div>
                                </td>
+                               <td name='QR_cell' class='hide_me'></td>
                                <td nowrap='nowrap' class='rdetail_copy_count_cell vertical' 
                                        name='rdetail_copy_count_cell'> </td>
                        </tr>