Skip to content

Commit 53177e6

Browse files
authored
UI fixes and search help tweaks (#396)
* Added extra details to the search help page. * Removed "coded" word from advanced search help paragraph.
1 parent a1f9002 commit 53177e6

File tree

2 files changed

+72
-20
lines changed

2 files changed

+72
-20
lines changed

web/nuremberg/search/templates/search/advanced-search-help.html

+71-19
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@
1010
<section class="advanced-search-help">
1111
<h2>{% trans 'Search Syntax Help' %}</h2>
1212
<p>
13-
Most advanced queries can be made naturally. For example, to find English-language documents about
13+
Keyword queries entered into the search box are matched against all descriptive information
14+
relating to documents as well as against all words in full-text documents and transcripts.
15+
</p>
16+
<p>
17+
Documents and transcripts will be matched only if all entered keywords are matched.
18+
All matches are case insensitive ("euthanasia" = "Euthanasia" and "Brandt" = "brandt" and "no-315" = "NO-315").
19+
</p>
20+
<p>
21+
Most queries can be made naturally. For example, to find English-language documents about
1422
Erhard Milch relating to treatment of workers in 1944, search for:
1523
</p>
1624
<p>
1725
<span class="example-search" id="example-search-0">workers Erhard Milch english 1944</span>
1826
<a href="{% search_url 'workers Milch english 1944' %}" aria-labelledby="example-search-0">Search</a>
1927
</p>
2028
<p>
21-
By default, documents that contain all keywords in any field are
22-
found. Our data can sometimes be incomplete, so you should usually try a more general
29+
Our data can sometimes be incomplete, so you should usually try a more general
2330
search first. The filtering options shown on the left will let you narrow down the results.
2431
</p>
2532
<p>
@@ -77,22 +84,67 @@ <h2>{% trans 'Search Syntax Help' %}</h2>
7784
<span class="example-search" id="example-search-9">experiments date:1944|unknown</span>
7885
<a href="{% search_url 'experiments date:1944|unknown' %}" aria-labelledby="example-search-9">Search</a>
7986
</p>
80-
<p>
81-
You can search within any field listed in the filters to the left. Valid field names are:
82-
</p>
83-
<p>
84-
<strong>type</strong>,
85-
<strong>trial</strong>,
86-
<strong>author</strong>,
87-
<strong>defendant</strong>,
88-
<strong>date</strong>,
89-
<strong>language</strong>,
90-
<strong>source</strong>,
91-
<strong>evidence</strong>,
92-
<strong>exhibit</strong>,
93-
<strong>issue</strong>,
94-
<strong>hlsl</strong>,
95-
and <strong>all</strong>
87+
<br/>
88+
<p>
89+
You may choose from the following fields when doing fielded search:
90+
<ol class="list">
91+
<li>
92+
<strong>type</strong>:
93+
type of document material (four options: "document image," "document full text," "transcript full text," "photograph")
94+
</li>
95+
<li>
96+
<strong>author</strong>:
97+
person or group author who authored the document text
98+
</li>
99+
<li>
100+
<strong>title</strong>:
101+
literal title as given on the document
102+
</li>
103+
<li>
104+
<strong>trial</strong>:
105+
trial in which a document was introduced into evidence or to which a transcript is related
106+
</li>
107+
<li>
108+
<strong>defendant</strong>:
109+
person being prosecuted in a given trial
110+
</li>
111+
<li>
112+
<strong>date</strong>:
113+
date a document was created
114+
</li>
115+
<li>
116+
<strong>language</strong>:
117+
language of the document text
118+
</li>
119+
<li>
120+
<strong>source</strong>:
121+
document category (such as "Case Files/English (US or UK)" or "IMT/NMT Typescript–English")
122+
</li>
123+
<li>
124+
<strong>evidence</strong>:
125+
document code for an evidence file document, such as "NO-35" or "PS-153"
126+
</li>
127+
<li>
128+
<strong>exhibit</strong>:
129+
trial exhibit number – for prosecution documents in a given trial, simply the sequence nunmber of
130+
the exhibit in the trial in question (such as "13"; for defense documents in a given trial, the
131+
defendant's name and sequence no. of the exhibit for that defendant's exhibits (such as "Schmidt 15")
132+
</li>
133+
<li>
134+
<strong>book</strong>:
135+
document book containing the trial exhibit in question – for prosecution documents in a given trial,
136+
"Prosecution" + book number, such as "Prosecution 3"; for defense documents in a given trial,
137+
defendant's name + book no., such as "Schmidt 3"
138+
</li>
139+
<li>
140+
<strong>issue</strong>:
141+
subject area of a trial exhibit relevant for a given trial
142+
</li>
143+
<li>
144+
<strong>notes</strong>:
145+
supplementary or clarifying information for a document
146+
</li>
147+
</ol>
96148
</p>
97149
</section>
98150
{% endblock %}

web/nuremberg/search/templates/search/new-advanced-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ <h1 class="h4">Search the archive &mdash; Advanced</h1>
13351335
{{ form.evidence_num }}
13361336
{{ form.evidence_suffix }}
13371337
<div class="advanced-search-label-help" id="adv-help-{{ form.evidence.name}}">
1338-
If the document was drawn from the coded collections of war crimes evidence assembled for the Trials (e.g., NO or PS), the code letters and number are given. Consists of document series designator (1-4 letters) and document number within series and occasionally a suffix.
1338+
If the document was drawn from the collections of war crimes evidence assembled for the Trials (e.g., NO or PS), the code letters and number are given. Consists of document series designator (1-4 letters) and document number within series and occasionally a suffix.
13391339
</div>
13401340
</p>
13411341
{% for error in form.evidence.errors %}

0 commit comments

Comments
 (0)