Browse Source

Tidying up

main
Simon Bowie 3 years ago
parent
commit
a7f8d8fb79
3 changed files with 31 additions and 32 deletions
  1. +15
    -16
      site/public/id_search.php
  2. +1
    -1
      site/public/ops_image.php
  3. +15
    -15
      site/public/random.php

+ 15
- 16
site/public/id_search.php View File

@@ -31,6 +31,8 @@ include '../ops_api.php'

foreach($search_results as $result):

$publication_details = get_publication_details($result['doc_ref']);

?>
Application ID:

@@ -69,38 +71,35 @@ include '../ops_api.php'
<br><br>

<?php
if ($result['abstract']):
if (isset($publication_details['original_title'])):
?>

Abstract:
Original language title:

<?php
echo $result['abstract'];
echo $publication_details['original_title'];
?>

<br><br>
<br><br>

<?
endif;
<?php
endif;
?>


<?php
$publication_details = get_publication_details($result['doc_ref']);

if (isset($publication_details['original_title'])):
if ($result['abstract']):
?>

Original language title:
Abstract:

<?php
echo $publication_details['original_title'];
echo $result['abstract'];
?>

<br><br>
<br><br>

<?php
endif;
<?
endif;
?>

<?php
@@ -124,7 +123,7 @@ include '../ops_api.php'
if (check_for_images($result['doc_ref'])):
?>

<iframe src="./ops_image.php?doc_ref=<?php echo $result['doc_ref'] ?>" width="100%" height="500px">
<iframe src="./ops_image.php?doc_ref=<?php echo $result['doc_ref'] ?>#view=fitH" height="780px" width="100%">
</iframe>

<br><br>

+ 1
- 1
site/public/ops_image.php View File

@@ -16,7 +16,7 @@ if(isset($_GET["doc_ref"])){
//Display the image in the browser
header('Content-type: application/pdf');
echo $image_output;
}

?>

+ 15
- 15
site/public/random.php View File

@@ -11,6 +11,7 @@ include '../solr.php';
include '../ops_api.php';

$random_record = one_random_record();
$publication_details = get_publication_details($random_record['doc_ref']);

?>

@@ -63,37 +64,36 @@ $random_record = one_random_record();
<br><br>

<?php
if ($random_record['abstract']):

if (isset($publication_details['original_title'])):
?>

Abstract:
Original language title:

<?php
echo $random_record['abstract'];
echo $publication_details['original_title'];
?>

<br><br>
<br><br>

<?
endif;
<?php
endif;
?>

<?php
$publication_details = get_publication_details($random_record['doc_ref']);

if (isset($publication_details['original_title'])):
if ($random_record['abstract']):
?>

Original language title:
Abstract:

<?php
echo $publication_details['original_title'];
echo $random_record['abstract'];
?>

<br><br>
<br><br>

<?php
endif;
<?
endif;
?>

<?php
@@ -117,7 +117,7 @@ $random_record = one_random_record();
if (check_for_images($random_record['doc_ref'])):
?>

<iframe src="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>" width="100%" height="500px">
<iframe src="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>#view=fitH" height="780px" width="100%">
</iframe>

<br><br>

Loading…
Cancel
Save