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
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) {