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