philologic-client 0.0.13 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,73 +1,233 @@
1
+ <html>
1
2
  <head>
2
- <title>shakespeare</title>
3
+ <title>shakespeare_bamboo</title>
3
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
6
+ <link rel="stylesheet" href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/css/style.css" type="text/css" media="screen, projection">
7
+ <link type="text/css" href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/css/ui-lightness/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
8
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script>
9
+ <script type="text/javascript" src="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/js/jquery-ui-1.8.17.custom.min.js"></script>
10
+ <script type="text/javascript">
11
+ function monkeyPatchAutocomplete() {
12
+ //taken from http://stackoverflow.com/questions/2435964/jqueryui-how-can-i-custom-format-the-autocomplete-plug-in-results
13
+
14
+ // don't really need this, but in case I did, I could store it and chain
15
+ var oldFn = $.ui.autocomplete.prototype._renderItem;
16
+
17
+ $.ui.autocomplete.prototype._renderItem = function( ul, item) {
18
+ // This regex took some fiddling but should match beginning of string and
19
+ // any match preceded by a string: this is useful for sql matches.
20
+ var re = new RegExp('((^' + this.term + ')|( ' + this.term + '))', "gi") ;
21
+ var t = item.label.replace(re,"<span style='font-weight:bold;color:Red;'>" +
22
+ "$&" +
23
+ "</span>");
24
+ return $( "<li></li>" )
25
+ .data( "item.autocomplete", item )
26
+ .append( "<a>" + t + "</a>" )
27
+ .appendTo( ul );
28
+ };
29
+ }
30
+
31
+ function autocomplete_metadata(metadata, field) {
32
+ $("#" + field).autocomplete({
33
+ source: "/philo4/shakespeare_bamboo/scripts/metadata_list.py?field=" + field,
34
+ minLength: 2,
35
+ dataType: "json"
36
+ });
37
+ }
38
+
39
+ var fields = ['author', 'title', 'date', 'volume', 'id', 'head', 'n', 'who']
40
+ $(document).ready(function(){
41
+
42
+ monkeyPatchAutocomplete();
43
+
44
+ $("#q").autocomplete({
45
+ source: "/philo4/shakespeare_bamboo/scripts/term_list.py",
46
+ minLength: 2,
47
+ "dataType": "json"
48
+ });
49
+ for (i in fields) {
50
+ var metadata = $("#" + fields[i]).val();
51
+ var field = fields[i];
52
+ autocomplete_metadata(metadata, field)
53
+ }
54
+ // The following is to display the right options when using the back button
55
+ if ($("#report option[value='concordance']").attr('selected')) {
56
+ $("#frequency").hide()
57
+ $("#collocation").hide()
58
+ $("#theme_rheme").hide()
59
+ $("#results_per_page").show()
60
+ }
61
+ if ($("#report option[value='kwic']").attr('selected')) {
62
+ $("#frequency").hide()
63
+ $("#collocation").hide()
64
+ $("#theme_rheme").hide()
65
+ $("#results_per_page").show()
66
+ }
67
+ if ($("#report option[value='collocation']").attr('selected')) {
68
+ $("#frequency").hide()
69
+ $("#results_per_page").hide()
70
+ $("#theme_rheme").hide()
71
+ $("#collocation").show()
72
+ }
73
+ if ($("#report option[value='frequency']").attr('selected')) {
74
+ $("#collocation").hide()
75
+ $("#results_per_page").hide()
76
+ $("#theme_rheme").hide()
77
+ $("#frequency").show()
78
+ }
79
+ if ($("#report option[value='relevance']").attr('selected')) {
80
+ $("#frequency").hide()
81
+ $("#collocation").hide()
82
+ $("#theme_rheme").hide()
83
+ $("#results_per_page").show()
84
+ }
85
+ if ($("#report option[value='theme_rheme']").attr('selected')) {
86
+ $("#frequency").hide()
87
+ $("#collocation").hide()
88
+ $("#theme_rheme").show()
89
+ $("#results_per_page").show()
90
+ }
91
+ });
92
+
93
+ function showHide(value) {
94
+ if (value == 'frequency') {
95
+ $("#collocation").hide()
96
+ $("#results_per_page").hide()
97
+ $("#theme_rheme").hide()
98
+ $("#frequency").show()
99
+ }
100
+ if (value == 'collocation') {
101
+ $("#frequency").hide()
102
+ $("#results_per_page").hide()
103
+ $("#theme_rheme").hide()
104
+ $("#collocation").show()
105
+ }
106
+ if (value == 'concordance' || value == 'kwic' || value == 'relevance') {
107
+ $("#frequency").hide()
108
+ $("#collocation").hide()
109
+ $("#theme_rheme").hide()
110
+ $("#results_per_page").show()
111
+ }
112
+ if (value == 'theme_rheme') {
113
+ $("#frequency").hide()
114
+ $("#collocation").hide()
115
+ $("#theme_rheme").show()
116
+ $("#results_per_page").show()
117
+ }
118
+ }
119
+
120
+ </script>
4
121
  </head>
