Added Material Type and TOM.
This commit is contained in:
16
yourlink.php
16
yourlink.php
@ -14,6 +14,10 @@ $incomingsubject= $_POST['subject'];
|
||||
$subject = filter_var($incomingsubject, FILTER_SANITIZE_STRING);
|
||||
$incomingauthor = $_POST['author'];
|
||||
$author = filter_var($incomingauthor, FILTER_SANITIZE_STRING);
|
||||
$incomingmaterial = $_POST['material'];
|
||||
$material = filter_var($incomingmaterial, FILTER_SANITIZE_STRING);
|
||||
$incomingtom = filter_input(INPUT_POST, 'tom', FILTER_SANITIZE_STRING);
|
||||
|
||||
|
||||
// Global variables used for URL construction
|
||||
$searchprefix = "/search/searchresults.aspx?ctx=";
|
||||
@ -38,6 +42,14 @@ if (!empty($author)) {
|
||||
$au = $searchjoiner.'au='.$author;
|
||||
}
|
||||
|
||||
if (!empty($material)) {
|
||||
$mat = $searchjoiner.'mat='.$material;
|
||||
}
|
||||
|
||||
if (!empty($incomingtom)) {
|
||||
$tom = $searchjoiner.'tom='.$incomingtom;
|
||||
}
|
||||
|
||||
// Title status determines end of URL
|
||||
if (!empty($title)) {
|
||||
$urlend = $searchjoiner.'ti='.$title.$searchsuffix;
|
||||
@ -45,7 +57,7 @@ if (!empty($title)) {
|
||||
$urlend = $searchsuffix;
|
||||
}
|
||||
|
||||
$SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmiddle, $la, $au, $kw, $su, $urlend)));
|
||||
$SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmiddle, $la, $au, $kw, $su, $mat, $tom, $urlend)));
|
||||
|
||||
?>
|
||||
|
||||
@ -140,6 +152,8 @@ $SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmi
|
||||
echo '<strong>Title:</strong> '.$title.'<br />';
|
||||
echo '<strong>Author:</strong> '.$author.'<br />';
|
||||
echo '<strong>Subjects:</strong> '.$subject.'<br />';
|
||||
echo '<strong>Material Type Code:</strong> '.$material.'<br />';
|
||||
echo '<strong>Type of Material:</strong> '.$incomingtom.'<br />';
|
||||
echo '<strong>Langauge:</strong> '.$language.'<br />';
|
||||
?>
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user