浏览代码

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 查看文件



EPO publication: 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> <br><br>



+ 3
- 3
site/random.php 查看文件

$application_id = json_encode($application_id[1]); $application_id = json_encode($application_id[1]);
$output['application_id'] = $application_id; $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; $content = $json->response->docs[$random]->content;
preg_match('/Publication.*\n(.*)\n/', $content, $publication); 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 // Search for the title in the content element and display it
$content = $json->response->docs[$random]->content; $content = $json->response->docs[$random]->content;

正在加载...
取消
保存