Added parameter: Call Number.
This commit is contained in:
@ -104,6 +104,12 @@
|
|||||||
</label><span class="far fa-question-circle icon-sm" data-placement="right" data-toggle="tooltip" title="Search by author"></span>
|
</label><span class="far fa-question-circle icon-sm" data-placement="right" data-toggle="tooltip" title="Search by author"></span>
|
||||||
<input id="author" name="author" class="form-control" placeholder="Gail Simone" />
|
<input id="author" name="author" class="form-control" placeholder="Gail Simone" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>
|
||||||
|
Call Number<br>
|
||||||
|
</label><span class="far fa-question-circle icon-sm" data-placement="right" data-toggle="tooltip" title="Search by call number - wildcards accepted"></span>
|
||||||
|
<input id="callnumber" name="callnumber" class="form-control" placeholder="Examples: 005.72 or 921.*" />
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>
|
<label>
|
||||||
Subject Heading<br>
|
Subject Heading<br>
|
||||||
|
19
yourlink.php
19
yourlink.php
@ -3,21 +3,33 @@
|
|||||||
// Variable intake and sanitization
|
// Variable intake and sanitization
|
||||||
$incomingurl = $_POST['url'];
|
$incomingurl = $_POST['url'];
|
||||||
$url = filter_var($incomingurl, FILTER_SANITIZE_URL);
|
$url = filter_var($incomingurl, FILTER_SANITIZE_URL);
|
||||||
|
|
||||||
$incomingctx = $_POST['ctx'];
|
$incomingctx = $_POST['ctx'];
|
||||||
$ctx = filter_var($incomingctx, FILTER_SANITIZE_STRING);
|
$ctx = filter_var($incomingctx, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingkeywords = $_POST['keywords'];
|
$incomingkeywords = $_POST['keywords'];
|
||||||
$keywords = filter_var($incomingkeywords, FILTER_SANITIZE_STRING);
|
$keywords = filter_var($incomingkeywords, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
|
$language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingtitle = $_POST['title'];
|
$incomingtitle = $_POST['title'];
|
||||||
$title = filter_var($incomingtitle, FILTER_SANITIZE_STRING);
|
$title = filter_var($incomingtitle, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingsubject= $_POST['subject'];
|
$incomingsubject= $_POST['subject'];
|
||||||
$subject = filter_var($incomingsubject, FILTER_SANITIZE_STRING);
|
$subject = filter_var($incomingsubject, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingauthor = $_POST['author'];
|
$incomingauthor = $_POST['author'];
|
||||||
$author = filter_var($incomingauthor, FILTER_SANITIZE_STRING);
|
$author = filter_var($incomingauthor, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
|
$incomingcallno = $_POST['callnumber'];
|
||||||
|
$callnumber = filter_var($incomingcallno, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingmaterial = $_POST['material'];
|
$incomingmaterial = $_POST['material'];
|
||||||
$material = filter_var($incomingmaterial, FILTER_SANITIZE_STRING);
|
$material = filter_var($incomingmaterial, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingcollection = $_POST['collection'];
|
$incomingcollection = $_POST['collection'];
|
||||||
$collection = filter_var($incomingcollection, FILTER_SANITIZE_STRING);
|
$collection = filter_var($incomingcollection, FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
$incomingtom = filter_input(INPUT_POST, 'tom', FILTER_SANITIZE_STRING);
|
$incomingtom = filter_input(INPUT_POST, 'tom', FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
|
|
||||||
@ -44,6 +56,10 @@ if (!empty($author)) {
|
|||||||
$au = $searchjoiner.'au='.$author;
|
$au = $searchjoiner.'au='.$author;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($callnumber)) {
|
||||||
|
$call = $searchjoiner.'call='.$callnumber;
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($material)) {
|
if (!empty($material)) {
|
||||||
$mat = $searchjoiner.'mat='.$material;
|
$mat = $searchjoiner.'mat='.$material;
|
||||||
}
|
}
|
||||||
@ -63,7 +79,7 @@ if (!empty($title)) {
|
|||||||
$urlend = $searchsuffix;
|
$urlend = $searchsuffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
$SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmiddle, $la, $au, $kw, $su, $mat, $col, $tom, $urlend)));
|
$SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmiddle, $la, $au, $call, $kw, $su, $mat, $col, $tom, $urlend)));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -157,6 +173,7 @@ $SearchURL = implode("", array_filter(array($url, $searchprefix, $ctx, $searchmi
|
|||||||
echo '<strong>Keyword(s):</strong> '.$keywords.'<br />';
|
echo '<strong>Keyword(s):</strong> '.$keywords.'<br />';
|
||||||
echo '<strong>Title:</strong> '.$title.'<br />';
|
echo '<strong>Title:</strong> '.$title.'<br />';
|
||||||
echo '<strong>Author:</strong> '.$author.'<br />';
|
echo '<strong>Author:</strong> '.$author.'<br />';
|
||||||
|
echo '<strong>Call:</strong> '.$callnumber.'<br />';
|
||||||
echo '<strong>Subjects:</strong> '.$subject.'<br />';
|
echo '<strong>Subjects:</strong> '.$subject.'<br />';
|
||||||
echo '<strong>Material Type Code:</strong> '.$material.'<br />';
|
echo '<strong>Material Type Code:</strong> '.$material.'<br />';
|
||||||
echo '<strong>Collection Code:</strong> '.$collection.'<br />';
|
echo '<strong>Collection Code:</strong> '.$collection.'<br />';
|
||||||
|
Reference in New Issue
Block a user