[metacat-cvs] metacat/lib/style/skins/esa esa.css header.html

Saurabh Garg sgarg at ecoinformatics.org
Mon Nov 28 14:38:05 PST 2005


sgarg       05/11/28 14:38:04

  Modified:    lib/style/skins/esa esa.css header.html
  Log:
  Fixed the bug in the link to view documents pending moderation. The links works now.
  
  Revision  Changes    Path
  1.12      +5 -3      metacat/lib/style/skins/esa/esa.css
  
  Index: esa.css
  ===================================================================
  RCS file: /cvs/metacat/lib/style/skins/esa/esa.css,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- esa.css	20 Oct 2005 21:01:24 -0000	1.11
  +++ esa.css	28 Nov 2005 22:38:04 -0000	1.12
  @@ -9,8 +9,8 @@
     *     Authors: Matt Jones
     *
     *    '$Author: sgarg $'
  -  *      '$Date: 2005/10/20 21:01:24 $'
  -  *  '$Revision: 1.11 $'
  +  *      '$Date: 2005/11/28 22:38:04 $'
  +  *  '$Revision: 1.12 $'
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
  @@ -346,7 +346,9 @@
         display:none;
     }
   
  -.show {
  +.showLink {
  +      cursor: pointer;
  +      cursor: hand;
         display:empty;
     }
   
  
  
  
  1.10      +8 -20     metacat/lib/style/skins/esa/header.html
  
  Index: header.html
  ===================================================================
  RCS file: /cvs/metacat/lib/style/skins/esa/header.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- header.html	17 Nov 2005 20:35:36 -0000	1.9
  +++ header.html	28 Nov 2005 22:38:04 -0000	1.10
  @@ -3,8 +3,8 @@
       Copyright: 2003 Regents of the University of California and the
                  National Center for Ecological Analysis and Synthesis
        '$Author: sgarg $'
  -       '$Date: 2005/11/17 20:35:36 $'
  -   '$Revision: 1.9 $'
  +       '$Date: 2005/11/28 22:38:04 $'
  +   '$Revision: 1.10 $'
   
      This program is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
  @@ -82,24 +82,12 @@
   				login_block.innerHTML="";
                           	if(response.indexOf("public") > 0){
   					login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=loginform' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogin\",\"\",\"ESAHeaderSlices/RollOvers/ESALoginR.gif\",1);'><img name='ESALogin' src='ESAHeaderSlices/ESALogin.gif' width='57' height='17' border='0' alt='Login'></a>";
  -                                	//var a = document.createElement('a');
  -                                	//a.href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=loginform";
  -                                	//var a_text = document.createTextNode('Login');
  -                                	//a.appendChild(a_text);
  -                                	//a.setAttribute("target","_top");
  -                                	//login_block.appendChild(a);
                           	} else {
   					login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=logout' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogout\",\"\",\"ESAHeaderSlices/RollOvers/ESALogoutR.gif\",1);'><img name='ESALogout' src='ESAHeaderSlices/ESALogout.gif' width='57' height='17' border='0' alt='Login'></a>";
  -                                	//var a = document.createElement('a');
  -                                	//a.href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=logout";
  -                                	//var a_text = document.createTextNode('Logout');
  -                                	//a.appendChild(a_text)
  -                                	//a.setAttribute("target","_top");
  -				
  -					if(response.indexOf("isModerator") > 0){
  -						document.getElementById("modLink").className="show";
  -					}
  -                                	//login_block.appendChild(a);
  +
  +					//if(response.indexOf("isModerator") > 0){
  +						document.getElementById("modLink").className="showLink";
  +					//}
   	                	}
                   	}
   		}
  @@ -153,12 +141,12 @@
     </tr>
   </table>
   <!--- TODO if user then have the link to view all the documents which have been inserted already. If not user then view all documents which have not been moderated yet -->
  -<form id="modSearch" name="modSearch" action="@servlet-path@" method="post">
  +<form id="modSearch" name="modSearch" action="@servlet-path@" method="post" target="_top">
          <input type="hidden" name="action" value="squery"/>
          <input type="hidden" name="qformat" value="esa"/>
          <input type="hidden" name="enableediting" value="true"/>
          <input type="hidden" name="query" value="<pathquery><querytitle>Moderator-Search</querytitle><returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype><returnfield>originator/individualName/surName</returnfield><returnfield>originator/individualName/givenName</returnfield><returnfield>creator/individualName/surName</returnfield><returnfield>creator/individualName/givenName</returnfield><returnfield>originator/organizationName</returnfield><returnfield>creator/organizationName</returnfield><returnfield>dataset/title</returnfield><returnfield>keyword</returnfield><querygroup operator='INTERSECT'><queryterm searchmode='not-contains' casesensitive='false'><value>public</value><pathexpr>dataset/access/allow/principal</pathexpr></queryterm></querygroup></pathquery>"/>
  -<p><a id="modLink" class="hide" href='javascript:document.getElementById("modSearch").submit();' target="_top">View Undocumented Documents</a></p>
  +<p><a id="modLink" class="hide" onClick="this.parentNode.parentNode.submit();">View documents pending moderation</a></p>
   </form>
   <script>
   MM_preloadImages('ESAHeaderSlices/ESAHome2_f2.gif','ESAHeaderSlices/RollOvers/ESAHomeR.gif','ESAHeaderSlices/RollOvers/ESARegistryR.gif','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif','ESAHeaderSlices/RollOvers/ESASearchR.gif','ESAHeaderSlices/RollOvers/ESALoginR.gif');
  
  
  


More information about the Metacat-cvs mailing list