This repository has been archived by the owner on Jan 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (230 loc) · 12 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Geodex Web Map</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="leaflet/plugins/geosearch/style.css" rel="stylesheet">
<link href="leaflet/leaflet.css" rel="stylesheet">
<!--<link href="leaflet/plugins/esri-leaflet-geocoder/esri-leaflet-geocoder.css" rel="stylesheet">-->
<link href="style.css" rel="stylesheet">
<script>
// whole thing is kaputt in IE without this line
document.createElement('main');
</script>
</head>
<body>
<!-- Attribute modal -->
<div class="modal fade" id="attrModal" tabindex="-1" role="dialog" aria-labelledby="attrModal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="attrModalLabel"></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6">
<div class="table-responsive">
<table class="table table-hover" id="attr-table-1">
<thead>
<tr>
<td>Attribute</td>
<td>Value</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
<div class="table-responsive">
<table class="table table-hover" id="attr-table-2">
<thead>
<tr>
<td>Attribute</td>
<td>Value</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="close-attr-modal" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Actual structural (sort of) markup -->
<a id="toggle-pane-link" href="#" id="expand-link">Show map</a>
<main class="container-fluid">
<div class="row" id="map-row">
<section class="col-lg-4" id="search-column">
<a href="#" class="collapse-link"><i class="fa fa-chevron-up fa-3x" aria-hidden="true"></i></a>
<h1>AGSL Geodex Web Map</h1>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#search-parameters" id="tab-search" data-toggle="tab"><i class="fa fa-search" aria-hidden="true"></i> <span class="tab-label">Search</span></a></li>
<li role="presentation"><a href="#search-results" id="tab-results" data-toggle="tab"><i class="fa fa-list" aria-hidden="true"></i> <span class="tab-label">Results</span> (<span id="num-results">0</span>)</a></li>
<li role="presentation"><a href="#bookmarks" id="tab-saved" data-toggle="tab"><i class="fa fa-bookmark" aria-hidden="true"></i> <span class="tab-label">Saved</span> (<span id="num-bookmarked">0</span>)</a></li>
<li role="presentation"><a href="#help" id="tab-help" data-toggle="tab"><i class="fa fa-question-circle" aria-hidden="true"></i> <span class="tab-label">Help</span></a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" id="search-parameters" class="tab-pane fade in active">
<form onsubmit="return false;">
<h2>Extent Search Type</h2>
<div class="radio">
<label>
<input class="extent-radio" type="radio" name="search-extent-options" id="search-within" value="search-within" checked>
Records <strong> entirely within</strong> the current extent
</label>
</div>
<div class="radio">
<label>
<input class="extent-radio" type="radio" name="search-extent-options" id="search-intersect" value="search-intersect">
Records <strong>intersecting</strong> the current extent
</label>
</div>
<div class="radio">
<label>
<input class="extent-radio" type="radio" name="search-extent-options" id="no-search-extent" value="no-search-extent">
Search <strong>without using</strong> the current extent<br />
<em>Search will only take the options below into account.</em>
</label>
</div>
<div class="checkbox" id="exclude-large-area-toggle">
<label>
<input type="checkbox" id="exclude-large-maps" value="exclude-large-maps">
Exclude large maps relative to current zoom level (<span id="current-zoom-level"></span>)
</label>
</div>
<h2>Name Contains</h2>
<input type="text" id="name-contains" value="">
<h2>Years</h2>
<div class="form-group">
<select name="years-from" id="years-from" value="years-from"></select> to <select name="years-from" id="years-to" value="years-to"></select>
</div>
<div id="years-not-in-order" class="alert alert-danger" role="alert"><strong>This year range is invalid</strong> and will return no results. <a href="#" id="reset-years">Reset years</a></div>
<h2>Series</h2>
<div class="form-group">
<p><em>If no series are selected, all of them will be included when searching.</em></p>
<select name="series-list" id="series-list" value="series-list">
<option>Loading series list...</option>
</select>
</div>
<div id="series-to-be-searched"></div>
<h2>Publishers</h2>
<div class="form-group">
<p><em>If no publishers are selected, all of them will be included when searching.</em></p>
<select name="publishers-list" id="publishers-list" value="publishers-list">
<option>Loading publisher list...</option>
</select>
</div>
<div id="publishers-to-be-searched"></div>
<h2>Availability</h2>
<div class="form-group">
<div class="checkbox" id="agsl-holdings">
<label>
<input type="checkbox" id="agsl-holdings-option" value="agsl-holdings-option">
Only show records available in AGSL holdings
</label>
</div>
</div>
<button id="search-geodex-button" type="button" class="btn btn-primary">Search Geodex</button>
</form>
</div>
<div role="tabpanel" class="tab-pane fade" id="search-results">
<h2>Search Results</h2>
<p>No search results to display.</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="bookmarks">
<h2>Saved Records</h2>
<a id="update-saved-records-list" href="#">Update saved records list</a>
<ul id="saved-records-list">
</ul>
<p id="no-saved-records">You have not bookmarked any records.</p>
<!-- this table is hidden from the user unless they're printing! -->
<table id="export-table" class="table table-bordered table-condensed"></table>
<div id="export-fields">
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="help">
<h2>Geodex Help</h2>
<!-- begin help accordion -->
<div class="panel-group" id="help-accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#help-accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
About This Application
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<p>The AGSL Geodex Web Map allows library patrons and staff allows users to search for maps in a series that have been recorded in the library's extensive Geodex catalogue. Users may search by geographic location, series, date, or a combination of all of these.</p>
<p>If you require any assistance beyond the scope of this help section, please <a href="https://uwm.edu/libraries/agsl/visit/">visit us in person</a>, call us at <a href="tel:+14142296282">(414) 229-6282</a> or e-mail <a href="mailto:gisdata@uwm.edu">gisdata@uwm.edu</a>.</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#help-accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Searching for Records
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<p>On the <strong><i class="fa fa-search" aria-hidden="true"></i> Search</strong> tab, you may search for records based on a variety of parameters.</p>
<p>The <strong>Extent Search Type</strong> refers to the map on this page. Pan and zoom the map to your preferred search area, and choose whether you wish to search for records that <em>intersect</em> the current view—they may not be entirely located in your current extent—or records that <em>are located entirely within</em> your current view.</p>
<p>After clicking <strong>Search Geodex</strong> button, you will be taken to a list of search results. If there are too many records to comfortably sort through, you may want to change your search and reduce the year range or geographic search area.</p>
<p>Click on the <i class="fa fa-map" aria-hidden="true"></i> map icon next to any record to display its boundaries on the map. You may wish to adjust the outline color or automatic pan settings located at the bottom left corner of the map pane.</p>
<p>If you wish to return to your original search location, click on <strong>Return to search extent</strong>.</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#help-accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Saving Records
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
<p>When searching, you may come across records that you wish to reference later. Click on the <i class="fa fa-bookmark-o" aria-hidden="false"></i> bookmark icon next to a record to add it to your list of saved records.</p>
<p>These records can be referenced in the <strong><i class="fa fa-bookmark" aria-hidden="true"></i> Saved</strong> tab. After clicking <strong>Update saved records list</strong>—there may be a few seconds' delay—your list of saved records will appear, along with options to export or print the list. This may be useful if, for instance, you wish to bring the list to the AGS Library to assist with your research.</p>
</div>
</div>
</div>
</div>
<!-- end help accordion -->
</div>
</div>
</section>
<section class="col-lg-8" id="map">
</section>
</div>
</main>
<!-- JavaScript files -->
<script src="https://use.fontawesome.com/8a40235401.js"></script>
<script src="jquery/jquery-3.1.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="leaflet/leaflet.js"></script>
<script src="leaflet/plugins/esri-leaflet/esri-leaflet.js"></script>
<!--<script src="leaflet/plugins/esri-leaflet-geocoder/esri-leaflet-geocoder.js"></script>-->
<script src="leaflet/plugins/geosearch/geosearch.js"></script>
<script src="tableexport/FileSaver.js"></script>
<script src="tableexport/TableExport.js"></script>
<script src="geodex-web-map.js"></script>
</body>
</html>