From 881a8e3b2bdaae0aa63d4a116a35655ad97b2cc8 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 15 Sep 2005 19:16:52 +0000 Subject: [PATCH] showing edition, pubdate, publisher on title result page keeping 'loading results' until all results loaded git-svn-id: svn://svn.open-ils.org/ILS/trunk@1828 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/mresult.js | 2 +- .../web/opac/skin/default/js/result_common.js | 25 ++++++++++++++++--- .../opac/skin/default/xml/result_common.xml | 2 +- .../opac/skin/default/xml/result_table.xml | 8 ++++++ 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/mresult.js b/Open-ILS/web/opac/skin/default/js/mresult.js index 40ec13fe91..43da813ea4 100644 --- a/Open-ILS/web/opac/skin/default/js/mresult.js +++ b/Open-ILS/web/opac/skin/default/js/mresult.js @@ -85,7 +85,7 @@ function mresultSetRecords(idstruct) { if(idstruct[x-o] == null) break; records[x] = parseInt(idstruct[x - o][0]); ranks[x] = parseFloat(idstruct[x - o][1]); - onlyrecord[x] = parseInt(idstruct[x - o][4]); + onlyrecord[x] = parseInt(idstruct[x - o][2]); } idsCookie.put(COOKIE_IDS, js2JSON({ recs: records, ranks : ranks }) ); idsCookie.write(); diff --git a/Open-ILS/web/opac/skin/default/js/result_common.js b/Open-ILS/web/opac/skin/default/js/result_common.js index dc75d057f6..01f6a78453 100644 --- a/Open-ILS/web/opac/skin/default/js/result_common.js +++ b/Open-ILS/web/opac/skin/default/js/result_common.js @@ -75,8 +75,6 @@ function resultDisplayRecord(rec, pos, is_mr) { recordsHandled++; recordsCache.push(rec); - /* hide the 'now loading...' message */ - hideMe(G.ui.common.loading); var r = table.rows[pos + 1]; @@ -107,14 +105,35 @@ function resultDisplayRecord(rec, pos, is_mr) { buildSearchLink(STYPE_AUTHOR, rec.author(), author_link); + if(! is_mr ) { + + if(!isNull(rec.edition())) { + unHideMe( findNodeByName(r, "result_table_extra_span")); + findNodeByName(r, "result_table_edition_span").appendChild( text( rec.edition()) ); + } + if(!isNull(rec.pubdate())) { + unHideMe( findNodeByName(r, "result_table_extra_span")); + unHideMe(findNodeByName(r, "result_table_pub_span")); + findNodeByName(r, "result_table_pub_span").appendChild( text( rec.pubdate() )); + } + if(!isNull(rec.publisher()) ) { + unHideMe( findNodeByName(r, "result_table_extra_span")); + unHideMe(findNodeByName(r, "result_table_pub_span")); + findNodeByName(r, "result_table_pub_span").appendChild( text( " " + rec.publisher() )); + } + } + resultBuildFormatIcons( r, rec ); unHideMe(r); runEvt("result", "recordDrawn", rec.doc_id(), title_link); - if(resultPageIsDone()) + if(resultPageIsDone()) { + /* hide the 'now loading...' message */ + hideMe(G.ui.common.loading); runEvt('result', 'allRecordsReceived', recordsCache); + } } function resultBuildFormatIcons( row, rec ) { diff --git a/Open-ILS/web/opac/skin/default/xml/result_common.xml b/Open-ILS/web/opac/skin/default/xml/result_common.xml index 9489d229e1..99b60dce27 100644 --- a/Open-ILS/web/opac/skin/default/xml/result_common.xml +++ b/Open-ILS/web/opac/skin/default/xml/result_common.xml @@ -57,10 +57,10 @@ --> +
Loading Results...
-
Loading Results...
diff --git a/Open-ILS/web/opac/skin/default/xml/result_table.xml b/Open-ILS/web/opac/skin/default/xml/result_table.xml index e9f3c170e2..0eb832c818 100644 --- a/Open-ILS/web/opac/skin/default/xml/result_table.xml +++ b/Open-ILS/web/opac/skin/default/xml/result_table.xml @@ -102,6 +102,14 @@ + + -- + + [ + + ] + + -- 2.43.2