From: erickson Date: Thu, 18 Feb 2010 22:43:55 +0000 (+0000) Subject: initial lineitem marc attr def editor ui X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=38cadc0d4a670b73ae8f1fca6ef0c06d19d7b63d;p=evergreen%2Fpines.git initial lineitem marc attr def editor ui git-svn-id: svn://svn.open-ils.org/ILS/trunk@15592 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/conify/global/acq/lineitem_marc_attr_def.js b/Open-ILS/web/js/ui/default/conify/global/acq/lineitem_marc_attr_def.js new file mode 100644 index 0000000000..b91db711fa --- /dev/null +++ b/Open-ILS/web/js/ui/default/conify/global/acq/lineitem_marc_attr_def.js @@ -0,0 +1,21 @@ +dojo.require('openils.widget.AutoGrid'); +dojo.require('openils.PermaCrud'); +dojo.require('openils.Util'); +dojo.require('openils.User'); +dojo.require('openils.MarcXPathParser'); + +var xpathParser = new openils.MarcXPathParser(); + +function init() { + attrGrid.loadAll({order_by : {acqlimad : 'code'}}); +} + +function attrGridGetTag(rowIdx, item) { + return item && xpathParser.parse(this.grid.store.getValue(item, 'xpath')).tags; +} + +function attrGridGetSubfield(rowIdx, item) { + return item && xpathParser.parse(this.grid.store.getValue(item, 'xpath')).subfields; +} + +openils.Util.addOnLoad(init); diff --git a/Open-ILS/web/templates/default/conify/global/acq/lineitem_marc_attr_def.tt2 b/Open-ILS/web/templates/default/conify/global/acq/lineitem_marc_attr_def.tt2 new file mode 100644 index 0000000000..5a32632b76 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/acq/lineitem_marc_attr_def.tt2 @@ -0,0 +1,32 @@ +[% WRAPPER default/base.tt2 %] + + + + +
+
+
Line Item MARC Attribute Definition Editor
+
+ + +
+
+ + + + + + + +
TagSubfield
+
+ +[% END %] + +