You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
118
-
</div>
119
-
</template>
120
-
<templatex-if="param.type === 'titleabs'">
121
-
<div>
122
-
<input:id="`value-${index}`"
123
-
class="card w-100"
124
-
placeholder="Search for words in works' title and abstract"
125
-
type="search"
126
-
x-model="param.value" />
127
-
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
loading('corpus', 'Fetching corpus from OpenAlex API');
78
+
works = await fetchWorksFromUrl(apiUrl, maxWorks);
79
+
done();
80
+
loading('filters', 'Processing corpus data');
81
+
setTimeout(() => {
82
+
data = processWorks(works);
83
+
filters = getFilters(data);
84
+
done();
85
+
}, 10);" >
86
+
<textareaid="apiurl"
87
+
class="card w-100"
88
+
placeholder="Paste the OpenAlex API URL here..."
89
+
type="text"
90
+
x-model="apiUrl"
91
+
@input="checkApiUrl(apiUrl) ? $el.setCustomValidity('') : $el.setCustomValidity('URL is invalid, it needs to look like: https://api.openalex.org/works?...');"
92
+
required></textarea>
93
+
<buttonclass="btn center-btn primary"
94
+
style="margin-top: 0.5em;">
95
+
Fetch Corpus
96
+
</button>
97
+
</form>
98
+
</template>
99
+
<templatex-if="tab === 'search'">
100
+
<form@submit.prevent="
101
+
loading('corpus', 'Fetching corpus from OpenAlex API');
placeholder="Search for words in works' title, abstract and full-text"
135
-
type="search"
136
-
x-model="param.value" />
137
-
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
138
-
</div>
139
-
</template>
140
-
<templatex-if="param.type === 'concept'">
141
-
<divx-data="{ ac: null, str: '' }"
142
-
x-init="param.concepts = param.concepts || [];
143
-
param.op = param.op || 'or';
144
-
$nextTick(() => ac = new autoComplete({selector: `#search-${index}`, ...autoCompleteConceptConfig}))">
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
146
+
</div>
147
+
</template>
148
+
<templatex-if="param.type === 'titleabs'">
149
+
<div>
150
+
<input:id="`value-${index}`"
151
+
class="card w-100"
152
+
placeholder="Search for words in works' title and abstract"
153
+
type="search"
154
+
x-model="param.value" />
155
+
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
156
+
</div>
157
+
</template>
158
+
<templatex-if="param.type === 'titleabsfull'">
159
+
<div>
160
+
<input:id="`value-${index}`"
161
+
class="card w-100"
162
+
placeholder="Search for words in works' title, abstract and full-text"
163
+
type="search"
164
+
x-model="param.value" />
165
+
<ahref="https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/search-entities#boolean-searches">Note that you can use boolean search in this field</a>
166
+
</div>
167
+
</template>
168
+
<templatex-if="param.type === 'concept'">
169
+
<divx-data="{ ac: null, str: '' }"
170
+
x-init="param.concepts = param.concepts || [];
171
+
param.op = param.op || 'or';
172
+
$nextTick(() => ac = new autoComplete({selector: `#search-${index}`, ...autoCompleteConceptConfig}))">
0 commit comments