<commit_before><script language="JavaScript" type="text/javascript">
<!-- Begin

// Checks the form data
function checkForm ( ) {

	var frm = document.forms[0];
	var errors = "";

	if ( frm.period_max.selectedIndex == 0 )	{
		errors = "Please choose a period name\n\n";
	}

	if ( frm.latdeg.value == ""
		|| frm.lngdeg.value == "" ) {
		errors += "You must supply lat/long coordinates\n";
	}

	if ( errors != "" ) { 
		alert ( errors );
		return false;
	} else {
		return true;
	}
}


//  End -->
</script>

<center><h2>Duplicate collection search form</h2>
<p>Choose a period, fill in the coordinates of your collection, and press "Search collections."</p>
<p>The search will return collections within 100 km of the coordinates.</p>
</center>

<form method=post action="bridge.pl" onSubmit="return checkForm();">
<input id="action" type=hidden name="action" value="displayCollResults">
<input id="type" type=hidden name="type" value="add">

<hr>

<center>


<table>
  <tr>
    <td colspan=6 align=center>
      <span class="required">Period:</span> <select id="period_max"></select>
    </td>
  </tr>
  <tr>
    <td></td>
    <td><span class="required">Degrees</span></td>
    <td>Minutes</td>
    <td>Seconds</td>
    <td>Decimal value*</td>
    <td><span class="required">Direction</span></td>
  </tr>
  <tr>
    <td>Latitude</td>
    <td><input id="latdeg" size=5 maxlength=3></td>
    <td><input id="latmin" size=3 maxlength=2></td>
    <td><input id="latsec" size=3 maxlength=2></td>
    <td><input id="latdec" size=5 maxlength=8></td>
    <td><select id="latdir"></select>
  </tr>
  <tr>
    <td>Longitude</td>
    <td><input id="lngdeg" size=5 maxlength=3></td>
    <td><input id="lngmin" size=3 maxlength=2></td>
    <td><input id="lngsec" size=3 maxlength=2></td>
    <td><input id="lngdec" size=5 maxlength=8></td>
    <td><select id="lngdir"></select></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td colspan=6>
      Sort by: <select name="sortby"><option value="collection_name">collection name</option><option value="distance">distance from coordinates</option><option value="collection_no">collection number</option></select></p>
    </td>
  </tr>
</table>

<p class="small"><i>*Enter either minutes-seconds or decimal value, but not both. See the
<a href="javascript:tipsPopup('/public/tips/tips.html#Coordinates')">tip sheet</A>

<hr>

<p><input type="submit" name="submit" value="Search collections"></p>

</td></tr></table>

</center>

</form>
<commit_msg>JavaScript checks for excessively large lat and long values; reshuffled Sorty by list<commit_after><script language="JavaScript" type="text/javascript">
<!-- Begin

// Checks the form data
function checkForm ( ) {

	var frm = document.forms[0];
	var errors = "";

	if ( frm.period_max.selectedIndex == 0 )	{
		errors = "Please choose a period name\n\n";
	}

	if ( frm.latdeg.value == ""
		|| frm.lngdeg.value == "" ) {
		errors += "You must supply lat/long coordinates\n";
	}

	if ( frm.latdeg.value > 89 )	{
		errors += "The latitude must be less than 90 degrees\n";
	}

	if ( frm.lngdeg.value > 179 )	{
		errors += "The longitude must be less than 180 degrees\n";
	}

	if ( errors != "" ) { 
		alert ( errors );
		return false;
	} else {
		return true;
	}
}


//  End -->
</script>

<center><h2>Duplicate collection search form</h2>
<p>Choose a period, fill in the coordinates of your collection, and press "Search collections."</p>
<p>The search will return collections within 100 km of the coordinates.</p>
</center>

<form method="POST" action="bridge.pl" onSubmit="return checkForm();">
<input id="action" type=hidden name="action" value="displayCollResults">
<input id="type" type=hidden name="type" value="add">

<hr>

<center>


<table>
  <tr>
    <td colspan=6 align=center>
      <span class="required">Period:</span> <select id="period_max"></select>
    </td>
  </tr>
  <tr>
    <td></td>
    <td><span class="required">Degrees</span></td>
    <td>Minutes</td>
    <td>Seconds</td>
    <td>Decimal value*</td>
    <td><span class="required">Direction</span></td>
  </tr>
  <tr>
    <td>Latitude</td>
    <td><input id="latdeg" size=5 maxlength=3></td>
    <td><input id="latmin" size=3 maxlength=2></td>
    <td><input id="latsec" size=3 maxlength=2></td>
    <td><input id="latdec" size=5 maxlength=8></td>
    <td><select id="latdir"></select>
  </tr>
  <tr>
    <td>Longitude</td>
    <td><input id="lngdeg" size=5 maxlength=3></td>
    <td><input id="lngmin" size=3 maxlength=2></td>
    <td><input id="lngsec" size=3 maxlength=2></td>
    <td><input id="lngdec" size=5 maxlength=8></td>
    <td><select id="lngdir"></select></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td colspan=6>
      Sort by:
      <select name="sortby">
        <option value="distance">distance from coordinates</option>
        <option value="collection_name">collection name</option>
        <option value="collection_no">collection number</option>
      </select></p>
    </td>
  </tr>
</table>

<p class="small"><i>*Enter either minutes-seconds or decimal value, but not both. See the
<a href="javascript:tipsPopup('/public/tips/tips.html#Coordinates')">tip sheet</A>

<hr>

<p><input type="submit" name="submit" value="Search collections"></p>

</td></tr></table>

</center>

</form>

{'fraction_non_alphanumeric': 0.19749573136027318, 'fraction_numerical': 0.011383039271485486, 'mean_word_length': 3.9782813975448534, 'pattern_counts': {'":': 0, '<': 229, '<?xml version=': 0, '>': 231, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1786836', 'n_tokens_mistral': 1929, 'n_tokens_neox': 1867, 'n_words': 434}