|
|
@@ -160,10 +160,10 @@ function one_random_record ($core){ |
|
|
|
return $output; |
|
|
|
} |
|
|
|
|
|
|
|
function ten_random_titles (){ |
|
|
|
function ten_random_titles ($core){ |
|
|
|
|
|
|
|
for ($x=0; $x <= 9; $x++) { |
|
|
|
$random = get_random_record(); |
|
|
|
$random = get_random_record($core); |
|
|
|
|
|
|
|
foreach($random as $id => $content){ |
|
|
|
// Search for the title in the content element and display it |
|
|
@@ -175,10 +175,10 @@ function ten_random_titles (){ |
|
|
|
return $output; |
|
|
|
} |
|
|
|
|
|
|
|
function ten_random_abstracts (){ |
|
|
|
function ten_random_abstracts ($core){ |
|
|
|
|
|
|
|
for ($x=0; $x <= 9; $x++) { |
|
|
|
$random = get_random_record(); |
|
|
|
$random = get_random_record($core); |
|
|
|
|
|
|
|
foreach($random as $id => $content){ |
|
|
|
// Search for the abstract in the content element and display it |
|
|
@@ -194,11 +194,11 @@ function ten_random_abstracts (){ |
|
|
|
return $output; |
|
|
|
} |
|
|
|
|
|
|
|
function ten_random_doc_refs (){ |
|
|
|
function ten_random_doc_refs ($core){ |
|
|
|
|
|
|
|
$x = 0; |
|
|
|
while ($x < 9) { |
|
|
|
$random = get_random_record(); |
|
|
|
$random = get_random_record($core); |
|
|
|
|
|
|
|
foreach($random as $id => $content){ |
|
|
|
//Set document reference number (used for OPS API) |