소스 검색

Added link for publication URL

main
Simon Bowie 3 년 전
부모
커밋
fc88a94749
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +5
    -3
      site/public/index.php
  2. +3
    -3
      site/random.php

+ 5
- 3
site/public/index.php 파일 보기

@@ -18,11 +18,13 @@ echo $random_record['application_id'];

EPO publication:

<?php
<a href=<?php echo $random_record['publication_url']; ?>>
<?php

echo $random_record['publication_id'];
echo $random_record['publication_url'];

?>
?>
</a>

<br><br>


+ 3
- 3
site/random.php 파일 보기

@@ -31,11 +31,11 @@ function random_record (){
$application_id = json_encode($application_id[1]);
$output['application_id'] = $application_id;

// Search for the publication ID in the content element and display it
// Search for the publication URL in the content element and display it
$content = $json->response->docs[$random]->content;
preg_match('/Publication.*\n(.*)\n/', $content, $publication);
$publication_id = json_encode($publication[1]);
$output['publication_id'] = $publication_id;
$publication_url = json_encode($publication[1]);
$output['publication_url'] = $publication_url;

// Search for the title in the content element and display it
$content = $json->response->docs[$random]->content;

Loading…
취소
저장