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:

confirmData.tmpl
242 242
<a name="DataSetAbstract"></a>
243 243
<p><b><font size="4" color="#0000ff">DATA SET ABSTRACT</font></b><br>  [%abstract%]
244 244
</p>
245

  
245
 [% IF hasKeyword == 'true' %]
246 246
<hr>
247 247
<a name="KeywordInformation"></a>
248 248
<p><b><font size="4" color="#0000ff">KEYWORD INFORMATION</font></b> 
......
283 283
     [% cnt = cnt + 1 %]
284 284
     [% END %]
285 285
  </table>
286
[% END %]
287
  
286 288
<hr>
287 289
<a name="TemporalCoverageOfData"></a>
288 290
<p><b><font size="4" color="#0000ff">TEMPORAL COVERAGE OF DATA</font></b> 
......
499 501
  <input type="hidden" name="cfg" value="[% cfg %]">
500 502
  <input type="hidden" name="docid" value="[% docid %]">
501 503
  <input type="hidden" name="stage" value="confirmed">
504
  <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
502 505
  <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
503 506
  <input type="hidden" name="providerSurName" value="[%providerSurName%]">
504 507
  <input type="hidden" name="site" value="[%site%]">

Also available in: Unified diff