Changeset 2927


Ignore:
Timestamp:
05/22/13 19:43:05 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-gi/interface/settings/builder.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/jss/locale.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/overlay.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DCSViewer.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCSViewer.js
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DataCategorySelectionViewer.js

  • added overlay to show the history of the DCs in the DCS
Location:
cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface
Files:
6 edited

Legend:

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

    r2029 r2927  
    7272        <strings jsxname="pane" jsxwidth="100%" jsxheight="100%"></strings>
    7373        <dynamics jsxborder="@Outset"></dynamics>
    74         <object type="jsx3.gui.Matrix">
    75           <variants jsxpagingmodel="3" jsxselectionmodel="2" jsxxmlbind="1" jsxxmlasync="0" jsxrowsperpanel="25"></variants>
    76           <strings jsxname="DataCategorySelectionView" jsxbodyborder="1px solid #dfdfef" jsxheaderborder="1px solid #dfdfef" jsxbgcolor="white" jsxsortpath="name" jsxsorttype="text" jsxsortdirection="ascending" jsxrenderingmodel="shallow" jsxicon="" jsxmenu="_jsx_1_rq_cm"></strings>
    77           <events jsxselect="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleSelect(strRECORDID);" jsxdrop="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleDrop(objSOURCE,strDRAGIDS);"></events>
    78           <xslparameters jsx_rowbg1="#ffffff" jsx_rowbg2="#efefff"></xslparameters>
    79           <object type="jsx3.gui.Matrix.Column">
    80             <variants jsxsort="0"></variants>
    81             <strings jsxwidth="0" jsxname="tree" jsxtext="" jsxpadding="2" jsxcellpadding="3" jsxpath="void" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    82             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
    83           </object>
    84           <object type="jsx3.gui.Matrix.Column">
    85             <variants jsxwidth="20" jsxsort="0" jsxresize="0"></variants>
    86             <strings jsxname="del" jsxpadding="3" jsxcellpadding="1" jsxvaluetemplate="@empty" jsxformathandler="function(objDiv, strCDFKey, objMatrix, objMatrixColumn, intRowNumber, objServer) { if(strCDFKey == &quot;jsxautorow&quot;) { objDiv.innerHTML = '&lt;div&gt;&amp;#160;&lt;/div&gt;'; } }" jsxpath="void"></strings>
    87             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxtip="action tooltip: remove DC"></dynamics>
    88             <object type="jsx3.gui.ImageButton">
    89               <variants jsxstate="0" jsxwidth="16" jsxheight="16" jsxenabled="1" jsxprefetch="1" jsxtype="0"></variants>
    90               <strings jsxname="imageButtonMask"></strings>
    91               <dynamics jsximage="action icon: remove DC" jsxtip="action tooltip: remove DC"></dynamics>
    92               <events jsxexecute="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleDelete(this.emGetSession().recordId);"></events>
     74        <object type="jsx3.gui.Block">
     75          <variants jsxoverflow="1"></variants>
     76          <strings jsxname="block" jsxwidth="100%" jsxheight="100%" jsxrelativeposition="1"></strings>
     77          <object type="jsx3.gui.Matrix">
     78            <variants jsxpagingmodel="3" jsxselectionmodel="2" jsxxmlbind="1" jsxxmlasync="0" jsxrowsperpanel="25"></variants>
     79            <strings jsxname="DataCategorySelectionView" jsxbodyborder="1px solid #dfdfef" jsxheaderborder="1px solid #dfdfef" jsxbgcolor="white" jsxsortpath="name" jsxsorttype="text" jsxsortdirection="ascending" jsxrenderingmodel="shallow" jsxicon="" jsxmenu="_jsx_1_9p_cm"></strings>
     80            <events jsxselect="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleSelect(strRECORDID);" jsxdrop="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleDrop(objSOURCE,strDRAGIDS);"></events>
     81            <xslparameters jsx_rowbg1="#ffffff" jsx_rowbg2="#efefff"></xslparameters>
     82            <object type="jsx3.gui.Matrix.Column">
     83              <variants jsxsort="0"></variants>
     84              <strings jsxwidth="0" jsxname="tree" jsxtext="" jsxpadding="2" jsxcellpadding="3" jsxpath="void" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     85              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
     86            </object>
     87            <object type="jsx3.gui.Matrix.Column">
     88              <variants jsxwidth="20" jsxsort="0" jsxresize="0"></variants>
     89              <strings jsxname="del" jsxpadding="3" jsxcellpadding="1" jsxvaluetemplate="@empty" jsxformathandler="function(objDiv, strCDFKey, objMatrix, objMatrixColumn, intRowNumber, objServer) { if(strCDFKey == &quot;jsxautorow&quot;) { objDiv.innerHTML = '&lt;div&gt;&amp;#160;&lt;/div&gt;'; } }" jsxpath="void"></strings>
     90              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxtip="action tooltip: remove DC"></dynamics>
     91              <object type="jsx3.gui.ImageButton">
     92                <variants jsxstate="0" jsxwidth="16" jsxheight="16" jsxenabled="1" jsxprefetch="1" jsxtype="0"></variants>
     93                <strings jsxname="imageButtonMask"></strings>
     94                <dynamics jsximage="action icon: remove DC" jsxtip="action tooltip: remove DC"></dynamics>
     95                <events jsxexecute="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleDelete(this.emGetSession().recordId);"></events>
     96              </object>
     97            </object>
     98            <object type="jsx3.gui.Matrix.Column">
     99              <variants jsxwidth="20" jsxsort="0" jsxresize="0"></variants>
     100              <strings jsxname="view" jsxpadding="3" jsxcellpadding="1" jsxvaluetemplate="@empty" jsxpath="void" jsxdisplay="none"></strings>
     101              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxtip="action tooltip: view DC"></dynamics>
     102              <object type="jsx3.gui.ImageButton">
     103                <variants jsxstate="0" jsxwidth="16" jsxheight="16" jsxenabled="1" jsxprefetch="1" jsxtype="0"></variants>
     104                <strings jsxname="imageButtonMask"></strings>
     105                <dynamics jsximage="action icon: view DC" jsxtip="action tooltip: view DC"></dynamics>
     106                <events jsxexecute="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleView(this.emGetSession().recordId);"></events>
     107              </object>
     108            </object>
     109            <object type="jsx3.gui.Matrix.Column">
     110              <variants></variants>
     111              <strings jsxname="vote" jsxwidth="100" jsxpadding="2" jsxcellpadding="3 0 0 4" jsxvaluetemplate="@empty" jsxformathandler="@lookup" jsxpath="vote" jsxdisplay="none"></strings>
     112              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
     113              <object type="jsx3.gui.Select">
     114                <variants jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
     115                <strings jsxname="selectMask" jsxxml="" jsxdisplay="none" jsxxmlurl="xml/vote.xml"></strings>
     116                <events jsxchange="" jsxselect="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleVote(this.emGetSession().recordId);"></events>
     117              </object>
     118            </object>
     119            <object type="jsx3.gui.Matrix.Column">
     120              <variants jsxwidth="75"></variants>
     121              <strings jsxname="votes" jsxtext="" jsxpadding="2" jsxcellpadding="3" jsxpath="votes" jsxtip="The number of accept votes for this Data Category out of the total votes (until now)." jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none" jsxdatatype="text" jsxcelltextalign="left"></strings>
     122              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     123            </object>
     124            <object type="jsx3.gui.Matrix.Column">
     125              <variants jsxwidth="50"></variants>
     126              <strings jsxname="rank" jsxtext="Rank" jsxpadding="2" jsxcellpadding="3" jsxpath="rank" jsxtip="The rank of the Data Category in a search result" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none" jsxdatatype="number" jsxcelltextalign="right"></strings>
     127              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     128            </object>
     129            <object type="jsx3.gui.Matrix.Column">
     130              <variants jsxwidth="50" jsxresize="1"></variants>
     131              <strings jsxname="id" jsxtext="#" jsxpadding="2" jsxcellpadding="2" jsxpath="id" jsxdatatype="number" jsxtextalign="left" jsxcelltextalign="right" jsxtip="The id of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     132              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     133            </object>
     134            <object type="jsx3.gui.Matrix.Column">
     135              <variants jsxwidth="122"></variants>
     136              <strings jsxname="identifier" jsxtext="Identifier" jsxpadding="2" jsxcellpadding="3" jsxpath="identifier" jsxtip="The identifier of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none"></strings>
     137              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     138            </object>
     139            <object type="jsx3.gui.Matrix.Column">
     140              <variants jsxwidth="200"></variants>
     141              <strings jsxname="name" jsxtext="Name" jsxpadding="2" jsxcellpadding="3" jsxpath="name" jsxtip="The name of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     142              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     143            </object>
     144            <object type="jsx3.gui.Matrix.Column">
     145              <variants jsxwidth="50"></variants>
     146              <strings jsxname="version" jsxtext="Version" jsxpadding="2" jsxcellpadding="3" jsxpath="version" jsxtip="The version of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     147              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     148            </object>
     149            <object type="jsx3.gui.Matrix.Column">
     150              <variants></variants>
     151              <strings jsxname="administration_status" jsxwidth="*" jsxtext="Administration status" jsxpadding="2" jsxcellpadding="3" jsxpath="administration_status" jsxtip="The administration status of the Data Category" jsxvaluetemplate="&lt;xsl:template xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;&#xA;    &lt;xsl:param name=&quot;jsx_row_number&quot;/&gt;&#xA; &lt;xsl:variable name=&quot;val&quot; select=&quot;{0}&quot;/&gt;&#xA;  &lt;xsl:choose&gt;&#xA;         &lt;xsl:when test=&quot;$val='private' or $val='accepted'&quot;&gt;&#xA;                        &lt;span style=&quot;color:green;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;              &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='rejected-TDG' or $val='rejected-DCRB' or $val='deleted'&quot;&gt;&#xA;                    &lt;span style=&quot;color:red;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;                &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='external'&quot;&gt;&#xA;                  &lt;span&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:when&gt;&#xA;  &lt;xsl:otherwise&gt;&#xA;                      &lt;span style=&quot;color:orange;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:otherwise&gt;&#xA;     &lt;/xsl:choose&gt;&#xA;&lt;/xsl:template&gt;" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     152              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     153            </object>
     154            <object type="jsx3.gui.Matrix.Column">
     155              <variants></variants>
     156              <strings jsxname="registration_status" jsxwidth="*" jsxtext="Registration status" jsxpadding="2" jsxcellpadding="3" jsxpath="registration_status" jsxtip="The registration status of the Data Category" jsxvaluetemplate="&lt;xsl:template xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;&#xA;    &lt;xsl:param name=&quot;jsx_row_number&quot;/&gt;&#xA; &lt;xsl:variable name=&quot;val&quot; select=&quot;{0}&quot;/&gt;&#xA;  &lt;xsl:choose&gt;&#xA;         &lt;xsl:when test=&quot;$val='candidate'&quot;&gt;&#xA;                 &lt;span style=&quot;color:orange;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='standard' or $val='private'&quot;&gt;&#xA;                        &lt;span style=&quot;color:green;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;              &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='deprecated' or $val='superseded'&quot;&gt;&#xA;                   &lt;span style=&quot;color:red;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;                &lt;/xsl:when&gt;&#xA;          &lt;xsl:otherwise&gt;&#xA;                      &lt;xsl:value-of select=&quot;$val&quot;/&gt;&#xA;              &lt;/xsl:otherwise&gt;&#xA;     &lt;/xsl:choose&gt;&#xA;&lt;/xsl:template&gt;" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     157              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     158            </object>
     159            <object type="jsx3.gui.Matrix.Column">
     160              <variants jsxwidth="40"></variants>
     161              <strings jsxname="check" jsxtext="Check" jsxvaluetemplate="@image" jsxpadding="3" jsxcellpadding="1" jsxpath="check_img" jsxtip="The result of the latest check of the Data Category specification" jsxtextalign="center" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     162              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
     163            </object>
     164            <object type="jsx3.gui.Matrix.Column">
     165              <variants></variants>
     166              <strings jsxname="type" jsxwidth="*" jsxtext="Type" jsxpadding="2" jsxcellpadding="3" jsxpath="type" jsxtip="The type of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     167              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     168            </object>
     169            <object type="jsx3.gui.Matrix.Column">
     170              <variants></variants>
     171              <strings jsxname="owner" jsxwidth="*" jsxtext="Owned by" jsxpadding="2" jsxcellpadding="3" jsxpath="owner" jsxtip="The owner of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     172              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     173            </object>
     174            <object type="jsx3.gui.Matrix.Column">
     175              <variants></variants>
     176              <strings jsxname="scope" jsxwidth="*" jsxtext="Scope" jsxpadding="2" jsxcellpadding="3" jsxpath="scope" jsxtip="The scope of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
     177              <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    93178            </object>
    94179          </object>
    95           <object type="jsx3.gui.Matrix.Column">
    96             <variants jsxwidth="20" jsxsort="0" jsxresize="0"></variants>
    97             <strings jsxname="view" jsxpadding="3" jsxcellpadding="1" jsxvaluetemplate="@empty" jsxpath="void" jsxdisplay="none"></strings>
    98             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxtip="action tooltip: view DC"></dynamics>
    99             <object type="jsx3.gui.ImageButton">
    100               <variants jsxstate="0" jsxwidth="16" jsxheight="16" jsxenabled="1" jsxprefetch="1" jsxtype="0"></variants>
    101               <strings jsxname="imageButtonMask"></strings>
    102               <dynamics jsximage="action icon: view DC" jsxtip="action tooltip: view DC"></dynamics>
    103               <events jsxexecute="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleView(this.emGetSession().recordId);"></events>
    104             </object>
     180        </object>
     181        <object type="jsx3.gui.Block">
     182          <variants jsxrelativeposition="0" jsxoverflow="3" jsxzindex="9" jsxleft="0" jsxtop="0"></variants>
     183          <strings jsxheight="100%" jsxwidth="100%" jsxname="overlay" jsxvisibility="" jsxdisplay=""></strings>
     184          <dynamics jsxbgcolor="@Transparent BG" jsxborder="@No jsxborder"></dynamics>
     185          <object type="jsx3.gui.Block">
     186            <variants jsxrelativeposition="0" jsxoverflow="2" jsxzindex="99" jsxleft="0" jsxtop="0" jsxwidth="609"></variants>
     187            <strings jsxname="ebg" jsxheight="0" jsxdisplay="" jsxtextalign="center" jsxstyleoverride="opacity:0.8;filter:alpha(opacity=80);" jsxvisibility="" jsxbgcolor="white"></strings>
    105188          </object>
    106           <object type="jsx3.gui.Matrix.Column">
    107             <variants></variants>
    108             <strings jsxname="vote" jsxwidth="100" jsxpadding="2" jsxcellpadding="3 0 0 4" jsxvaluetemplate="@empty" jsxformathandler="@lookup" jsxpath="vote" jsxdisplay="none"></strings>
    109             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
    110             <object type="jsx3.gui.Select">
    111               <variants jsxrelativeposition="0" jsxleft="0" jsxtop="0"></variants>
    112               <strings jsxname="selectMask" jsxxml="" jsxdisplay="none" jsxxmlurl="xml/vote.xml"></strings>
    113               <events jsxchange="" jsxselect="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.handleVote(this.emGetSession().recordId);"></events>
    114             </object>
    115           </object>
    116           <object type="jsx3.gui.Matrix.Column">
    117             <variants jsxwidth="75"></variants>
    118             <strings jsxname="votes" jsxtext="" jsxpadding="2" jsxcellpadding="3" jsxpath="votes" jsxtip="The number of accept votes for this Data Category out of the total votes (until now)." jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none" jsxdatatype="text" jsxcelltextalign="left"></strings>
    119             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    120           </object>
    121           <object type="jsx3.gui.Matrix.Column">
    122             <variants jsxwidth="50"></variants>
    123             <strings jsxname="rank" jsxtext="Rank" jsxpadding="2" jsxcellpadding="3" jsxpath="rank" jsxtip="The rank of the Data Category in a search result" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none" jsxdatatype="number" jsxcelltextalign="right"></strings>
    124             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    125           </object>
    126           <object type="jsx3.gui.Matrix.Column">
    127             <variants jsxwidth="50" jsxresize="1"></variants>
    128             <strings jsxname="id" jsxtext="#" jsxpadding="2" jsxcellpadding="2" jsxpath="id" jsxdatatype="number" jsxtextalign="left" jsxcelltextalign="right" jsxtip="The id of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    129             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    130           </object>
    131           <object type="jsx3.gui.Matrix.Column">
    132             <variants jsxwidth="122"></variants>
    133             <strings jsxname="identifier" jsxtext="Identifier" jsxpadding="2" jsxcellpadding="3" jsxpath="identifier" jsxtip="The identifier of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow" jsxdisplay="none"></strings>
    134             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    135           </object>
    136           <object type="jsx3.gui.Matrix.Column">
    137             <variants jsxwidth="200"></variants>
    138             <strings jsxname="name" jsxtext="Name" jsxpadding="2" jsxcellpadding="3" jsxpath="name" jsxtip="The name of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    139             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    140           </object>
    141           <object type="jsx3.gui.Matrix.Column">
    142             <variants jsxwidth="50"></variants>
    143             <strings jsxname="version" jsxtext="Version" jsxpadding="2" jsxcellpadding="3" jsxpath="version" jsxtip="The version of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    144             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    145           </object>
    146           <object type="jsx3.gui.Matrix.Column">
    147             <variants></variants>
    148             <strings jsxname="administration_status" jsxwidth="*" jsxtext="Administration status" jsxpadding="2" jsxcellpadding="3" jsxpath="administration_status" jsxtip="The administration status of the Data Category" jsxvaluetemplate="&lt;xsl:template xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;&#xA;      &lt;xsl:param name=&quot;jsx_row_number&quot;/&gt;&#xA; &lt;xsl:variable name=&quot;val&quot; select=&quot;{0}&quot;/&gt;&#xA;  &lt;xsl:choose&gt;&#xA;         &lt;xsl:when test=&quot;$val='private' or $val='accepted'&quot;&gt;&#xA;                        &lt;span style=&quot;color:green;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;              &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='rejected-TDG' or $val='rejected-DCRB' or $val='deleted'&quot;&gt;&#xA;                    &lt;span style=&quot;color:red;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;                &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='external'&quot;&gt;&#xA;                  &lt;span&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:when&gt;&#xA;  &lt;xsl:otherwise&gt;&#xA;                      &lt;span style=&quot;color:orange;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:otherwise&gt;&#xA;     &lt;/xsl:choose&gt;&#xA;&lt;/xsl:template&gt;" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    149             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    150           </object>
    151           <object type="jsx3.gui.Matrix.Column">
    152             <variants></variants>
    153             <strings jsxname="registration_status" jsxwidth="*" jsxtext="Registration status" jsxpadding="2" jsxcellpadding="3" jsxpath="registration_status" jsxtip="The registration status of the Data Category" jsxvaluetemplate="&lt;xsl:template xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;&#xA;      &lt;xsl:param name=&quot;jsx_row_number&quot;/&gt;&#xA; &lt;xsl:variable name=&quot;val&quot; select=&quot;{0}&quot;/&gt;&#xA;  &lt;xsl:choose&gt;&#xA;         &lt;xsl:when test=&quot;$val='candidate'&quot;&gt;&#xA;                 &lt;span style=&quot;color:orange;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;             &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='standard' or $val='private'&quot;&gt;&#xA;                        &lt;span style=&quot;color:green;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;              &lt;/xsl:when&gt;&#xA;          &lt;xsl:when test=&quot;$val='deprecated' or $val='superseded'&quot;&gt;&#xA;                   &lt;span style=&quot;color:red;&quot;&gt;&lt;xsl:value-of select=&quot;$val&quot;/&gt;&lt;/span&gt;&#xA;                &lt;/xsl:when&gt;&#xA;          &lt;xsl:otherwise&gt;&#xA;                      &lt;xsl:value-of select=&quot;$val&quot;/&gt;&#xA;              &lt;/xsl:otherwise&gt;&#xA;     &lt;/xsl:choose&gt;&#xA;&lt;/xsl:template&gt;" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    154             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    155           </object>
    156           <object type="jsx3.gui.Matrix.Column">
    157             <variants jsxwidth="40"></variants>
    158             <strings jsxname="check" jsxtext="Check" jsxvaluetemplate="@image" jsxpadding="3" jsxcellpadding="1" jsxpath="check_img" jsxtip="The result of the latest check of the Data Category specification" jsxtextalign="center" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    159             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled"></dynamics>
    160           </object>
    161           <object type="jsx3.gui.Matrix.Column">
    162             <variants></variants>
    163             <strings jsxname="type" jsxwidth="*" jsxtext="Type" jsxpadding="2" jsxcellpadding="3" jsxpath="type" jsxtip="The type of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    164             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    165           </object>
    166           <object type="jsx3.gui.Matrix.Column">
    167             <variants></variants>
    168             <strings jsxname="owner" jsxwidth="*" jsxtext="Owned by" jsxpadding="2" jsxcellpadding="3" jsxpath="owner" jsxtip="The owner of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    169             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
    170           </object>
    171           <object type="jsx3.gui.Matrix.Column">
    172             <variants></variants>
    173             <strings jsxname="scope" jsxwidth="*" jsxtext="Scope" jsxpadding="2" jsxcellpadding="3" jsxpath="scope" jsxtip="The scope of the Data Category" jsxformathandler="this.getAncestorOfName(&quot;DCSViewer&quot;).controller.formatRow"></strings>
    174             <dynamics jsxborder="@Outset" jsxbg="@Bevel TopDown" jsxbgcolor="@Solid Disabled" jsxcellcursor="@Hand"></dynamics>
     189          <object type="jsx3.gui.Block">
     190            <variants jsxoverflow="1" jsxrelativeposition="0" jsxzindex="999" jsxleft="0" jsxtop="0"></variants>
     191            <strings jsxheight="100%" jsxname="main" jsxdisplay="" jsxwidth="100%" jsxtext="" jsxvisibility=""></strings>
     192            <dynamics jsxborder="@No jsxborder" jsxbgcolor="@Transparent BG"></dynamics>
    175193          </object>
    176194        </object>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/overlay.xml

    r2029 r2927  
    1 <serialization jsxversion="3.8" xmlns="urn:tibco.com/v3.0">
     1<serialization jsxversion="3.9" xmlns="urn:tibco.com/v3.0">
    22  <object type="jsx3.gui.Block">
    33    <variants jsxrelativeposition="0" jsxoverflow="3" jsxzindex="9" jsxleft="0" jsxtop="0"></variants>
     
    66    <object type="jsx3.gui.Block">
    77      <variants jsxrelativeposition="0" jsxoverflow="2" jsxzindex="99" jsxleft="0" jsxtop="0" jsxwidth="609"></variants>
    8       <strings jsxname="ebg" jsxheight="0" jsxdisplay="" jsxtextalign="center" jsxstyleoverride="opacity:0.8;filter:alpha(opacity=80);" jsxvisibility=""></strings>
    9       <dynamics jsxbgcolor="@Solid Disabled"></dynamics>
     8      <strings jsxname="ebg" jsxheight="0" jsxdisplay="" jsxtextalign="center" jsxstyleoverride="opacity:0.8;filter:alpha(opacity=80);" jsxvisibility="" jsxbgcolor="white"></strings>
    109    </object>
    1110    <object type="jsx3.gui.Block">
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCSViewer.js

    r2029 r2927  
    138138         */
    139139        DCSViewer_prototype._reload;
     140       
     141        /**
     142     * The overlay
     143     */
     144    DCSViewer_prototype.overlay;
    140145       
    141146        /**
     
    177182                this.genericToolBar = this.view.getDescendantOfName("genericToolBar");
    178183                org.isocat.gui.DCSViewer.log.info("- specific toolbar["+this.genericToolBar+"]");
    179                
     184        this.overlay = this.view.getDescendantOfName("overlay");
     185        org.isocat.gui.DCSViewer.log.info("- overlay[" + this.overlay + "]");
     186
    180187                this.specificTools = 0;
    181188                this.genericTools = 2;
     
    432439               
    433440                this.dcs = dcs;
     441               
     442                // hide the overlay
     443        this.showOverlay(false);
    434444
    435445                if (reload) {
     
    647657        };
    648658       
     659        // handle an overlay
     660       
     661        DCSViewer_prototype.showOverlay = function (show, button, what) {
     662        if (typeof (this.overlay) == 'undefined') {
     663            return; // overlay is (still) unknown
     664        }
     665        if (typeof (this.overlay.getRendered()) == 'undefined') {
     666            return; // overlay has not yet been rendered
     667        }
     668        var main = this.overlay.getChild("main");
     669        var ebg = this.overlay.getChild("ebg");
     670        if (show) {
     671            if (button != null) {
     672                button.setState(jsx3.gui.ToolbarButton.STATEOFF, true);
     673                org.isocat.gui.DCSViewer.log.info("button.state=" + button.getState());
     674            }
     675           
     676            if (this.overlay.getDisplay() != jsx3.gui.Block.DISPLAYBLOCK) {
     677                this.overlay.setDisplay(jsx3.gui.Block.DISPLAYBLOCK, true);
     678            }
     679           
     680            main.setText("loading ...", true);
     681           
     682            this.loadOverlay(what);
     683           
     684            var d = this.viewer.getAbsolutePosition();
     685            var w = d.W;
     686            var h = d.H;
     687           
     688            ebg.setHeight(0, true);
     689            ebg.setWidth(w, true);
     690           
     691            main.setHeight(0, true);
     692            main.setWidth(w, true);
     693           
     694            var transition = com.bwalsh.gi.gui.Transition.Resize(w, h, ebg);
     695            transition.run();
     696           
     697            var transition = com.bwalsh.gi.gui.Transition.Resize(w, h, main);
     698            transition.run();
     699           
     700            org.isocat.gui.DCSViewer.log.info("show overlay[width=" + w + ",height=" + h + "]");
     701        } else {
     702            var d = ebg.getAbsolutePosition();
     703            var w = d.W;
     704            var h = 0;
     705           
     706            if (d.H > 0) {
     707                //main.setText("");
     708                var overl = this.overlay;
     709               
     710                var transition = com.bwalsh.gi.gui.Transition.Resize(w, h, main);
     711                transition.run();
     712               
     713                transition = com.bwalsh.gi.gui.Transition.Resize(w, h, ebg);
     714                transition.setLastCallback(
     715                function () {
     716                    if (overl.getDisplay() != jsx3.gui.Block.DISPLAYNONE) {
     717                        overl.setDisplay(jsx3.gui.Block.DISPLAYNONE, true);
     718                    }
     719                });
     720                transition.run();
     721            } else {
     722                main.setText("");
     723                if (this.overlay.getDisplay() != jsx3.gui.Block.DISPLAYNONE) {
     724                    this.overlay.setDisplay(jsx3.gui.Block.DISPLAYNONE, true);
     725                }
     726            }
     727           
     728            if (button != null) {
     729                button.setState(jsx3.gui.ToolbarButton.STATEON, true);
     730                org.isocat.gui.DCSViewer.log.info("button.state=" + button.getState() + "]");
     731            }
     732        }
     733        return false;// we managed the toggle, cancel the event to prevent it from toggling again
     734    }
     735   
     736    DCSViewer_prototype.loadOverlay = function (what) {
     737        // load the DCS overlay content
     738        var id = 42;
     739        if (this.dcs != null) {
     740            id = this.dcs.id();
     741        }
     742       
     743        var uri = "http://isocat:8080/isocat/rest/"+this.dcs.type()+"/" + id + "/" + what + ".html";
     744        org.isocat.gui.DCSViewer.log.info("loading uri[" + uri + "]");
     745       
     746        var req = new jsx3.net.Request(new Date().getTime());
     747        req.open("GET", uri, true);
     748        req.subscribe(jsx3.net.Request.EVENT_ON_RESPONSE, this, this.loadedOverlay);
     749        req.subscribe(jsx3.net.Request.EVENT_ON_TIMEOUT, this, this.failedOverlay);
     750       
     751        req.send();
     752    };
     753   
     754    DCSViewer_prototype.loadedOverlay = function (objEvent) {
     755        var req = objEvent.target;
     756        var doc = req.getResponseXML();
     757       
     758        var div = doc.selectSingleNode("//div[@class='main']");
     759       
     760        this.overlay.getChild("main").setText(div.toString(), true);
     761       
     762        this.overlay.getRendered().scrollTop = 0;
     763        this.overlay.getRendered().scrollLeft = 0;
     764    };
     765   
     766    DCSViewer_prototype.failedOverlay = function (objEvent) {
     767        // TODO: what should we do?
     768    };
     769       
    649770        // set the window to place the title in the caption bar
    650771        DCSViewer_prototype.setWindow = function(window) {
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DataCategorySelectionViewer.js

    r2029 r2927  
    6161         */
    6262        DataCategorySelectionViewer_prototype.dcs;
    63        
     63               
    6464        /**
    6565         * Constructor
     
    9898                this.printButton.subscribe(jsx3.gui.Interactive.EXECUTE,this,this.printDCS);
    9999                this.viewer.addSpecificButton(this.printButton);
     100               
     101                this.historyButton = new jsx3.gui.ToolbarButton();
     102                this.historyButton.setType(jsx3.gui.ToolbarButton.TYPECHECK);
     103                //this.historyButton.setState(jsx3.gui.ToolbarButton.STATEON, true);
     104                org.isocat.gui.DataCategorySelectionViewer.log.info("historyButton.state="+this.historyButton.getState());
     105                this.historyButton.setDivider(jsx3.Boolean.TRUE);
     106                this.historyButton.setDynamicProperty("jsxtext","action: history DCS");
     107                this.historyButton.setDynamicProperty("jsximage", "action icon: history DCS");
     108                this.historyButton.setDynamicProperty("jsxtip", "action tooltip: history DCS");
     109                this.historyButton.subscribe(jsx3.gui.Interactive.EXECUTE,this,this.historyDCS);
     110                this.viewer.addSpecificButton(this.historyButton);
    100111               
    101112                this.editButton = new jsx3.gui.ToolbarButton();
     
    194205                this.submitButton.setEnabled(jsx3.gui.Form.STATEDISABLED,true);
    195206                this.delButton.setEnabled(jsx3.gui.Form.STATEDISABLED,true);
     207                this.historyButton.setEnabled(jsx3.gui.Form.STATEDISABLED,true);
    196208               
    197209                // actually load the DCS
     
    216228                } else {
    217229                        this.editButton.setEnabled(jsx3.gui.Form.STATEDISABLED,true);
     230                }
     231               
     232                // enable history for DCSs
     233                if (this.dcs.type() == 'dcs') {
     234                    this.historyButton.setEnabled(jsx3.gui.Form.STATEENABLED,true);
     235                } else {
     236                    this.historyButton.setEnabled(jsx3.gui.Form.STATEDISABLED,true);
    218237                }
    219238               
     
    361380                }
    362381        };
    363                
     382       
     383        DataCategorySelectionViewer_prototype.historyDCS = function() {
     384           this.viewer.showOverlay(this.historyButton.getState()!=jsx3.gui.ToolbarButton.STATEON,this.historyButton,"history");
     385        };
     386                       
    364387        DataCategorySelectionViewer_prototype.detachDCS = function () {
    365388                this.view.getAncestorOfName("view").getParent().controller.detachDCS(this.view);
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/jss/locale.xml

    r2288 r2927  
    193193  <record jsxid="action icon: like DC" type="jsximage" jsxtext="http://isocat:8080/famfamfam/silk/icons/award_star_add.png"></record>
    194194  <record jsxid="action tooltip: like DC" jsxtext="Recommend this Data Category" type="jsxtip"></record>
     195  <record jsxid="action: history DCS" jsxtext="History" type="jsxtext"/>
     196  <record jsxid="action tooltip: history DCS" jsxtext="View the change history of the Data Categories in this Data Category Selection." type="jsxtip"/>
     197  <record jsxid="action icon: history DCS" jsxtext="http://isocat:8080/famfamfam/silk/icons/calendar.png" type="jsximage"/>
    195198</data>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml

    r2656 r2927  
    5454    <record jsxid="JSXAPPS/ISOcat" type="map">
    5555      <record jsxid="recentFiles" type="array">
    56         <record jsxid="0" type="string">components/DataCategoryEditor.xml</record>
    57         <record jsxid="1" type="string">components/appCanvas.xml</record>
    58         <record jsxid="2" type="string">components/ProfilesInput.xml</record>
    59         <record jsxid="3" type="string">xml/dc.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>
     56        <record jsxid="0" type="string">components/appCanvas.xml</record>
     57        <record jsxid="1" type="string">components/DataCategoryViewer.xml</record>
     58        <record jsxid="2" type="string">components/DCSViewer.xml</record>
     59        <record jsxid="3" type="string">components/DataCategorySelectionViewer.xml</record>
     60        <record jsxid="4" type="string">components/DataCategoryEditor.xml</record>
     61        <record jsxid="5" type="string">components/ProfilesInput.xml</record>
     62        <record jsxid="6" type="string">xml/dc.xml</record>
     63        <record jsxid="7" type="string">components/SaveDC.xml</record>
     64        <record jsxid="8" type="string">components/Scope.xml</record>
     65        <record jsxid="9" type="string">jss/locale.xml</record>
     66        <record jsxid="10" type="string">components/Password.xml</record>
     67        <record jsxid="11" type="string">components/ShibLogin.xml</record>
     68        <record jsxid="12" type="string">components/Login.xml</record>
     69        <record jsxid="13" type="string">components/User.xml</record>
     70        <record jsxid="14" type="string">components/ExplorerView.xml</record>
    7171      </record>
    7272      <record jsxid="openFiles" type="array">
     
    110110  </record>
    111111  <record jsxid="apihelp" type="map">
    112     <record jsxid="class" type="string">jsx3.gui.Matrix</record>
     112    <record jsxid="class" type="string">jsx3.gui.ToolbarButton</record>
    113113    <record jsxid="member" type="string">_summary</record>
    114114    <record jsxid="aswindow" type="boolean">false</record>
Note: See TracChangeset for help on using the changeset viewer.