Get eresources working again in search results origin/rel_2_0_delta
authorDan Scott <dan@coffeecode.net>
Thu, 26 May 2011 01:59:59 +0000 (21:59 -0400)
committerDan Scott <dan@coffeecode.net>
Thu, 26 May 2011 01:59:59 +0000 (21:59 -0400)
The house of cards that had crashed to earth with the async
problems fixed in the previous commit also broke electronic
resources display in the search results for the LU and Algoma
skins. This sorts it out by simply moving the electronic
resources into their own row, rather than overloading the
local callnumber row.

Signed-off-by: Dan Scott <dan@coffeecode.net>
web/opac/skin/algoma/xml/result/result_table.xml
web/opac/skin/lul/xml/result/result_table.xml

index 0ad16fd..c6542af 100644 (file)
                                 return output.innerHTML;
                                 ]]></span>
                                 </span>
+                                </td>
+                            </tr>
 
+                            <tr name="eresources" class="result_table_title_cell">
+                                <td>
                                 <!-- Be lenient in what we accept; disabled until we figure out how to prevent both URIs and SFX -->
                                 <span type='opac/slot-data+marcxml-full' query='record'>
                                     <span class='hide_me' type='opac/slot-format'><![CDATA[
+                                        var this_title_id;
+
+                                        dojo.query('datafield[tag="901"] subfield[code="c"]', item).forEach(function (item) {
+                                            this_title_id = dojo.trim(BT.textContent(item));
+                                        });
+
                                         var found_issn = false;
                                         dojo.query('datafield[tag="022"]', item).forEach(function(issn) {
                                             found_issn = true;
index c1a5e77..c44201d 100644 (file)
                                 return output.innerHTML;
                                 ]]></span>
                                 </span>
+                                </td>
+                            </tr>
 
+                            <tr name="eresources" class="result_table_title_cell">
+                                <td>
                                 <!-- Be lenient in what we accept; disabled until we figure out how to prevent both URIs and SFX -->
                                 <span type='opac/slot-data+marcxml-full' query='record'>
                                     <span class='hide_me' type='opac/slot-format'><![CDATA[
+                                        var this_title_id;
+
+                                        dojo.query('datafield[tag="901"] subfield[code="c"]', item).forEach(function (item) {
+                                            this_title_id = dojo.trim(BT.textContent(item));
+                                        });
+
                                         var found_issn = false;
                                         dojo.query('datafield[tag="022"]', item).forEach(function(issn) {
                                             found_issn = true;