5
- <body >
122
+ <body>
123
+ <div id="container">
124
+ <div id="wrapper">
125
+ <div id="header">
126
+ <div id="top-bar">
127
+ <div class="region-content">
128
+ <ul class="links secondary-links">
129
+ <li class="menu-121 first"><a href="http://humanities.uchicago.edu/orgs/ARTFL/" title="The ARTFL Project">THE ARTFL PROJECT</a></li>
130
+ <li class="menu-120"><a href="http://philologic.uchicago.edu/manual.php" title="How to use the PhiloLogic Search Engine">PHILOLOGIC USER MANUAL</a></li>
131
+ <li class="menu-119"><a href="http://www.lib.uchicago.edu/efts/ARTFL/newhome/subscribe/" title="Subscribe to the ARTFL Project">SUBSCRIPTION INFORMATION</a></li>
132
+ <li class="menu-118"><a href="http://www.uchicago.edu/" title="University of Chicago">UNIVERSITY OF CHICAGO</a></li>
133
+ <li class="menu-117 last"><a href="http://www.atilf.fr/" title="Analyse et Traitment Informatique de la Langue Française">ATILF - CNRS</a></li>
134
+ </ul>
135
+ </div>
136
+ </div>
137
+
138
+ <div class="region-content">
139
+ <h1><a href="/philo4/shakespeare_bamboo/" title="ARTFL Encyclopédie Project - Robert Morrissey,General Editor"><span class="site-name">shakespeare_bamboo</span></a></h1>
140
+ </div>
141
+ </div>
142
+ <div class="main_body">
6
143
 
7
144
  <div class='philologic_response'>
8
- <p class='status'>Frequency Table</p>
9
-
10
- <table border="1" class="philologic_table">
11
- <tr class='freq_header_row'><th class='freq_label_header'>title</th><th class='freq_value_header'>count</th></tr>
145
+ <div class='philologic_frequency_report'>
146
+ <p class='status'>Frequency Table</p>
147
+
148
+ <table border="1" class="philologic_table">
149
+ <tr class='freq_header_row'><th class='freq_label_header'>title</th><th class='freq_value_header'>count</th></tr>
12
150
 
13
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=A+Midsummer+Night%27s+Dream'>A Midsummer Night's Dream</a></td><td class='freq_value'>30</td></tr>
151
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22A+Midsummer+Night%27s+Dream%22'>A Midsummer Night's Dream</a></td><td class='freq_value'>30</td></tr>
14
152
 
15
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+First+Part+of+King+Henry+the+Fourth'>The First Part of King Henry the Fourth</a></td><td class='freq_value'>8</td></tr>
153
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+First+Part+of+King+Henry+the+Fourth%22'>The First Part of King Henry the Fourth</a></td><td class='freq_value'>8</td></tr>
16
154
 
17
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Life+and+Death+of+King+John'>The Life and Death of King John</a></td><td class='freq_value'>7</td></tr>
155
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Life+and+Death+of+King+John%22'>The Life and Death of King John</a></td><td class='freq_value'>7</td></tr>
18
156
 
19
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Third+Part+of+King+Henry+the+Sixth'>The Third Part of King Henry the Sixth</a></td><td class='freq_value'>5</td></tr>
157
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Third+Part+of+King+Henry+the+Sixth%22'>The Third Part of King Henry the Sixth</a></td><td class='freq_value'>5</td></tr>
20
158
 
21
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Timon+of+Athens'>Timon of Athens</a></td><td class='freq_value'>4</td></tr>
159
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Timon+of+Athens%22'>Timon of Athens</a></td><td class='freq_value'>4</td></tr>
22
160
 
