Adds a data list to show serach suggestions
This commit is contained in:
parent
b2aab49b0d
commit
7e9d4ae64a
10 changed files with 214 additions and 200 deletions
12
scripts/create_university_list_data.sh
Executable file
12
scripts/create_university_list_data.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
echo "Reading entries from lists/canonical_names_of_german_institutions and writing them to web/data.js"
|
||||
|
||||
# remove all lines starting with \"
|
||||
sed '/^\"/d' ../lists/canonical_names_of_german_institutions.txt -i
|
||||
|
||||
# creating or overriding a data.js which holds the list of universities in js compatible format
|
||||
echo "const university_list = " > ../web/data.js
|
||||
|
||||
# convert raw list of universities to javascript compatible format
|
||||
jq -R -s -c 'split("\n")' < ../lists/canonical_names_of_german_institutions.txt >> ../web/data.js
|
Loading…
Add table
Add a link
Reference in a new issue