From d6ff8b828a1319058d97bfb8116e657cdf201707 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 4 Sep 2008 13:04:00 +0000 Subject: [PATCH] no longer working around double-header issue. sorting attr defs on ID (experimenting) instead of name git-svn-id: svn://svn.open-ils.org/ILS/trunk@10533 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/vandelay/vandelay.js | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Open-ILS/web/vandelay/vandelay.js b/Open-ILS/web/vandelay/vandelay.js index e27b0a8a57..67e0caa4af 100644 --- a/Open-ILS/web/vandelay/vandelay.js +++ b/Open-ILS/web/vandelay/vandelay.js @@ -76,8 +76,8 @@ function vlInit() { bibAttrsFetched = true; bibAttrDefs = bibAttrDefs.sort( function(a, b) { - if(a.description() > b.description()) return 1; - if(a.description() < b.description()) return -1; + if(a.id() > b.id()) return 1; + if(a.id() < b.id()) return -1; return 0; } ); @@ -101,8 +101,8 @@ function vlInit() { authAttrsFetched = true; authAttrDefs = authAttrDefs.sort( function(a, b) { - if(a.description() > b.description()) return 1; - if(a.description() < b.description()) return -1; + if(a.id() > b.id()) return 1; + if(a.id() < b.id()) return -1; return 0; } ); @@ -145,12 +145,11 @@ function uploadMARC(onload){ form: dojo.byId('vl-marc-upload-form'), handle: function(data,ioArgs){ var content = data.documentElement.textContent; - var key = content.split(/\n/)[2]; /* XXX have to strip the headers.. (why?) */ dojo.style(dojo.byId('vl-input-td'),"display","inline"); dojo.style(dojo.byId('vl-upload-progress-span'),"display","none"); dojo.style(dojo.byId('vl-file-label'), 'display', 'inline'); dojo.style(dojo.byId('vl-file-uploading'), 'display', 'none'); - onload(key); + onload(content); } }); } @@ -278,7 +277,7 @@ function buildAttrColumnUI(rec, attrCode, attr) { return '
' + ''+ - attr.attr_value() + ' ('+matches.length+')
'; + attr.attr_value() + ' ('+matches.length+')'; } return attr.attr_value(); @@ -376,6 +375,20 @@ function buildRecordGrid(type) { vlQueueGrid.update(); } +/* +function test() { + alert(vlQueueGridLayout.picker); + vlQueueGridLayout.oils = {}; + vlQueueGridLayout[0].cells[0].pop(); + vlQueueGridLayout[0].cells[0].pop(); + vlQueueGridLayout[0].cells[0].pop(); + vlQueueGridLayout[0].cells[0].pop(); + vlQueueGridLayout[0].cells[0].pop(); + vlQueueGrid.setStructure(vlQueueGridLayout); + vlQueueGrid.update(); +} +*/ + var selectableGridRecords = {}; function vlQueueGridDrawSelectBox(rowIdx) { var data = this.grid.model.getRow(rowIdx); -- 2.43.2