23
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Julius+Caesar'>Julius Caesar</a></td><td class='freq_value'>3</td></tr>
161
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Julius+Caesar%22'>Julius Caesar</a></td><td class='freq_value'>3</td></tr>
24
162
 
25
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Troilus+and+Cressida'>Troilus and Cressida</a></td><td class='freq_value'>3</td></tr>
163
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Troilus+and+Cressida%22'>Troilus and Cressida</a></td><td class='freq_value'>3</td></tr>
26
164
 
27
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Tragedy+of+King+Richard+the+Second'>The Tragedy of King Richard the Second</a></td><td class='freq_value'>3</td></tr>
165
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Tragedy+of+King+Richard+the+Second%22'>The Tragedy of King Richard the Second</a></td><td class='freq_value'>3</td></tr>
28
166
 
29
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Venus+and+Adonis'>Venus and Adonis</a></td><td class='freq_value'>3</td></tr>
167
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Venus+and+Adonis%22'>Venus and Adonis</a></td><td class='freq_value'>3</td></tr>
30
168
 
31
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Love%27s+Labour%27s+Lost'>Love's Labour's Lost</a></td><td class='freq_value'>3</td></tr>
169
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Love%27s+Labour%27s+Lost%22'>Love's Labour's Lost</a></td><td class='freq_value'>3</td></tr>
32
170
 
33
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Rape+of+Lucrece'>The Rape of Lucrece</a></td><td class='freq_value'>2</td></tr>
171
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Rape+of+Lucrece%22'>The Rape of Lucrece</a></td><td class='freq_value'>2</td></tr>
34
172
 
35
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=King+Lear'>King Lear</a></td><td class='freq_value'>2</td></tr>
173
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22King+Lear%22'>King Lear</a></td><td class='freq_value'>2</td></tr>
36
174
 
37
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Titus+Andronicus'>Titus Andronicus</a></td><td class='freq_value'>2</td></tr>
175
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Titus+Andronicus%22'>Titus Andronicus</a></td><td class='freq_value'>2</td></tr>
38
176
 
39
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Life+of+King+Henry+the+Fifth'>The Life of King Henry the Fifth</a></td><td class='freq_value'>2</td></tr>
177
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Life+of+King+Henry+the+Fifth%22'>The Life of King Henry the Fifth</a></td><td class='freq_value'>2</td></tr>
40
178
 
41
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=All%27s+Well+That+Ends+Well'>All's Well That Ends Well</a></td><td class='freq_value'>2</td></tr>
179
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22All%27s+Well+That+Ends+Well%22'>All's Well That Ends Well</a></td><td class='freq_value'>2</td></tr>
42
180
 
43
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Second+Part+of+King+Henry+the+Fourth'>The Second Part of King Henry the Fourth</a></td><td class='freq_value'>2</td></tr>
181
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Second+Part+of+King+Henry+the+Fourth%22'>The Second Part of King Henry the Fourth</a></td><td class='freq_value'>2</td></tr>
44
182
 
45
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Second+Part+of+King+Henry+the+Sixth'>The Second Part of King Henry the Sixth</a></td><td class='freq_value'>2</td></tr>
183
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Second+Part+of+King+Henry+the+Sixth%22'>The Second Part of King Henry the Sixth</a></td><td class='freq_value'>2</td></tr>
46
184
 
47
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Much+Ado+About+Nothing'>Much Ado About Nothing</a></td><td class='freq_value'>1</td></tr>
185
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Much+Ado+About+Nothing%22'>Much Ado About Nothing</a></td><td class='freq_value'>1</td></tr>
48
186
 
49
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Life+of+King+Henry+the+Eighth'>The Life of King Henry the Eighth</a></td><td class='freq_value'>1</td></tr>
187
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Life+of+King+Henry+the+Eighth%22'>The Life of King Henry the Eighth</a></td><td class='freq_value'>1</td></tr>
50
188
 
51
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Coriolanus'>Coriolanus</a></td><td class='freq_value'>1</td></tr>
189
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Coriolanus%22'>Coriolanus</a></td><td class='freq_value'>1</td></tr>
52
190
 
53
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+First+Part+of+King+Henry+the+Sixth'>The First Part of King Henry the Sixth</a></td><td class='freq_value'>1</td></tr>
191
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+First+Part+of+King+Henry+the+Sixth%22'>The First Part of King Henry the Sixth</a></td><td class='freq_value'>1</td></tr>
54
192
 
