#!/bin/csh
# modified September 1997, clh
#    look like 'newer' style options
#    add ability to download CSV and nd conversion to -9999.0
#
source build-opt-env

cd ${USETEMPDIR}

if ( "${SUBSELS}x" == "x" ) then
  set DISPFULL=${OBJECT}
  setenv ACTUALNOSUFF "${URLOBJ}.flat99"
else
  set DISPFULL="${OBJECT}(${DISPSS})"
  setenv ACTUALNOSUFF "${URLOBJ}.flat99?$SUBSELS"
endif

cat <<XXstuffXX
Content-type: text/html

<p>
<html><head><title>Other data listing formats</title></head>
<body>
<h1>Other data listing formats</h1>
<b>Current object is:  $DISPFULL</b></br>
<hr noshade>

<p>
<b>Hint</b>:  By holding down the Shift key and clicking on
 a link, you can download the data without displaying
 it on your screen.
<p>
<ul>
<li><font size="5"><a href="$ACTUALNOSUFF">Flat listing</a></font> 
<dl><dd> table with one column per variable, names on top line</dl>
<p>
<li><font size="5"><a href="/jg/listbrief$OBJECT?$SUBSELS">Data only listing</a></font>

<dl><dd> table with one column per variable, no variable names</dl>
<p>
<li><font size="5"><a href="/jg/listfnzm$OBJECT?$SUBSELS">CSV style listing</a></font>
<dl><dd> Identifying comments
    <dd> comma-separated values
    <dd> convert 'nd' to -9999.0</dl>
<p>
</ul>
<p>
<a href="/jg/otheropt$OBJEXT?$SUBSELS">Back to Main menu</a>
</body>
</html>
XXstuffXX

