121 lines
3.7 KiB
Cheetah
121 lines
3.7 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Cavepedia</title>
|
|
<link rel="stylesheet" href="/static/cavepedia.css">
|
|
</head>
|
|
<body>
|
|
<h1>Welcome to Cavepedia</h1>
|
|
<form action="/search" method="GET">
|
|
<input type="text" id="search" onfocus="this.setSelectionRange(1000,1001);" placeholder="Search..." name="term" value="{{.Placeholder}}">
|
|
<br>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
|
|
{{if .ErrorMsg}}
|
|
<h3>{{.ErrorMsg}}</h3>
|
|
{{end}}
|
|
|
|
<div id="howto">
|
|
<h2>How to Search</h2>
|
|
<p>Data is organized by <strong>group</strong>, then by <strong>category</strong>:</p>
|
|
<ul>
|
|
<li>nss</li>
|
|
<ul>
|
|
<li>compasstape</li>
|
|
<li>nylonhighway</li>
|
|
<li>speleonics</li>
|
|
</ul>
|
|
<li>var</li>
|
|
<ul>
|
|
<li>cov (caves of virginia)</li>
|
|
<li>fyi</li>
|
|
<li>regionrecord</li>
|
|
</ul>
|
|
<li>vpi</li>
|
|
<ul>
|
|
<li>elvisgrotto (elvisgrotto newsletter)</li>
|
|
<li>grapevine</li>
|
|
<li>signout</li>
|
|
<li>sivtac (sivtac newsletters)</li>
|
|
<li>trog</li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<h3>Examples</h3>
|
|
<ul>
|
|
<li>Tip: Multiple different searches with simple queries work better than a single complicated query</li>
|
|
<li>Bolt hanger stats</li>
|
|
<ul>
|
|
<li><code>+category:nylonhighway +bolt +hanger +stats</code> (This actually returns no results, but is a good example of being too strict).</li>
|
|
<li><code>+category:nylonhighway +hanger +strength +test</code></li>
|
|
</ul>
|
|
<li>Suunto Repair</li>
|
|
<ul>
|
|
<li><code>+category:compasstape +suunto +repair</code></li>
|
|
</ul>
|
|
<li>How to use a QAS</li>
|
|
<ul>
|
|
<li><code>+category:nylonhighway +QAS</code></li>
|
|
</ul>
|
|
<li>Newberry trips Steve Wells went on</li>
|
|
<ul>
|
|
<li><code>+category:signout +wells +newberries</code></li>
|
|
<li><code>+category:signout +wells +newberry's</code></li>
|
|
<li>Before 2000: <code>+category:signout timestamp:<"2000-01-01" +wells /(newberries|newberry's)/</code></li>
|
|
</ul>
|
|
<li>Weird spellings of things</li>
|
|
<ul>
|
|
<li><code>/Eric (landgraf|landgraff)/</code></li>
|
|
</ul>
|
|
<li>Legible Trog articles</li>
|
|
<ul>
|
|
<li><code>+category:trog +readability:>9</code></li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<h3>Search Operators</h3>
|
|
<ul>
|
|
<li>+ -- must include</li>
|
|
<li>- -- must not include</li>
|
|
<li><, >, <=, >= -- must be greater than or less than. Only works with numeric fields. Cannot use both at the same time!</li>
|
|
<li>Regular Expressions are supported</li>
|
|
<li>No operator: should include</li>
|
|
</ul>
|
|
|
|
<h3>Available Fields</h3>
|
|
<ul>
|
|
<li>Very useful fields</li>
|
|
<ul>
|
|
<li>group, string -- See above (nss, var, vpi, etc).</li>
|
|
<li>category, string -- See above</li>
|
|
<li>timestamp, number -- Approximate date of article. Based completely on dates in filenames (not very accurate).</li>
|
|
</ul>
|
|
<li>Not quite as useful fields</li>
|
|
<ul>
|
|
<li>season, string -- Approximate date of article. Based completely on season or date in filename (not very accurate).</li>
|
|
<li>file, string -- PDF filename</li>
|
|
<li>pageNum, number -- Article page number in the PDF.</li>
|
|
<li>readability -- Uses the Dale-Chall readability formula</li>
|
|
<li>text, string -- Actual article text</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- bat -->
|
|
<div class="bat-container pin-bottom">
|
|
<div class="bat-wrapper">
|
|
<div class="bat js-bat">
|
|
<div class="bat-leg-1"></div>
|
|
<div class="bat-leg-2"></div>
|
|
</div>
|
|
</div>
|
|
<div class="bat-shadow"></div>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('search').focus();
|
|
</script>
|
|
</body>
|
|
</html>
|