Browse Source

added additional themes

main
Simon Bowie 2 years ago
parent
commit
69514e1f0f
2 changed files with 27 additions and 3 deletions
  1. +5
    -1
      site/public/index.php
  2. +22
    -2
      solr_import.sh

+ 5
- 1
site/public/index.php View File



include '../solr.php'; include '../solr.php';


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


?> ?>


<option value="expanding">expanding</option> <option value="expanding">expanding</option>
<option value="invisible">invisible</option> <option value="invisible">invisible</option>
<option value="multispecies">multi-species</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="surviving">surviving</option>
<option value="working">working</option>
</select> </select>
sort by: sort by:
<select name="sort" id="sort"> <select name="sort" id="sort">

+ 22
- 2
solr_import.sh View File

Import() Import()
{ {
docker exec -it solr bin/solr delete -c $core docker exec -it solr bin/solr delete -c $core
docker exec -it solr solr create_core -c $core -d custom 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/" #docker exec -ti --user=solr solr bash -c "cp -r /opt/solr/example/files/conf/* /var/solr/data/$core/conf/"
directory="/Users/ad7588/projects/patent_site" directory="/Users/ad7588/projects/patent_site"


# Get the options # Get the options
while getopts ":hlimzaes" option; do
while getopts ":hlimzaespxdw" option; do
case $option in case $option in
l) # display License l) # display License
License License
location="data/pop_rtfs/MULTI-SPECIES (180)" location="data/pop_rtfs/MULTI-SPECIES (180)"
Import Import
exit;; 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 s) # index SURVIVING folder
core="surviving" core="surviving"
location="data/pop_rtfs/SURVIVING (166)" location="data/pop_rtfs/SURVIVING (166)"
Import Import
exit;; exit;;
w) # index WORKING folder
core="working"
location="data/pop_rtfs/WORKING (101)"
Import
exit;;
\?) # Invalid option \?) # Invalid option
echo "Error: Invalid option" echo "Error: Invalid option"
exit;; exit;;

Loading…
Cancel
Save