Project

General

Profile

« Previous | Next » 

Revision 3743

use contextURL parameter so that the "shortform" url for looking at documents actually works and pulls in the correct js and css files

View differences:

lib/style/common/fgdc/fgdc_1.xsl
7 7
    <xsl:param name="publicRead"/>
8 8
    <xsl:param name="message"/>
9 9
    
10
    <xsl:param name="contextURL"/>
11
	<xsl:param name="cgi-prefix"/>
12
    
10 13
    <xsl:template match="/metadata">
11 14
        <html>
12 15
            <head>
13
                <link rel="stylesheet" type="text/css" href="./style/skins/{$qformat}/{$qformat}.css" media="all"/>
14
                <script language="JavaScript" type="text/JavaScript" src="./style/skins/{$qformat}/{$qformat}.js"/>
15
                <script language="JavaScript" type="text/JavaScript" src="./style/common/branding.js"/>
16
                <link rel="stylesheet" type="text/css" href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" media="all"/>
17
                <script language="JavaScript" type="text/JavaScript" src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js"/>
18
                <script language="JavaScript" type="text/JavaScript" src="{$contextURL}/style/common/branding.js"/>
16 19
                <title>FGDC Identification and Metacat Data Package Information</title>
17 20
            </head>
18 21
            <body>
19 22
                <script language="JavaScript">
20
                    insertTemplateOpening();
23
                    insertTemplateOpening("<xsl:value-of select="$contextURL"/>");
21 24
                </script>
22 25
                <div class="centerContentBorder">
23 26
                    <div class="templatecontentareaclass">
......
27 30
                    </div>
28 31
                </div>
29 32
                <script language="JavaScript">
30
                    insertTemplateClosing();
33
                    insertTemplateClosing("<xsl:value-of select="$contextURL"/>");
31 34
                </script>
32 35
            </body>
33 36
        </html>
......
372 375
			<xsl:if test="not($sessionid = 'null')">
373 376
				<br/>
374 377
				<br/>
375
                <form method="post" action="./style/common/ClientViewHelper.jspx"
378
                <form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
376 379
                      enctype="multipart/form-data">
377 380
                    <input name="action" value="Update Data" type="hidden"/>
378 381
                    <input name="docid" type="hidden" value="{.}"/>
......
385 388
        </td>
386 389
        <!-- download -->
387 390
        <td class="secondCol" valign="bottom">
388
            <form method="get" action="./style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
391
            <form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
389 392
                <input name="action" value="Download" type="submit"/>
390 393
                <input name="docid" type="hidden" value="{.}"/>
391 394
                <input name="qformat" type="hidden" value="{$qformat}"/>
......
395 398
        <xsl:if test="not($sessionid = 'null')">
396 399
        	<!-- delete -->
397 400
        	<td class="secondCol" valign="bottom">
398
        		<form method="get" action="./style/common/ClientViewHelper.jspx"
401
        		<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
399 402
                      enctype="text/html">
400 403
                    <input name="action" value="Delete" type="submit"/>
401 404
                    <input name="docid" type="hidden" value="{.}"/>

Also available in: Unified diff