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:

genericResponse.tmpl
6 6
            <p>Your entry has been [% function  %].  Thank you.</p>
7 7
        [%ELSE%]
8 8
	    <p>Your entry has been [% function  %].  Thank you.</p>
9
            <p>You can the see the entry by clicking the Search button above. 
9
            <p>You can the see the entry by clicking 
10
	    <a href="@servlet-path@?action=read&qformat=[% cfg %]&docid=[% docid %]">here</a> or the Search button above. 
10 11
 <!--       <p>The entry will be reviewed by the [% orgabbrev %] Data Registry
11 12
            Manager and then will be added to the registry. You
12 13
            should expect to see the entry within a few days.</p> -->
......
48 49
	  <input type="hidden" name="docid" value="[% docid %]">
49 50
  <input type="hidden" name="stage" value="confirmed">
50 51
  <input type="hidden" name="dataWrong" value="No, go back to editing">
52
  <input type="hidden" name="hasKeyword" value="[% hasKeyword %]">
51 53
  <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
52 54
  <input type="hidden" name="providerSurName" value="[%providerSurName%]">
53 55
  <input type="hidden" name="site" value="[%site%]">

Also available in: Unified diff