Bladeren bron

added additional themes

main
Simon Bowie 2 jaren geleden
bovenliggende
commit
69514e1f0f
2 gewijzigde bestanden met toevoegingen van 27 en 3 verwijderingen
  1. +5
    -1
      site/public/index.php
  2. +22
    -2
      solr_import.sh

+ 5
- 1
site/public/index.php Bestand weergeven

@@ -9,7 +9,7 @@

include '../solr.php';

$cores = array("active", "expanding", "invisible", "multispecies", "surviving");
$cores = array("active", "expanding", "invisible", "multispecies", "pissing", "secret", "defending", "surviving", "working");

?>

@@ -42,7 +42,11 @@ $cores = array("active", "expanding", "invisible", "multispecies", "surviving");
<option value="expanding">expanding</option>
<option value="invisible">invisible</option>
<option value="multispecies">multi-species</option>
<option value="pissing">pissing & leaking</option>
<option value="secret">secret</option>
<option value="defending">self-defending</option>
<option value="surviving">surviving</option>
<option value="working">working</option>
</select>
sort by:
<select name="sort" id="sort">

+ 22
- 2
solr_import.sh Bestand weergeven

@@ -43,7 +43,7 @@ Help()
Import()
{
docker exec -it solr bin/solr delete -c $core
docker exec -it solr solr create_core -c $core -d custom

#docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/"
@@ -64,7 +64,7 @@ Import()
directory="/Users/ad7588/projects/patent_site"

# Get the options
while getopts ":hlimzaes" option; do
while getopts ":hlimzaespxdw" option; do
case $option in
l) # display License
License
@@ -97,11 +97,31 @@ while getopts ":hlimzaes" option; do
location="data/pop_rtfs/MULTI-SPECIES (180)"
Import
exit;;
p) # index PISSING & LEAKING folder
core="pissing"
location="data/pop_rtfs/PISSING & LEAKING (168)"
Import
exit;;
x) # index SECRET folder
core="secret"
location="data/pop_rtfs/SECRET (92)"
Import
exit;;
d) # index SELF-DEFENDING folder
core="defending"
location="data/pop_rtfs/SELF-DEFENDING (115)"
Import
exit;;
s) # index SURVIVING folder
core="surviving"
location="data/pop_rtfs/SURVIVING (166)"
Import
exit;;
w) # index WORKING folder
core="working"
location="data/pop_rtfs/WORKING (101)"
Import
exit;;
\?) # Invalid option
echo "Error: Invalid option"
exit;;

Laden…
Annuleren
Opslaan