Browse Source

changes to accomodate full dataset

main
Simon Bowie 2 years ago
parent
commit
053ef69e29
3 changed files with 13 additions and 4 deletions
  1. +10
    -1
      site/ops_api.php
  2. +2
    -2
      site/public/css/style.css
  3. +1
    -1
      solr_import.sh

+ 10
- 1
site/ops_api.php View File

@@ -143,7 +143,16 @@ function get_images($document_reference){
$xml = new SimpleXMLElement($response);

// Retrieve image path from that XML
$drawings_url = $_ENV["OPS_URL_IMAGES"] . '3.2/rest-services/' . $xml->xpath("///ops:document-instance[@desc='Drawing']/@link")[0][0]->__toString() . '?Range=1';
if (isset($xml->xpath("///ops:document-instance[@desc='Drawing']/@link")[0][0])) {

$drawings_url = $_ENV["OPS_URL_IMAGES"] . '3.2/rest-services/' . $xml->xpath("///ops:document-instance[@desc='Drawing']/@link")[0][0]->__toString() . '?Range=1';

}
else {

$drawings_url = $_ENV["OPS_URL_IMAGES"] . '3.2/rest-services/' . $xml->xpath("///ops:document-instance[@desc='FullDocument']/@link")[0][0]->__toString() . '?Range=1';

}

// Set up API call
$ch = curl_init();

+ 2
- 2
site/public/css/style.css View File

@@ -1,11 +1,11 @@
@font-face {
/* @font-face {
font-family: 'Rubik Moonrocks';
src: url('fonts/RubikMoonrocks-Regular.ttf');
}

body {
font-family: 'Rubik Moonrocks';
}
} */

.btn-link {
border: none;

+ 1
- 1
solr_import.sh View File

@@ -78,7 +78,7 @@ while getopts ":hlimzaespxdw" option; do
exit;;
z) # index all
core="all"
location="data/pop_rtfs"
location="data/POP Dataset 2022"
Import
exit;;
a) # index ACTIVE folder

Loading…
Cancel
Save