From: erickson Date: Mon, 11 May 2009 20:37:39 +0000 (+0000) Subject: plugged in initial xpath parsing for provider attr defs. fixed some grid height issue... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c7486e97ae9ff898a0707ed0dba5c3d5aee2163b;p=evergreen%2Ftadl.git plugged in initial xpath parsing for provider attr defs. fixed some grid height issues. fixed some html cell value formtters git-svn-id: svn://svn.open-ils.org/ILS/trunk@13132 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/conify/global/acq/provider.js b/Open-ILS/web/js/ui/default/conify/global/acq/provider.js index abfe064569..fe447e14a1 100644 --- a/Open-ILS/web/js/ui/default/conify/global/acq/provider.js +++ b/Open-ILS/web/js/ui/default/conify/global/acq/provider.js @@ -2,7 +2,12 @@ dojo.require('dijit.layout.TabContainer'); dojo.require('openils.widget.AutoGrid'); dojo.require('dijit.form.FilteringSelect'); dojo.require('openils.PermaCrud'); +dojo.require('openils.MarcXPathParser'); + + var provider; +var xpathParser = new openils.MarcXPathParser(); +var subFields= []; function draw() { if(providerId) { @@ -81,7 +86,7 @@ function drawProviderSummary(child) { case 'tab-hold': phsListGrid.overrideEditWidgets.provider = new dijit.form.TextBox({disabled: 'true', value: providerId}); - phsListGrid.overrideEditWidgets.name = nameSelect; + phsListGrid.overrideEditWidgets.name = name; phsListGrid.resetStore(); phsListGrid.loadAll({order_by:{acqphsm : 'provider'}}, {provider : providerId}); break; @@ -100,11 +105,20 @@ function drawProviderSummary(child) { } } -function getProviderName(rowIndex, item) { - if(!item) return ''; - return '' + - this.grid.store.getValue(item, 'name') + ''; + +function getParsedTag(rowIndex, item) { + console.log("in getParsedTag"); + console.log(item); + return item && xpathParser.parse(padListGrid.store.getValue(item, 'xpath')).tags; } + +function getParsedSubf(rowIndex, item) { + + if(item) { + var subfields = xpathParser.parse(padListGrid.store.getValue(item, 'xpath')).subfields; + return subfields.join(','); + } + return''; +} openils.Util.addOnLoad(draw); diff --git a/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 b/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 index 529fbaef9a..a682e536bf 100644 --- a/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 +++ b/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 @@ -1,7 +1,9 @@ [% WRAPPER default/base.tt2 %] - - -