Project

General

Profile

« Previous | Next » 

Revision 3964

use the docid from the metadata rather than the parameter when operating on the metadata document (in cases when the docid w/o revision is not given).
see bug #3389

View differences:

lib/style/common/fgdc/fgdc-root.xsl
301 301
                   <input name="action" value="Update Metadata" type="hidden"/>
302 302
                   <input name="docid" type="hidden" value="{.}"/>
303 303
                   <input name="qformat" type="hidden" value="{$qformat}"/>
304
                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
304
                   <input name="metadataDocId" type="hidden" value="{.}"/>
305 305
                   <input name="updateFile" type="file"/>
306 306
                   <input name="submit" value="Update" type="submit"/>
307 307
               </form>
......
314 314
               <input name="action" value="Download" type="submit"/>
315 315
               <input name="docid" type="hidden" value="{.}"/>
316 316
               <input name="qformat" type="hidden" value="{$qformat}"/>
317
               <input name="metadataDocId" type="hidden" value="{$docid}"/>
317
               <input name="metadataDocId" type="hidden" value="{.}"/>
318 318
           </form>
319 319
       </td>
320 320
       
......
326 326
                   <input name="action" value="Delete" type="submit"/>
327 327
                   <input name="docid" type="hidden" value="{.}"/>
328 328
                   <input name="qformat" type="hidden" value="{$qformat}"/>
329
                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
329
                   <input name="metadataDocId" type="hidden" value="{.}"/>
330 330
               </form>
331 331
           </td>
332 332
           <!-- set access -->
......
343 343
                   </xsl:choose>
344 344
                   <input name="docid" type="hidden" value="{.}"/>
345 345
                   <input name="qformat" type="hidden" value="{$qformat}"/>
346
                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
346
                   <input name="metadataDocId" type="hidden" value="{.}"/>
347 347
                   <input name="contentStandard" type="hidden" value="FGDC"/>
348 348
			</form>
349 349
		</td>

Also available in: Unified diff