Changeset 2630


Ignore:
Timestamp:
02/26/13 16:06:34 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/xml/dc.xml

  • removed default profile

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

  • check if a profile has been selected

M mod-ISOcat-access-data/access/dc_status.acc

  • escape ' properly, i.e., instead of \'

M mod-ISOcat-access-data/access/dc_new.acc

  • disabled debugging
Location:
cats/ISOcat/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-access-data/access/dc_new.acc

    r2029 r2630  
    1 <accessor debug="true" trace="false">
     1<accessor debug="false" trace="false">
    22        <name>ISOcat.access.data.dc.new</name>
    33        <descr>Insert a new DC.</descr>
  • cats/ISOcat/trunk/mod-ISOcat-access-data/access/dc_status.acc

    r2029 r2630  
    243243                                                                                <xsl:choose>
    244244                                                                                                <xsl:when test="normalize-space($message)!=''">
    245                                                                                                         '<xsl:value-of select="replace($message,&quot;&apos;&quot;,&quot;\\&apos;&quot;)"/>'
     245                                                                                                        '<xsl:value-of select="replace($message,&quot;&apos;&quot;,&quot;&apos;&apos;&quot;)"/>'
    246246                                                                                                </xsl:when>
    247247                                                                                                <xsl:otherwise>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

    r2612 r2630  
    515515                var cdfDoc = this.cdf.getXML();
    516516               
    517                 this.profiles.loadProfiles(org.isocat.createSubCDFDocument(cdfDoc,"profiles",true));
     517                var profDoc = org.isocat.createSubCDFDocument(cdfDoc,"profiles",true);
     518                org.isocat.gui.DCEditor.log.info("profiles["+profDoc.getRecordIds().lenght+"]:"+profDoc);
     519                var profCnt = profDoc.getRecordIds();
     520                if (typeof(profCnt)=='undefined' || profCnt.length==0) {
     521                    this.setCheck("profiles","none");
     522                } else {
     523                    this.setCheck("profiles","ok");
     524                }
     525                this.profiles.loadProfiles(profDoc);
    518526
    519527                var cacheId = this.cacheId()+"-datanames";
     
    887895        DCEditor_prototype.profilesChanged = function() {
    888896                // callback from the ProfilesInput
     897                var profDoc = this.profiles.getProfiles();
     898                // update profile check
     899                var profCnt = profDoc.getRecordIds();
     900                if (typeof(profCnt)=='undefined' || profCnt.length==0) {
     901                    this.setCheck("profiles","none");
     902                } else {
     903                    this.setCheck("profiles","ok");
     904                }
    889905                // propagate changes to the ProfileValueDomainEditor
    890                 this.valueDomain.setProfiles(this.profiles.getProfiles(),this.valueDomain.hasValues());
     906                this.valueDomain.setProfiles(profDoc,this.valueDomain.hasValues());
    891907                // trigger changed
    892908                this.changed();
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/xml/dc.xml

    r2029 r2630  
    1616                    <isocat:changeDate/>
    1717                    <isocat:changeDescription xml:lang="en"/>
    18                 </isocat:change>
    19          -->
     18                </isocat:change>-->
    2019            </dcif:administrationRecord>
    2120        </dcif:administrationInformationSection>
    2221        <dcif:descriptionSection>
    23             <dcif:profile isocat:id="0">Private</dcif:profile>
     22            <!--<dcif:profile isocat:id="0">Private</dcif:profile>-->
    2423        </dcif:descriptionSection>
    2524    </dcif:dataCategory>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml

    r2511 r2630  
    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/SaveDC.xml</record>
    58         <record jsxid="2" type="string">components/DataCategoryViewer.xml</record>
    59         <record jsxid="3" type="string">components/Scope.xml</record>
    60         <record jsxid="4" type="string">jss/locale.xml</record>
    61         <record jsxid="5" type="string">components/Password.xml</record>
    62         <record jsxid="6" type="string">components/ShibLogin.xml</record>
    63         <record jsxid="7" type="string">components/Login.xml</record>
    64         <record jsxid="8" type="string">components/DataCategoryEditor.xml</record>
    65         <record jsxid="9" type="string">components/User.xml</record>
    66         <record jsxid="10" type="string">components/ExplorerView.xml</record>
    67         <record jsxid="11" type="string">components/DataCategoryBasket.xml</record>
    68         <record jsxid="12" type="string">components/DCSViewer.xml</record>
    69         <record jsxid="13" type="string">xml/member-roles.xml</record>
    70         <record jsxid="14" type="string">components/ChangeRequestEditor.xml</record>
     56        <record jsxid="0" type="string">xml/dc.xml</record>
     57        <record jsxid="1" type="string">components/DataCategoryEditor.xml</record>
     58        <record jsxid="2" type="string">components/ProfilesInput.xml</record>
     59        <record jsxid="3" type="string">components/appCanvas.xml</record>
     60        <record jsxid="4" type="string">components/SaveDC.xml</record>
     61        <record jsxid="5" type="string">components/DataCategoryViewer.xml</record>
     62        <record jsxid="6" type="string">components/Scope.xml</record>
     63        <record jsxid="7" type="string">jss/locale.xml</record>
     64        <record jsxid="8" type="string">components/Password.xml</record>
     65        <record jsxid="9" type="string">components/ShibLogin.xml</record>
     66        <record jsxid="10" type="string">components/Login.xml</record>
     67        <record jsxid="11" type="string">components/User.xml</record>
     68        <record jsxid="12" type="string">components/ExplorerView.xml</record>
     69        <record jsxid="13" type="string">components/DataCategoryBasket.xml</record>
     70        <record jsxid="14" type="string">components/DCSViewer.xml</record>
    7171      </record>
    7272      <record jsxid="openFiles" type="array">
Note: See TracChangeset for help on using the changeset viewer.