Project

General

Profile

Revision 2138

Added by sgarg over 16 years ago

Made changes to control whether a skin wants to use keywords or not. Keywords probably will be used by all skins alsways. But similar changes can be made for Geographic Coverage or Temporal COverage to control whether a particular section of the insert data template needs to be shown or not. This can be controlled from .cfg file. For example, in nceas.cfg is you define hasKeyword = false, none of the templates will show the keyword part. (Unless, you are using NCEAS skin and you try to modify a document which already has keywords.)

View differences:

entryForm.tmpl
258 258
      <a href="mailto:[% recipient %]"><i>[% recipient %]</i></a>.      
259 259
      </p>
260 260
      [% ELSE %]
261
      <p>Use this page to edit the data set description that you submitted earlier to the registry.<br>The ID of this data set is: <b>[% docid %]</b></p>
261
      <p>Use this page to edit the data set description that you submitted earlier to the registry.<br>The ID of this data set is: <b><a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a></b></p>
262 262
      <p>&nbsp;</p>
263 263
      <p>Please have a look at the 
264 264
      <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
......
284 284
  <input type="hidden" name="cfg" value="[% cfg %]">
285 285
  <input type="hidden" name="docid" value="[% docid %]">
286 286
  <input type="hidden" name="stage" value="insert">
287
  <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
287 288
  <p align="left">
288 289
      <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation" target="guide">BASIC INFORMATION </a>
289 290
  </p>
......
749 750
      </td>
750 751
    </tr>
751 752
  </table>
753
  [% IF hasKeyword == 'true' %]
752 754
  <p align="left"><font size="4" color="0000ff"><b><font size="-1">
753 755
       <a 
754 756
        href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation"
......
822 824
            </td>
823 825
        </tr>
824 826
  </table>
827
  [% END %]
825 828
  <br>
826 829
  <p align="left"><font size="4" color="0000ff"><b><font size="-1">
827 830
  <a

Also available in: Unified diff