55
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Antony+and+Cleopatra'>Antony and Cleopatra</a></td><td class='freq_value'>1</td></tr>
193
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Antony+and+Cleopatra%22'>Antony and Cleopatra</a></td><td class='freq_value'>1</td></tr>
56
194
 
57
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=The+Merchant+of+Venice'>The Merchant of Venice</a></td><td class='freq_value'>1</td></tr>
195
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22The+Merchant+of+Venice%22'>The Merchant of Venice</a></td><td class='freq_value'>1</td></tr>
58
196
 
59
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Twelfth+Night+or+What+You+Will'>Twelfth Night or What You Will</a></td><td class='freq_value'>1</td></tr>
197
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Twelfth+Night+or+What+You+Will%22'>Twelfth Night or What You Will</a></td><td class='freq_value'>1</td></tr>
60
198
 
61
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Measure+for+Measure'>Measure for Measure</a></td><td class='freq_value'>1</td></tr>
199
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Measure+for+Measure%22'>Measure for Measure</a></td><td class='freq_value'>1</td></tr>
62
200
 
63
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Macbeth'>Macbeth</a></td><td class='freq_value'>1</td></tr>
201
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Macbeth%22'>Macbeth</a></td><td class='freq_value'>1</td></tr>
64
202
 
65
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Two+Gentlemen+of+Verona'>Two Gentlemen of Verona</a></td><td class='freq_value'>1</td></tr>
203
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Two+Gentlemen+of+Verona%22'>Two Gentlemen of Verona</a></td><td class='freq_value'>1</td></tr>
66
204
 
67
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=Othello%2C+the+Moor+of+Venice'>Othello, the Moor of Venice</a></td><td class='freq_value'>1</td></tr>
205
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22Othello%2C+the+Moor+of+Venice%22'>Othello, the Moor of Venice</a></td><td class='freq_value'>1</td></tr>
68
206
 
69
- <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&title=As+You+Like+It'>As You Like It</a></td><td class='freq_value'>1</td></tr>
70
- </table>
207
+ <tr class='freq_row'><td class='freq_label'><a href='./?q=lion&method=proxy&title=%22As+You+Like+It%22'>As You Like It</a></td><td class='freq_value'>1</td></tr>
208
+ </table>
209
+ </div>
71
210
  </div>
72
- </body>
211
+ </div>
212
+ </div>
213
+ <div id="footer">
214
+ <div class="bottom-border">
215
+ <div class="region-content">
216
+ <div class="footer-nav" style="float:left;">
217
+ <ul class="links primary-links"><li class="menu-204 first"><a href="/content/about-artfl" title="General Information about the ARTFL Project">about artfl</a></li>
218
+ <li class="menu-139"><a href="/content/subscription-information-0" title="Information concerning ARTFL Subscription">subscription info</a></li>
219
+ <li class="menu-140"><a href="/content/whats-new-artfl" title="New Developments at the ARTFL Project">what&#039;s new</a></li>
220
+ <li class="menu-143"><a href="http://sites.google.com/site/philologic3/home" title="Philologic 3: Open Source ARTFL Search and Retrieval Engine">philologic</a></li>
221
+ <li class="menu-197 last"><a href="/content/contact-us" title="Contact information for the ARTFL Project">contact us</a></li>
222
+ </ul>
223
+ <br />
224
+ <br />
225
+ <img src="http://humanities.uchicago.edu/images/wordmarks/hum-wordmark-black-small.png" style="display:block;margin-left:-5px;" />
226
+ </div>
227
+ <p id="footer-message">The ARTFL Project<br>Department of Romance Languages and Literatures<br>Division of the Humanities<br>University of Chicago<br>1115 East 58th Street Chicago, IL 60637<br>tel: 773-702-8488 | email: artfl[at]artfl[dot]uchicago[dot]edu<br></p> <span class="clear"></span>
228
+ </div>
229
+ </div>
230
+ </div> <!-- /footer -->
231
+ </div> <!-- /container -->
232
+ </body>
73
233
  </html>
@@ -1,69 +1,228 @@
1
+ <html>
1
2
  <head>
