forked from ArctosDB/arctos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpecimenSearchHTML.cfm
258 lines (256 loc) · 7.63 KB
/
SpecimenSearchHTML.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<cfinclude template="/includes/_header.cfm">
<cfset title="Specimen Search">
<cfset helpBaseUrl="">
<cfoutput>
<cfset metaDesc="Provides plain HTML functinality to search for museum specimens and observations by taxonomy, identifications, specimen attributes, and usage history.">
<cfquery name="getCount" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
select count(collection_object_id) as cnt from cataloged_item
</cfquery>
<cfquery name="hasCanned" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
select SEARCH_NAME,URL
from cf_canned_search,cf_users
where cf_users.user_id=cf_canned_search.user_id
and username='#session.username#'
order by search_name
</cfquery>
You are searching Arctos with the non-JavaScript form. Please consider turning JavaScript on and
using the <a href="/SpecimenSearch.cfm">standard search form</a>.
<form method="post" action="SpecimenResultsHTML.cfm" name="SpecData" id="SpecData">
<table border="0">
<tr>
<td valign="top">
<input type="submit" value="Search" class="schBtn">
</td>
<td valign="top">
<input type="reset" name="Reset" value="Clear Form" class="clrBtn">
</td>
<td valign="top">
Tissues?
<input type="checkbox" name="is_tissue" id="is_tissue" value="1">
</td>
</tr>
</table>
<input type="hidden" name="Action" value="#Action#">
<div class="secDiv">
<cfquery name="ctInst" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
SELECT institution_acronym, collection, collection_id FROM collection order by collection
</cfquery>
<cfif isdefined("collection_id") and len(#collection_id#) gt 0>
<cfset thisCollId = #collection_id#>
<cfelse>
<cfset thisCollId = "">
</cfif>
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Identifiers</span>
</td>
</tr>
<tr>
<td class="lbl">
Collection:
</td>
<td class="srch">
<select name="collection_id" id="collection_id" size="1">
<option value="">All</option>
<cfloop query="ctInst">
<option <cfif #thisCollId# is #ctInst.collection_id#>
selected </cfif>
value="#ctInst.collection_id#">
#ctInst.collection#</option>
</cfloop>
</select>
Number:
<cfif #ListContains(session.searchBy, 'bigsearchbox')# gt 0>
<textarea name="listcatnum" id="listcatnum" rows="6" cols="40" wrap="soft"></textarea>
<cfelse>
<input type="text" name="listcatnum" id="listcatnum" size="21" value="">
</cfif>
</td>
</tr>
<cfif isdefined("session.CustomOtherIdentifier") and len(#session.CustomOtherIdentifier#) gt 0>
<tr>
<td class="lbl">
#replace(session.CustomOtherIdentifier," "," ","all")#:
</td>
<td class="srch">
<label for="CustomOidOper">Display Value</label>
<select name="CustomOidOper" id="CustomOidOper" size="1">
<option value="IS">is</option>
<option value="" selected="selected">contains</option>
<option value="LIST">in list</option>
<option value="BETWEEN">in range</option>
</select> <input type="text" name="CustomIdentifierValue" id="CustomIdentifierValue" size="50">
</td>
</tr>
<tr>
<td class="lbl">
<cfif isdefined("session.fancyCOID") and #session.fancyCOID# is 1>
</td>
<td class="srch">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<label for="custom_id_prefix">OR: Prefix</label>
<input type="text" name="custom_id_prefix" id="custom_id_prefix" size="12">
</td>
<td>
<label for="custom_id_number">Number</label>
<input type="text" name="custom_id_number" id="custom_id_number" size="24">
</td>
<td>
<label for="custom_id_suffix">Suffix</label>
<input type="text" name="custom_id_suffix" id="custom_id_suffix" size="12">
</td>
</tr>
</table>
</td>
</cfif>
</tr>
</cfif>
</table>
</div>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Identification and Taxonomy</span>
</td>
</tr>
<tr>
<td class="lbl">
Any Taxonomic Element:
</td>
<td class="srch">
<input type="text" name="any_taxa_term" id="any_taxa_term" size="50">
</td>
</tr>
</table>
</div>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Locality</span>
</td>
</tr>
<tr>
<td class="lbl">
Any Geographic Element:
</td>
<td class="srch">
<input type="text" name="any_geog" id="any_geog" size="50">
</td>
</tr>
</table>
</div>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Date/Collector</span>
</td>
</tr>
<tr>
<td class="lbl">
Year Collected:
</td>
<td class="srch">
<input name="begYear" id="begYear" type="text" size="6"> to
<input name="endYear" id="endYear" type="text" size="6">
</td>
</tr>
</table>
<div id="e_collevent"></div>
</div>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Biological Individual</span>
</td>
</tr>
<tr>
<td class="lbl">
Part Name:
</td>
<td class="srch">
<input type="text" name="partname" id="partname">
</td>
</tr>
</table>
</div>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Usage</span>
</td>
</tr>
<tr>
<td class="lbl">
Basis of Citation:
</td>
<td class="srch">
<cfquery name="ctTypeStatus" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
select type_status from ctcitation_type_status
</cfquery>
<select name="type_status" id="type_status" size="1">
<option value=""></option>
<option value="any">Any</option>
<option value="type">Any TYPE</option>
<cfloop query="ctTypeStatus">
<option value="#ctTypeStatus.type_status#">#ctTypeStatus.type_status#</option>
</cfloop>
</select>
</td>
</tr>
</table>
</div>
<cfif listcontainsnocase(session.roles,"coldfusion_user")>
<div class="secDiv">
<table class="ssrch">
<tr>
<td colspan="2" class="secHead">
<span class="secLabel">Curatorial</span>
</td>
</tr>
<tr>
<td class="lbl">
Barcode:
</td>
<td class="srch">
<input type="text" name="barcode" id="barcode" size="50">
</td>
</tr>
</table>
</div>
</cfif>
<table>
<tr>
<td valign="top">
<input type="submit" value="Search" class="schBtn"
onmouseover="this.className='schBtn btnhov'" onmouseout="this.className='schBtn'">
</td>
<td valign="top">
<input type="reset" name="Reset" value="Clear Form" class="clrBtn"
onmouseover="this.className='clrBtn btnhov'" onmouseout="this.className='clrBtn'">
</td>
<td valign="top">
</td>
<td valign="top" align="right">
</td>
<td align="left" colspan="2" valign="top">
</td>
<td align="left">
</td>
</tr>
</table>
<cfif isdefined("transaction_id") and len(#transaction_id#) gt 0>
<input type="hidden" name="transaction_id" value="#transaction_id#">
</cfif>
<input type="hidden" name="newQuery" value="1"><!--- pass this to the next form so we clear the cache and run the proper queries--->
</form>
</cfoutput>
<cfinclude template = "includes/_footer.cfm">