Project

General

Profile

« Previous | Next » 

Revision 737

Added by bojilova over 23 years ago

specified the correct param list about the "read" action changes

View differences:

lib/style/resultset.xsl
37 37
              href="@web-base-url@/default.css" />
38 38
        <script language="JavaScript">
39 39
          <![CDATA[
40
          function submitform(current_action,form_ref) {
41
              form_ref.action.value=current_action;
40
          function submitform(action,form_ref) {
41
              form_ref.action.value=action;
42
              form_ref.abstractpath.value="";
43
              form_ref.qformat.value="";
42 44
              form_ref.submit();
43 45
          }
46
          function submitform1(action, abstractpath, form_ref) {
47
              form_ref.action.value=action;
48
              form_ref.abstractpath.value=abstractpath;
49
              form_ref.qformat.value="";
50
              form_ref.submit();
51
          }
52
          function submitform2(action, qformat, form_ref) {
53
              form_ref.action.value=action;
54
              form_ref.qformat.value=qformat;
55
              form_ref.abstractpath.value="";
56
              form_ref.submit();
57
          }
44 58
          ]]>
45 59
        </script>
46 60
      </head>
......
138 152
                 <!-- abstractpath tells the servlet where the abstract is in 
139 153
                      the document.  The % sign is used because the path could 
140 154
                      be resource/literature or resource/dataset. -->
141
                 <input type="hidden" name="abstractpath" 
142
                        value="resource/%/abstract" />
155
                 <!-- specified down IN javascript:submitform1('read',abstractpath,docid) -->
156
                 <input type="hidden" name="abstractpath" />
157
                 <!-- specified down IN javascript:submitform2('read','zip',docid) -->
158
                 <input type="hidden" name="qformat" />
143 159
                 <input type="hidden" name="action" value="read"/>
144 160
                 <input type="hidden" name="docid">
145 161
                   <xsl:attribute name="value">
......
159 175
                   Dataset Information
160 176
                 </a><br />
161 177
                 <a>
162
                   <xsl:attribute name="href">javascript:submitform('getabstract',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
178
                   <xsl:attribute name="href">javascript:submitform1('read','resource/%/abstract',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
163 179
                   View Abstract
164 180
                 </a><br />
165 181
                 <a>
166
                   <xsl:attribute name="href">javascript:submitform('getdatadoc',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
182
                   <xsl:attribute name="href">javascript:submitform2('read','zip',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
167 183
                    Download Data and Metadata
168 184
                 </a><br />
169 185
               </form>

Also available in: Unified diff