2
- <title>shakespeare</title>
3
+ <title>shakespeare_bamboo</title>
3
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
6
+ <link rel="stylesheet" href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/css/style.css" type="text/css" media="screen, projection">
7
+ <link type="text/css" href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/css/ui-lightness/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
8
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script>
9
+ <script type="text/javascript" src="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/js/jquery-ui-1.8.17.custom.min.js"></script>
10
+ <script type="text/javascript">
11
+ function monkeyPatchAutocomplete() {
12
+ //taken from http://stackoverflow.com/questions/2435964/jqueryui-how-can-i-custom-format-the-autocomplete-plug-in-results
13
+
14
+ // don't really need this, but in case I did, I could store it and chain
15
+ var oldFn = $.ui.autocomplete.prototype._renderItem;
16
+
17
+ $.ui.autocomplete.prototype._renderItem = function( ul, item) {
18
+ // This regex took some fiddling but should match beginning of string and
19
+ // any match preceded by a string: this is useful for sql matches.
20
+ var re = new RegExp('((^' + this.term + ')|( ' + this.term + '))', "gi") ;
21
+ var t = item.label.replace(re,"<span style='font-weight:bold;color:Red;'>" +
22
+ "$&" +
23
+ "</span>");
24
+ return $( "<li></li>" )
25
+ .data( "item.autocomplete", item )
26
+ .append( "<a>" + t + "</a>" )
27
+ .appendTo( ul );
28
+ };
29
+ }
30
+
31
+ function autocomplete_metadata(metadata, field) {
32
+ $("#" + field).autocomplete({
33
+ source: "/philo4/shakespeare_bamboo/scripts/metadata_list.py?field=" + field,
34
+ minLength: 2,
35
+ dataType: "json"
36
+ });
37
+ }
38
+
39
+ var fields = ['author', 'title', 'date', 'volume', 'id', 'head', 'n', 'who']
40
+ $(document).ready(function(){
41
+
42
+ monkeyPatchAutocomplete();
43
+
44
+ $("#q").autocomplete({
45
+ source: "/philo4/shakespeare_bamboo/scripts/term_list.py",
46
+ minLength: 2,
47
+ "dataType": "json"
48
+ });
49
+ for (i in fields) {
50
+ var metadata = $("#" + fields[i]).val();
51
+ var field = fields[i];
52
+ autocomplete_metadata(metadata, field)
53
+ }
54
+ // The following is to display the right options when using the back button
55
+ if ($("#report option[value='concordance']").attr('selected')) {
56
+ $("#frequency").hide()
57
+ $("#collocation").hide()
58
+ $("#theme_rheme").hide()
59
+ $("#results_per_page").show()
60
+ }
61
+ if ($("#report option[value='kwic']").attr('selected')) {
62
+ $("#frequency").hide()
63
+ $("#collocation").hide()
64
+ $("#theme_rheme").hide()
65
+ $("#results_per_page").show()
66
+ }
67
+ if ($("#report option[value='collocation']").attr('selected')) {
68
+ $("#frequency").hide()
69
+ $("#results_per_page").hide()
70
+ $("#theme_rheme").hide()
71
+ $("#collocation").show()
72
+ }
73
+ if ($("#report option[value='frequency']").attr('selected')) {
74
+ $("#collocation").hide()
75
+ $("#results_per_page").hide()
76
+ $("#theme_rheme").hide()
77
+ $("#frequency").show()
78
+ }
79
+ if ($("#report option[value='relevance']").attr('selected')) {
80
+ $("#frequency").hide()
81
+ $("#collocation").hide()
82
+ $("#theme_rheme").hide()
83
+ $("#results_per_page").show()
84
+ }
85
+ if ($("#report option[value='theme_rheme']").attr('selected')) {
86
+ $("#frequency").hide()
87
+ $("#collocation").hide()
88
+ $("#theme_rheme").show()
89
+ $("#results_per_page").show()
90
+ }
91
+ });
92
+
93
+ function showHide(value) {
94
+ if (value == 'frequency') {
95
+ $("#collocation").hide()
96
+ $("#results_per_page").hide()
97
+ $("#theme_rheme").hide()
98
+ $("#frequency").show()
99
+ }
100
+ if (value == 'collocation') {
101
+ $("#frequency").hide()
102
+ $("#results_per_page").hide()
103
+ $("#theme_rheme").hide()
104
+ $("#collocation").show()
105
+ }
106
+ if (value == 'concordance' || value == 'kwic' || value == 'relevance') {
107
+ $("#frequency").hide()
108
+ $("#collocation").hide()
109
+ $("#theme_rheme").hide()
110
+ $("#results_per_page").show()
111
+ }
112
+ if (value == 'theme_rheme') {
113
+ $("#frequency").hide()
114
+ $("#collocation").hide()
115
+ $("#theme_rheme").show()
116
+ $("#results_per_page").show()
117
+ }
118
+ }
119
+
120
+ </script>
4
121
  </head>
