IE really kicks it up a notch here; ugly.
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 12 Apr 2011 21:10:13 +0000 (21:10 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 12 Apr 2011 21:10:13 +0000 (21:10 +0000)
It's still not clear why we seem to need to use raw DOM
accessors in subjectMe() in 2.0 but at least we have a working
solution for IE again.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_2_0@1335 6d9bc8c9-1ec2-4278-b937-99fde70a366f

web/opac/skin/lul/xml/rdetail/rdetail_summary.xml

index 90fbbb7..da70ad9 100644 (file)
             var total = '';
             var output = [];
             dojo.query( 'subfield:not([code=2])', item ).forEach( function (onesub) {
-                var subtext;
+                var subtext = '';
                 try {   
+                    if (dojo.isIE) {
+                        subtext = onesub.firstChild.nodeValue;
+                    } else {
                         subtext = onesub.textContent;
-                        total +=  subtext + ' ';
+                    }
+                    total +=  subtext + ' ';
                 } catch (e) {
-                        return;
+                    return;
                 }
                 var current = '<a class="search_link" href="rresult.xml?rt=subject&tp=subject&t=' + total;
                 for (var p in other_params) {