Changeset 2656


Ignore:
Timestamp:
03/05/13 14:57:29 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DataCategoryEditor.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

  • replaced the profile by a 'standard' ISOcat matrix
Location:
cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DataCategoryEditor.xml

    r2652 r2656  
    8181              <strings jsxname="cdf" jsxwidth="100%" jsxheight="100%" jsxxmlid="DC-dc-_jsx_1_4b" jsxcdfid="dc-_jsx_1_4b"></strings>
    8282              <object type="jsx3.gui.StackGroup">
    83                 <variants jsxoverflow="2" jsxselectedindex="0"></variants>
     83                <variants jsxoverflow="2" jsxselectedindex="1"></variants>
    8484                <strings jsxname="stackgroup" jsxrows="*,27,27"></strings>
    8585                <object type="jsx3.gui.Stack">
     
    8888                  <object type="jsx3.gui.Block">
    8989                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    90                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
     90                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
    9191                    <dynamics jsxbgcolor="ISOcat logo bg color"></dynamics>
    9292                    <object type="jsx3.gui.CDF">
     
    197197                                  <object type="jsx3.gui.Select">
    198198                                    <variants jsxwidth="150" jsxheight="18" jsxxmlasync="1" _isfocusing="true"></variants>
    199                                     <strings jsxname="type" jsxxmlurl="xml/dc-types.xml" jsxmargin="0 4 0 0" jsxcdfattribute="type"></strings>
     199                                    <strings jsxname="type" jsxxmlurl="xml/dc-types.xml" jsxmargin="0 4 0 0" jsxcdfattribute="type" jsxvalue="closed"></strings>
    200200                                    <events jsxselect="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.changedType();"></events>
    201201                                  </object>
     
    592592                  <object type="jsx3.gui.Block">
    593593                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    594                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
     594                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxpadding="5 5 0 5" jsxvisibility="visible"></strings>
    595595                    <dynamics jsxbgcolor="ISOcat logo bg color" jsxborder="@Inset Top"></dynamics>
    596596                    <object type="jsx3.gui.CDF">
     
    609609                            <object type="jsx3.gui.LayoutGrid">
    610610                              <variants jsxrelativeposition="0" jsxleft="0" jsxtop="0" jsxoverflow="2"></variants>
    611                               <strings jsxname="layout (--)" jsxrows="30,120,35,130,35,725" jsxwidth="100%" jsxheight="100%" jsxstyleoverride="overflow-y:scroll;" jsxcols="*,20"></strings>
     611                              <strings jsxname="layout (--)" jsxrows="30,130,35,130,35,725" jsxwidth="100%" jsxheight="100%" jsxstyleoverride="overflow-y:scroll;" jsxcols="*,20"></strings>
    612612                              <object type="jsx3.gui.Block">
    613613                                <variants jsxoverflow="1"></variants>
     
    621621                              <object type="jsx3.gui.LayoutGrid">
    622622                                <variants jsxrelativeposition="1" jsxleft="0" jsxtop="0" jsxoverflow="2"></variants>
    623                                 <strings jsxname="profileRow" jsxcols="175,16,250,*" jsxwidth="100%" jsxheight="100%" jsxrows="120" jsxdisplay=""></strings>
     623                                <strings jsxname="profilesRow" jsxcols="191,*,20" jsxwidth="100%" jsxheight="100%" jsxrows="120" jsxdisplay=""></strings>
    624624                                <object type="jsx3.gui.Block">
    625625                                  <variants jsxrelativeposition="1" jsxoverflow="3" jsxspy="1"></variants>
     
    627627                                  <events jsxspy="org.isocat.spyglass(&quot;profile&quot;);"></events>
    628628                                </object>
    629                                 <object type="jsx3.gui.Image">
    630                                   <variants jsxoverflow="2" jsxrelativeposition="1"></variants>
    631                                   <strings jsxname="mandatory" jsxsrc="http://isocat:8080/famfamfam/silk/icons/bullet_red.png" jsxpadding="" jsxmargin="10"></strings>
    632                                 </object>
    633                                 <object type="jsx3.gui.Block">
    634                                   <variants jsxoverflow="1"></variants>
    635                                   <strings jsxname="block" jsxwidth="100%" jsxheight="100%" jsxrelativeposition="1" jsxmargin="10"></strings>
    636                                   <object type="jsx3.gui.Block">
    637                                     <variants jsxheight="100" jsxwidth="250" jsxrelativeposition="0" jsxoverflow="1" jsxleft="0" jsxtop="0"></variants>
    638                                     <strings jsxname="block" jsxdisplay=""></strings>
    639                                     <object type="jsx3.gui.Matrix">
    640                                       <variants jsxheaderheight="0" jsxpagingmodel="1" jsxselectionmodel="2" jsxjsxxmlasync="1" jsxscalewidth="1"></variants>
    641                                       <strings jsxname="profiles" jsxbgcolor="#efefff" jsxbodyborder="1px solid #dfdfef" jsxxmlid="profiles-_jsx_1_pc"></strings>
    642                                       <events jsxselect="jsx3.log('EVENT: (jsxselect). Record: ' + strRECORDID);" jsxchange="var c = this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller;&#xA;c.changed();&#xA;c.profilesChanged();"></events>
    643                                       <xslparameters jsx_rowbg1="#ffffff" jsx_rowbg2="#efefff"></xslparameters>
    644                                       <object type="jsx3.gui.Matrix.Column">
    645                                         <variants></variants>
    646                                         <strings jsxname="profile" jsxwidth="*" jsxcellpadding="2" jsxpath="jsxtext"></strings>
     629                                <object type="jsx3.gui.Block">
     630                                  <variants jsxheight="100" jsxoverflow="1"></variants>
     631                                  <strings jsxname="block" jsxwidth="100%" jsxrelativeposition="1" jsxmargin="10"></strings>
     632                                  <object type="jsx3.gui.LayoutGrid">
     633                                    <variants jsxrelativeposition="0" jsxleft="0" jsxtop="0" jsxoverflow="2"></variants>
     634                                    <strings jsxname="layoutCols" jsxcols="*,20" jsxwidth="100%" jsxheight="100%"></strings>
     635                                    <object type="jsx3.gui.Block">
     636                                      <variants jsxoverflow="2"></variants>
     637                                      <strings jsxname="pane1" jsxwidth="100%" jsxheight="100%"></strings>
     638                                      <object type="jsx3.gui.Matrix">
     639                                        <variants jsxpagingmodel="1" jsxselectionmodel="0" jsxjsxxmlasync="1" jsxautorow="0"></variants>
     640                                        <strings jsxname="profiles" jsxbodyborder="1px solid #dfdfef" jsxheaderborder="1px solid #dfdfef" jsxbgcolor="#efefff" jsxxmlurl="http://isocat:8080/isocat/interface/JSXAPPS/ISOcat/xml/empty.xml" jsxxmlid="profiles-_jsx_1_1mq" jsxsortpath="jsxtext" jsxsorttype="text"></strings>
     641                                        <events jsxafteredit="" jsxchange="" jsxaftercommit="var c = this.getAncestorOfName('DataCategoryEditor').controller;c.changed();c.profilesChanged();"></events>
     642                                        <xslparameters jsx_rowbg1="#ffffff" jsx_rowbg2="#efefff"></xslparameters>
     643                                        <object type="jsx3.gui.Matrix.Column">
     644                                          <variants jsxwidth="16"></variants>
     645                                          <strings jsxname="imageButtonColumn" jsxpadding="3" jsxcellpadding="1" jsxvaluetemplate="@empty"></strings>
     646                                          <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
     647                                          <object type="jsx3.gui.ImageButton">
     648                                            <variants jsxstate="0" jsxwidth="16" jsxheight="16" jsxenabled="1" jsxprefetch="1" jsxtype="0"></variants>
     649                                            <strings jsxname="imageButtonMask" jsximage="http://isocat:8080/Tango/16x16/actions/list-remove.png" jsxdisabledimage="http://isocat:8080/Tango/16x16/actions/list-remove.png" jsxoverimage="http://isocat:8080/Tango/16x16/actions/list-remove.png" jsxdownimage="http://isocat:8080/Tango/16x16/actions/list-remove.png" jsxonimage="http://isocat:8080/Tango/16x16/actions/list-remove.png"></strings>
     650                                            <events jsxexecute="var id = this.emGetSession().recordId;&#xA;var c = this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller;&#xA;if (id == 'jsxautorow') {&#xA;  this.getParent().getParent().commitAutoRowSession();&#xA;} else {&#xA;  this.getParent().getParent().deleteRecord(id, true);&#xA;}&#xA;c.changed();"></events>
     651                                          </object>
     652                                        </object>
     653                                        <object type="jsx3.gui.Matrix.Column">
     654                                          <variants></variants>
     655                                          <strings jsxname="profile" jsxwidth="100" jsxtext="Profile" jsxpadding="2" jsxcellpadding="3 0 0 4" jsxvaluetemplate="@empty" jsxformathandler="@lookup" jsxpath="jsxid"></strings>
     656                                          <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
     657                                          <object type="jsx3.gui.Select">
     658                                            <variants jsxrelativeposition="0" jsxleft="16" jsxtop="0" jsxheight="20" jsxzindex="10" jsxwidth="425"></variants>
     659                                            <strings jsxname="profileMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxvalue="profile-5" jsxxmlid="profiles-_jsx_1_17b"></strings>
     660                                          </object>
     661                                        </object>
     662                                      </object>
     663                                    </object>
     664                                    <object type="jsx3.gui.Block">
     665                                      <variants jsxoverflow="1"></variants>
     666                                      <strings jsxname="pane2" jsxwidth="100%" jsxheight="100%"></strings>
     667                                      <object type="jsx3.gui.ImageButton">
     668                                        <variants jsxwidth="16" jsxheight="16" jsxtype="0" jsxprefetch="1" jsxstate="0"></variants>
     669                                        <strings jsxname="imagebutton" jsximage="http://isocat:8080/Tango/16x16/actions/list-add.png" jsxoverimage="http://isocat:8080/Tango/16x16/actions/list-add.png" jsxdownimage="http://isocat:8080/Tango/16x16/actions/list-add.png" jsxonimage="http://isocat:8080/Tango/16x16/actions/list-add.png" jsxdisabledimage="http://isocat:8080/Tango/16x16/actions/list-add.png" jsxtip="Add a profile."></strings>
     670                                        <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.addProfile();&#xA;"></events>
    647671                                      </object>
    648672                                    </object>
     
    769793                                        <object type="jsx3.gui.Menu">
    770794                                          <variants jsxxmlasync="1"></variants>
    771                                           <strings jsxname="languageMenuLeft" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_pc-left" jsximage="images/flag.png"></strings>
     795                                          <strings jsxname="languageMenuLeft" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_17b-left" jsximage="images/flag.png"></strings>
    772796                                          <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLanguageSection(this,objRECORD); "></events>
    773797                                        </object>
     
    779803                                        <object type="jsx3.gui.Menu">
    780804                                          <variants jsxxmlasync="1"></variants>
    781                                           <strings jsxname="languageMenuRight" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_pc-right" jsximage="images/flag.png"></strings>
     805                                          <strings jsxname="languageMenuRight" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_17b-right" jsximage="images/flag.png"></strings>
    782806                                          <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLanguageSection(this,objRECORD);"></events>
    783807                                        </object>
     
    881905                              <dynamics jsxborder="@No jsxborder"></dynamics>
    882906                              <object type="jsx3.gui.TabbedPane">
    883                                 <variants selectedIndex="2" jsxselectedindex="0" jsxshowtabs="0"></variants>
     907                                <variants selectedIndex="2" jsxselectedindex="1" jsxshowtabs="0"></variants>
    884908                                <strings jsxname="simpleComplexTabs" jsxtextalign="0" jsxbgcolor="white"></strings>
    885909                                <object type="jsx3.gui.Tab">
     
    888912                                  <object type="jsx3.gui.Block">
    889913                                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    890                                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxvisibility="visible" jsxbg=""></strings>
     914                                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxvisibility="visible" jsxbg=""></strings>
    891915                                    <dynamics jsxbgcolor="@Transparent BG" jsxborder="@No jsxborder"></dynamics>
    892916                                    <object type="jsx3.gui.LayoutGrid">
     
    951975                                  <object type="jsx3.gui.Block">
    952976                                    <variants jsxoverflow="2" jsxrelativeposition="0" jsxleft="0" jsxtop="0" jsxloadtype="4"></variants>
    953                                     <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="none" jsxvisibility="visible"></strings>
     977                                    <strings jsxname="pane" jsxwidth="100%" jsxheight="100%" jsxdisplay="" jsxvisibility="visible"></strings>
    954978                                    <dynamics jsxbgcolor="@Transparent BG" jsxborder="@No jsxborder"></dynamics>
    955979                                    <object type="jsx3.gui.LayoutGrid">
     
    9821006                                          <object type="jsx3.gui.Select">
    9831007                                            <variants jsxwidth="150" jsxheight="18" jsxxmlasync="1" _isfocusing="true"></variants>
    984                                             <strings jsxname="datatypes" jsxmargin="0 4 0 0" jsxxmlid="datatypes-_jsx_1_pc" jsxvalue="datatype-1"></strings>
     1008                                            <strings jsxname="datatypes" jsxmargin="0 4 0 0" jsxxmlid="datatypes-_jsx_1_17b" jsxvalue="datatype-1"></strings>
    9851009                                            <events jsxselect="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.changed();"></events>
    9861010                                          </object>
     
    9961020                                      </object>
    9971021                                      <object type="jsx3.gui.TabbedPane">
    998                                         <variants selectedIndex="2" jsxselectedindex="-1" jsxshowtabs="0"></variants>
    999                                         <strings jsxname="closedConstrainedTabs" jsxtextalign="0" jsxbgcolor="white" jsxvisibility=""></strings>
     1022                                        <variants selectedIndex="2" jsxselectedindex="0" jsxshowtabs="0"></variants>
     1023                                        <strings jsxname="closedConstrainedTabs" jsxtextalign="0" jsxbgcolor="white" jsxvisibility="visible"></strings>
    10001024                                        <object type="jsx3.gui.Tab">
    10011025                                          <variants jsxzindex="3" jsxheight="20"></variants>
     
    10781102                                                        <object type="jsx3.gui.Select">
    10791103                                                          <variants jsxrelativeposition="0" jsxleft="16" jsxtop="20" jsxheight="20" jsxzindex="10" _isfocusing="true"></variants>
    1080                                                           <strings jsxwidth="100%" jsxname="ruleTypeMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxxmlid="ruletypes-_jsx_1_pc" jsxvalue="Object Constraint Language"></strings>
     1104                                                          <strings jsxwidth="100%" jsxname="ruleTypeMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxxmlid="ruletypes-_jsx_1_17b" jsxvalue="Object Constraint Language"></strings>
    10811105                                                          <events jsxselect="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.changed();"></events>
    10821106                                                        </object>
     
    11451169                                                <object type="jsx3.gui.Menu">
    11461170                                                  <variants jsxxmlasync="1"></variants>
    1147                                                   <strings jsxname="linguisticMenuLeft" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_pc-left" jsximage="images/flag.png"></strings>
     1171                                                  <strings jsxname="linguisticMenuLeft" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_17b-left" jsximage="images/flag.png"></strings>
    11481172                                                  <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLinguisticSection(this,objRECORD); "></events>
    11491173                                                </object>
     
    11551179                                                <object type="jsx3.gui.Menu">
    11561180                                                  <variants jsxxmlasync="1"></variants>
    1157                                                   <strings jsxname="linguisticMenuRight" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_pc-right" jsximage="images/flag.png"></strings>
     1181                                                  <strings jsxname="linguisticMenuRight" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_17b-right" jsximage="images/flag.png"></strings>
    11581182                                                  <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLinguisticSection(this,objRECORD);"></events>
    11591183                                                </object>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

    r2652 r2656  
    107107        DCEditor_prototype.issues;
    108108        DCEditor_prototype.profiles;
     109        DCEditor_prototype.profileMask;
    109110        DCEditor_prototype.dataElementNames;
    110111        DCEditor_prototype.languageMenuLeft;
     
    216217                this.issues               = this.view.getDescendantOfName("issues");
    217218                this.profiles             = this.view.getDescendantOfName("profiles");
     219                this.profileMask          = this.view.getDescendantOfName("profileMask");
    218220                org.isocat.gui.DCEditor.log.info("- DC editor profiles list["+this.profiles+"]");
    219221                this.dataElementNames     = this.view.getDescendantOfName("dataElementNames");
     
    229231                org.isocat.gui.DCEditor.log.info("- DC editor language section right["+this.languageSectionRight+"]");
    230232                this.datatypes            = this.view.getDescendantOfName("datatypes");
    231                 this.valueDomain    = this.view.getDescendantOfName("ProfileValueDomainEditor").controller;
     233                this.valueDomain          = this.view.getDescendantOfName("ProfileValueDomainEditor").controller;
    232234                this.ruleTypeMask         = this.view.getDescendantOfName("ruleTypeMask");
    233235                this.constraints          = this.view.getDescendantOfName("constraints");
     
    300302                var cacheId = "profiles-"+this.view.getId();
    301303                var profs = org.isocat.loadDynamicCDFDocument(new jsx3.net.URI("http://isocat:8080/isocat/rest/info/profiles.xml"),"Profiles2CDF_xsl",null,cacheId);
    302                 this.profiles.setXMLId(cacheId);
    303                 this.profiles.repaint();
     304                this.profileMask.setXMLId(cacheId);
    304305               
    305306                // set the callbacks for the profile value domains editor
     
    518519                var cdfDoc = this.cdf.getXML();
    519520               
    520                 var profDoc = org.isocat.createSubCDFDocument(cdfDoc,"profiles",true);
    521                 org.isocat.gui.DCEditor.log.info("profiles["+profDoc.getRecordIds().lenght+"]:"+profDoc);
    522                 var profs = profDoc.getRecordIds();
     521                // profiles
     522                var profs = org.isocat.createSubCDFDocument(cdfDoc,"profiles",true);
     523                var cacheId = this.cacheId()+"-profiles";
     524                org.isocat.APP.getCache().setDocument(cacheId,profs);
     525                this.profiles.setXMLId(cacheId);
     526                this.profiles.repaintData();
     527                profs = profs.getRecordIds();
    523528                if (typeof(profs)=='undefined' || profs.length==0) {
    524529                    this.setCheck("profiles","none");
    525530                } else {
    526531                    this.setCheck("profiles","ok");
    527                     this.profiles.setValue(profs);
    528                 }
    529 
     532                }
     533
     534
     535        // data element names
    530536                var cacheId = this.cacheId()+"-datanames";
    531537                org.isocat.APP.getCache().setDocument(cacheId,org.isocat.createSubCDFDocument(cdfDoc,"datanames",true));
     
    882888        };
    883889       
     890        DCEditor_prototype.addProfile = function() {
     891                var rec = this.profiles.insertRecord({jsxid:'profile-0',jsxtext:''});
     892                jsx3.sleep(function() { this.profiles.focusCellById('profile-0',"jsxtext"); },"focusCell",this,true);
     893                this.changed();
     894                this.profilesChanged();
     895        };
     896       
    884897        DCEditor_prototype.addDataElementName = function() {
    885898                var id =  jsx3.xml.CDF.getKey();
     
    897910       
    898911        DCEditor_prototype.profilesChanged = function() {
    899                 // callback from the ProfilesInput
    900912                var profDoc = this.getProfiles();
    901913            org.isocat.gui.DCEditor.log.info("DCEditor.profilesChanged():profs["+profDoc+"]");
     
    905917                    this.setCheck("profiles","none");
    906918                org.isocat.APP.alert("Profile membership","A data category should be a member of at least one profile!",null,"OK");
    907 
    908919                } else {
    909920                    this.setCheck("profiles","ok");
     
    916927       
    917928        DCEditor_prototype.getProfiles = function() {
    918             var profs = new jsx3.xml.CDF.Document();
    919             profs.createDocumentElement("data");
    920                 profs.setAttribute("jsxid","jsxroot");
    921         for (var iter = this.profiles.getSelectedNodes().iterator();iter.hasNext();) {
    922             var prof = iter.next();
    923                         prof = prof.cloneNode(true);
    924                         prof.removeChildren();
    925                         prof.removeAttribute("checked");
    926                         prof.removeAttribute("jsxopen");
    927                         profs.appendChild(prof);
    928         }
    929         return profs;
     929            var profs = this.profiles.getXML().cloneDocument();
     930            org.isocat.gui.DCEditor.log.info("DCEditor.getProfiles(...):profs["+profs+"]");
     931            profs = jsx3.xml.CDF.Document.wrap(profs);
     932            org.isocat.gui.DCEditor.log.info("DCEditor.getProfiles(...):profs["+profs+"]");
     933            var recs = profs.getRecordIds();
     934            org.isocat.gui.DCEditor.log.info("DCEditor.getProfiles(...):recs["+recs+"]");
     935            for (var i = 0; i<recs.length; i++) {
     936                var rec = profs.getRecordNode(recs[i]);
     937            org.isocat.gui.DCEditor.log.info("DCEditor.getProfiles(...):rec["+i+"]["+recs[i]+"]["+rec+"]");
     938                rec.setAttribute("jsxtext",this.profileMask.getRecord(recs[i]).jsxtext);
     939                org.isocat.gui.DCEditor.log.info("DCEditor.getProfiles(...):rec["+i+"]["+recs[i]+"]["+rec+"]");
     940            }
     941            return profs;
    930942        };
    931943               
     
    16181630       
    16191631        DCEditor_prototype.focusDescrSection = function() {
    1620         jsx3.sleep(function() { this.profiles.setValue(this.profiles.getSelectedIds()); },"revealSelectedProfile",this,true);
     1632        //jsx3.sleep(function() { this.profiles.setValue(this.profiles.getSelectedIds()); },"revealSelectedProfile",this,true);
    16211633        }
    16221634});
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml

    r2652 r2656  
    5454    <record jsxid="JSXAPPS/ISOcat" type="map">
    5555      <record jsxid="recentFiles" type="array">
    56         <record jsxid="0" type="string">components/appCanvas.xml</record>
    57         <record jsxid="1" type="string">components/DataCategoryEditor.xml</record>
     56        <record jsxid="0" type="string">components/DataCategoryEditor.xml</record>
     57        <record jsxid="1" type="string">components/appCanvas.xml</record>
    5858        <record jsxid="2" type="string">components/ProfilesInput.xml</record>
    5959        <record jsxid="3" type="string">xml/dc.xml</record>
Note: See TracChangeset for help on using the changeset viewer.