5
- <body >
122
+ <body>
123
+ <div id="container">
124
+ <div id="wrapper">
125
+ <div id="header">
126
+ <div id="top-bar">
127
+ <div class="region-content">
128
+ <ul class="links secondary-links">
129
+ <li class="menu-121 first"><a href="http://humanities.uchicago.edu/orgs/ARTFL/" title="The ARTFL Project">THE ARTFL PROJECT</a></li>
130
+ <li class="menu-120"><a href="http://philologic.uchicago.edu/manual.php" title="How to use the PhiloLogic Search Engine">PHILOLOGIC USER MANUAL</a></li>
131
+ <li class="menu-119"><a href="http://www.lib.uchicago.edu/efts/ARTFL/newhome/subscribe/" title="Subscribe to the ARTFL Project">SUBSCRIPTION INFORMATION</a></li>
132
+ <li class="menu-118"><a href="http://www.uchicago.edu/" title="University of Chicago">UNIVERSITY OF CHICAGO</a></li>
133
+ <li class="menu-117 last"><a href="http://www.atilf.fr/" title="Analyse et Traitment Informatique de la Langue Française">ATILF - CNRS</a></li>
134
+ </ul>
135
+ </div>
136
+ </div>
137
+
138
+ <div class="region-content">
139
+ <h1><a href="/philo4/shakespeare_bamboo/" title="ARTFL Encyclopédie Project - Robert Morrissey,General Editor"><span class="site-name">shakespeare_bamboo</span></a></h1>
140
+ </div>
141
+ </div>
142
+ <div class="main_body">
6
143
 
7
- <div class='philologic_response'>
8
- <div class='philologic_cite'>
9
- <span class='philologic_property' title='author'>William Shakespeare</span>, <i><span class='philologic_property' title='title'>The First Part of King Henry the Fourth</span></i></div>
10
- <div class='philologic_navigation'>
144
+ <div class='philologic_response'>
145
+ <div class='philologic_cite'>
146
+ <span class='philologic_property' title='author'>William Shakespeare</span>, <span class='philologic_property' title='title'>The First Part of King Henry the Fourth</span>
147
+ </div>
148
+ <div class='philologic_navigation'>
11
149
 
12
150
 
13
- <a href="./1/2"></a><br>
151
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/2/0/0/0/0/0">[div1]</a></div>
14
152
 
15
- <a href="./1/2/1">Dramatis Personae</a><br>
153
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/2/1/0/0/0/0">Dramatis Personae</a></div>
16
154
 
17
- <a href="./1/3">Act 1</a><br>
155
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/3/0/0/0/0/0">Act 1</a></div>
18
156
 
19
- <a href="./1/3/2">Act 1, Scene 1</a><br>
157
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/3/2/0/0/0/0">Act 1, Scene 1</a></div>
20
158
 
21
- <a href="./1/3/3">Act 1, Scene 2</a><br>
159
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/3/3/0/0/0/0">Act 1, Scene 2</a></div>
22
160
 
23
- <a href="./1/3/4">Act 1, Scene 3</a><br>
161
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/3/4/0/0/0/0">Act 1, Scene 3</a></div>
24
162
 
25
- <a href="./1/4">Act 2</a><br>
163
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/4/0/0/0/0/0">Act 2</a></div>
26
164
 
27
- <a href="./1/4/2">Act 2, Scene 1</a><br>
165
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/4/2/0/0/0/0">Act 2, Scene 1</a></div>
28
166
 
29
- <a href="./1/4/3">Act 2, Scene 2</a><br>
167
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/4/3/0/0/0/0">Act 2, Scene 2</a></div>
30
168
 
31
- <a href="./1/4/4">Act 2, Scene 3</a><br>
169
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/4/4/0/0/0/0">Act 2, Scene 3</a></div>
32
170
 
33
- <a href="./1/4/5">Act 2, Scene 4</a><br>
171
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/4/5/0/0/0/0">Act 2, Scene 4</a></div>
34
172
 
35
- <a href="./1/5">Act 3</a><br>
173
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/5/0/0/0/0/0">Act 3</a></div>
36
174
 
