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



foreach($search_results as $result): foreach($search_results as $result):


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

?> ?>
Application ID: Application ID:


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


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


Abstract:
Original language title:


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


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


<?
endif;
<?php
endif;
?> ?>



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

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


Original language title:
Abstract:


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


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


<?php
endif;
<?
endif;
?> ?>


<?php <?php
if (check_for_images($result['doc_ref'])): 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> </iframe>


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

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

//Display the image in the browser //Display the image in the browser
header('Content-type: application/pdf'); header('Content-type: application/pdf');
echo $image_output; echo $image_output;
} }


?> ?>

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

include '../ops_api.php'; include '../ops_api.php';


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


?> ?>


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


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

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


Abstract:
Original language title:


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


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


<?
endif;
<?php
endif;
?> ?>


<?php <?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 <?php
echo $publication_details['original_title'];
echo $random_record['abstract'];
?> ?>


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


<?php
endif;
<?
endif;
?> ?>


<?php <?php
if (check_for_images($random_record['doc_ref'])): 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> </iframe>


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

Loading…
Cancel
Save