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> |
//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; | ||||
} | } | ||||
?> | ?> |
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> |