37
- <a href="./1/5/2">Act 3, Scene 1</a><br>
175
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/5/2/0/0/0/0">Act 3, Scene 1</a></div>
38
176
 
39
- <a href="./1/5/3">Act 3, Scene 2</a><br>
177
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/5/3/0/0/0/0">Act 3, Scene 2</a></div>
40
178
 
41
- <a href="./1/5/4">Act 3, Scene 3</a><br>
179
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/5/4/0/0/0/0">Act 3, Scene 3</a></div>
42
180
 
43
- <a href="./1/6">Act 4</a><br>
181
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/6/0/0/0/0/0">Act 4</a></div>
44
182
 
45
- <a href="./1/6/2">Act 4, Scene 1</a><br>
183
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/6/2/0/0/0/0">Act 4, Scene 1</a></div>
46
184
 
47
- <a href="./1/6/3">Act 4, Scene 2</a><br>
185
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/6/3/0/0/0/0">Act 4, Scene 2</a></div>
48
186
 
49
- <a href="./1/6/4">Act 4, Scene 3</a><br>
187
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/6/4/0/0/0/0">Act 4, Scene 3</a></div>
50
188
 
51
- <a href="./1/6/5">Act 4, Scene 4</a><br>
189
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/6/5/0/0/0/0">Act 4, Scene 4</a></div>
52
190
 
53
- <a href="./1/7">Act 5</a><br>
191
+ <div class='philologic_cite'><a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/0/0/0/0/0">Act 5</a></div>
54
192
 
55
- <a href="./1/7/2">Act 5, Scene 1</a><br>
193
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/2/0/0/0/0">Act 5, Scene 1</a></div>
56
194
 
57
- <a href="./1/7/3">Act 5, Scene 2</a><br>
195
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/3/0/0/0/0">Act 5, Scene 2</a></div>
58
196
 
59
- <a href="./1/7/4">Act 5, Scene 3</a><br>
197
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/4/0/0/0/0">Act 5, Scene 3</a></div>
60
198
 
61
- <a href="./1/7/5">Act 5, Scene 4</a><br>
199
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/5/0/0/0/0">Act 5, Scene 4</a></div>
62
200
 
63
- <a href="./1/7/6">Act 5, Scene 5</a><br>
64
- </div>
65
- </div>
66
- </div>
67
- </body>
201
+ <div class='philologic_cite'>&nbsp;-&nbsp;<a href="http://lafayette.uchicago.edu/philo4/shakespeare_bamboo/dispatcher.py/1/7/6/0/0/0/0">Act 5, Scene 5</a></div>
202
+ </div>
203
+ <div class='more'>
204
+ <div style='clear:both;'></div>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ <div id="footer">
209
+ <div class="bottom-border">
210
+ <div class="region-content">
211
+ <div class="footer-nav" style="float:left;">
212
+ <ul class="links primary-links"><li class="menu-204 first"><a href="/content/about-artfl" title="General Information about the ARTFL Project">about artfl</a></li>
213
+ <li class="menu-139"><a href="/content/subscription-information-0" title="Information concerning ARTFL Subscription">subscription info</a></li>
214
+ <li class="menu-140"><a href="/content/whats-new-artfl" title="New Developments at the ARTFL Project">what&#039;s new</a></li>
215
+ <li class="menu-143"><a href="http://sites.google.com/site/philologic3/home" title="Philologic 3: Open Source ARTFL Search and Retrieval Engine">philologic</a></li>
216
+ <li class="menu-197 last"><a href="/content/contact-us" title="Contact information for the ARTFL Project">contact us</a></li>
217
+ </ul>
218
+ <br />
219
+ <br />
220
+ <img src="http://humanities.uchicago.edu/images/wordmarks/hum-wordmark-black-small.png" style="display:block;margin-left:-5px;" />
221
+ </div>
222
+ <p id="footer-message">The ARTFL Project<br>Department of Romance Languages and Literatures<br>Division of the Humanities<br>University of Chicago<br>1115 East 58th Street Chicago, IL 60637<br>tel: 773-702-8488 | email: artfl[at]artfl[dot]uchicago[dot]edu<br></p> <span class="clear"></span>
223
+ </div>
224
+ </div>
225
+ </div> <!-- /footer -->
226
+ </div> <!-- /container -->
227
+ </body>
68
228
  </html>
69
-