[open-ils-commits] r13151 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 13 12:22:02 EDT 2009
Author: phasefx
Date: 2009-05-13 12:22:00 -0400 (Wed, 13 May 2009)
New Revision: 13151
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
Log:
Use the dedicated xul file for rendering MARC html instead of data: url'ing it. Fixes the mangling of double-daggers in record merging and overlaying displays
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2009-05-13 15:41:06 UTC (rev 13150)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2009-05-13 16:22:00 UTC (rev 13151)
@@ -675,8 +675,7 @@
}
xml += '</tr><tr valign="top">';
for (var i = 0; i < record_ids.length; i++) {
- html = obj.network.simple_request('MARC_HTML_RETRIEVE',[ record_ids[i] ]);
- xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="data:text/html,' + window.escape(html) + '"/></td>';
+ xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="' + urls.XUL_MARC_VIEW + '?docid=' + record_ids[i] + ' "/></td>';
}
xml += '</tr></table></form>';
//obj.data.temp_merge_top = top_xml; obj.data.stash('temp_merge_top');
@@ -765,8 +764,7 @@
}
xml += '</tr><tr valign="top">';
for (var i = 0; i < record_ids.length; i++) {
- html = obj.network.simple_request('MARC_HTML_RETRIEVE',[ record_ids[i] ]);
- xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="data:text/html,' + window.escape(html) + '"/></td>';
+ xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="' + urls.XUL_MARC_VIEW + '?docid=' + record_ids[i] + ' "/></td>';
}
xml += '</tr></table></form>';
//obj.data.temp_merge_top = top_xml; obj.data.stash('temp_merge_top');
Modified: trunk/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-05-13 15:41:06 UTC (rev 13150)
+++ trunk/Open-ILS/xul/staff_client/server/cat/z3950.js 2009-05-13 16:22:00 UTC (rev 13151)
@@ -723,8 +723,7 @@
}
xml += '</tr><tr valign="top">';
for (var i = 0; i < record_ids.length; i++) {
- html = obj.network.simple_request('MARC_HTML_RETRIEVE',[ record_ids[i] ]);
- xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="data:text/html,' + window.escape(html) + '"/></td>';
+ xml += '<td nowrap="nowrap"><iframe style="min-height: 1000px; min-width: 300px;" flex="1" src="' + urls.XUL_MARC_VIEW + '?docid=' + record_ids[i] + ' "/></td>';
}
xml += '</tr></table></form>';
// data.temp_merge_top = top_xml; data.stash('temp_merge_top');
More information about the open-ils-commits
mailing list