Deleted the unused li_attr files.
authorJoseph Lewis <joehms22@gmail.com>
Wed, 20 Jun 2012 13:20:48 +0000 (07:20 -0600)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 10 Oct 2012 14:22:37 +0000 (10:22 -0400)
<joseph_> I can't find any references to li_attr.tt2 in any source files (using grep) does this mean it isn't used, or are we doing some kind of dynamic loading?
<tsbere> Hmmm. Could be an old config interface that would have been linked via the staff client.
<tsbere> Not sure
<joseph_> It is weird, because it is a tt2 file...
<tsbere> Sometimes a tt2 file is referenced without the .tt2 when linked to, compared to included.
<senator> i can vouch for the unusedness of that file
<senator> it's old cruft
<joseph_> Ah, that looks like it may have done it.
<joseph_> senator, thanks. :) I'll probably get rid of it then.
<denials> cruft_removal++

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/templates/acq/settings/li_attr.tt2 [deleted file]
Open-ILS/web/js/ui/default/acq/settings/li_attr.js [deleted file]

diff --git a/Open-ILS/src/templates/acq/settings/li_attr.tt2 b/Open-ILS/src/templates/acq/settings/li_attr.tt2
deleted file mode 100644 (file)
index d096f96..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-[% WRAPPER base.tt2 %]
-
-<div dojoType="dijit.layout.ContentPane" layoutAlign="top">
-    <div dojoType="dijit.form.DropDownButton">
-        <span>Lineitem Attribute Attribute</span>
-        <div dojoType="dijit.TooltipDialog" execute="createOrderRecordField(arguments[0]);">
-            <script type='dojo/connect' event='onOpen'>//setORDesc();</script>
-            <table class='dijitTooltipTable'>
-                <tr>
-                    <td><label for="code">Code:</label></td>
-                    <td><input dojoType='dijit.form.TextBox' name='code'/></td>
-                </tr>
-                <tr>
-                    <td><label for="description">Description: </label></td>
-                    <td><input id='oils-acq-provider-or-desc' dojoType="dijit.form.TextBox" name="description"> </input></td>
-                </tr>
-                <tr>
-                    <td><label for="amount">Tag: </label></td>
-                    <td><input dojoType="dijit.form.TextBox" name="tag"></input></td>
-                </tr>
-                <tr>
-                    <td><label for="amount">Subfield: </label></td>
-                    <td><input dojoType="dijit.form.TextBox" name="subfield"></input></td>
-                </tr>
-                <tr>
-                    <td><label for="ident">Identifer Field?: </label></td>
-                    <td>
-                        <select dojoType="dijit.form.FilteringSelect" name="ident">
-                            <option value='f' selected='selected'>False</option>
-                            <option value='t'>True</option>
-                        </select>
-                    </td>
-                </tr>
-                <tr>
-                    <td><label for="amount">XPath (advanced): </label></td>
-                    <td><input dojoType="dijit.form.TextBox" name="xpath"></input></td>
-                </tr>
-                <tr>
-                    <td colspan='2' align='center'>
-                        <button dojoType=dijit.form.Button type="submit">Apply</button>
-                    </td>
-                </tr>
-            </table>
-        </div>
-    </div>
-    <script type="text/javascript">
-        var liAttrGridLayout = [{
-            cells : [[
-                {name: 'ID', field: 'id'},
-                {name: 'Code', field:'code', width:'auto'},
-                {name: 'Description', field: "description", width:'auto'}, 
-                {name: 'Tag', get:getTag},
-                {name: 'Subfield', get:getSubfield},
-                {name: 'Identifier', field:'ident'},
-                {name: 'XPath', field:'xpath', width:'auto'}
-            ]]
-        }];
-    </script>
-    <div dojoType="dijit.layout.TabContainer">
-        <div dojoType="dijit.layout.ContentPane" 
-                class='oils-acq-detail-content-pane' title="MARC Attributes" style='height:600px;'>
-            <script type='dojo/connect' event='onShow'>loadMarcAttrGrid();</script>
-            <div jsId='liMarcAttrGrid' dojoType="dojox.Grid" structure='liAttrGridLayout'> </div>
-        </div>
-        <div dojoType="dijit.layout.ContentPane" 
-                class='oils-acq-detail-content-pane' title="Generated Attributes" style='height:600px;'>
-            <script type='dojo/connect' event='onShow'>loadGeneratedAttrGrid();</script>
-            <div jsId='liGeneratedAttrGrid' dojoType="dojox.Grid" structure='liAttrGridLayout'> </div>
-        </div>
-    </div>
-</div>
-
-<script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/settings/li_attr.js'></script>
-[% END %]
diff --git a/Open-ILS/web/js/ui/default/acq/settings/li_attr.js b/Open-ILS/web/js/ui/default/acq/settings/li_attr.js
deleted file mode 100644 (file)
index 28b8f0b..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-dojo.require("dijit.Dialog");
-dojo.require('dijit.layout.TabContainer');
-dojo.require('dijit.layout.ContentPane');
-dojo.require('dijit.form.FilteringSelect');
-dojo.require('dijit.form.TextBox');
-dojo.require('dojox.grid.Grid');
-dojo.require("fieldmapper.OrgUtils");
-dojo.require('openils.Event');
-dojo.require('openils.User');
-dojo.require('openils.acq.LineitemAttr');
-
-var provider = null;
-var marcRegex = /^\/\/\*\[@tag="(\d+)"]\/\*\[@code="(\w)"]$/;
-var attrDefStores;
-
-
-function getOrgInfo(rowIndex) {
-    data = providerGrid.model.getRow(rowIndex);
-    if(!data) return;
-    return fieldmapper.aou.findOrgUnit(data.owner).shortname();
-}
-
-function getTag(rowIdx) {
-    data = this.grid.model.getRow(rowIdx);
-    if(!data) return;
-    return data.xpath.replace(marcRegex, '$1');
-}
-
-function getSubfield(rowIdx) {
-    data = this.grid.model.getRow(rowIdx);
-    if(!data) return;
-    return data.xpath.replace(marcRegex, '$2');
-}
-
-
-function loadStores(onload) {
-    if(attrDefStores) 
-        return onload();
-    openils.acq.LineitemAttr.createAttrDefStores(
-        function(stores) {
-            attrDefStores = stores;
-            onload();
-        }
-    )
-}
-
-
-function loadMarcAttrGrid() {
-    loadStores(
-        function() {
-            var store = new dojo.data.ItemFileReadStore({data:attrDefStores.marc});
-            var model = new dojox.grid.data.DojoData(
-                null, store, {rowsPerPage: 20, clientSort: true, query:{id:'*'}});
-            liMarcAttrGrid.setModel(model);
-            liMarcAttrGrid.update();
-        }
-    );
-}
-
-function loadGeneratedAttrGrid() {
-    loadStores(
-        function() {
-            var store = new dojo.data.ItemFileReadStore({data:attrDefStores.generated});
-            var model = new dojox.grid.data.DojoData(
-                null, store, {rowsPerPage: 20, clientSort: true, query:{id:'*'}});
-            liGeneratedAttrGrid.setModel(model);
-            liGeneratedAttrGrid.update();
-        }
-    );
-}
-
-/*
-function createOrderRecordField(fields) {
-    fields.provider = providerId;
-    if(!fields.xpath) 
-        fields.xpath = '//*[@tag="'+fields.tag+'"]/*[@code="'+fields.subfield+'"]';
-    delete fields.tag;
-    delete fields.subfield;
-    openils.acq.Provider.createLineitemProviderAttrDef(fields, 
-        function(id) {
-            loadPADGrid();
-        }
-    );
-}
-
-function setORDesc() {
-    var code = dijit.byId('oils-acq-provider-or-code');
-    var desc = dijit.byId('oils-acq-provider-or-desc');
-    desc.setValue(code.getDisplayedValue());
-}
-
-function deleteORDataFields() {
-    var list = []
-    var selected = padGrid.selection.getSelected();
-    for(var idx = 0; idx < selected.length; idx++) 
-        list.push(padGrid.model.getRow(selected[idx]).id);
-    openils.acq.Provider.lineitemProviderAttrDefDeleteList(
-        list, function(){loadPADGrid();});
-}
-*/
-
-
-//dojo.addOnLoad(loadLIAttrGrid);
-
-