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>
|
||||
<input id="author" name="author" class="form-control" placeholder="Gail Simone" />
|
||||
</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">
|
||||
<label>
|
||||
Subject Heading<br>
|
||||
|
19
yourlink.php
19
yourlink.php
@ -3,21 +3,33 @@
|
||||
// Variable intake and sanitization
|
||||
$incomingurl = $_POST['url'];
|
||||
$url = filter_var($incomingurl, FILTER_SANITIZE_URL);
|
||||
|
||||
$incomingctx = $_POST['ctx'];
|
||||
$ctx = filter_var($incomingctx, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingkeywords = $_POST['keywords'];
|
||||
$keywords = filter_var($incomingkeywords, FILTER_SANITIZE_STRING);
|
||||
|
||||
$language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingtitle = $_POST['title'];
|
||||
$title = filter_var($incomingtitle, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingsubject= $_POST['subject'];
|
||||
$subject = filter_var($incomingsubject, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingauthor = $_POST['author'];
|
||||
$author = filter_var($incomingauthor, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingcallno = $_POST['callnumber'];
|
||||
$callnumber = filter_var($incomingcallno, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingmaterial = $_POST['material'];
|
||||
$material = filter_var($incomingmaterial, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingcollection = $_POST['collection'];
|
||||
$collection = filter_var($incomingcollection, FILTER_SANITIZE_STRING);
|
||||
|
||||
$incomingtom = filter_input(INPUT_POST, 'tom', FILTER_SANITIZE_STRING);
|
||||
|
||||
|
||||
@ -44,6 +56,10 @@ if (!empty($author)) {
|
||||
$au = $searchjoiner.'au='.$author;
|
||||
}
|
||||
|
||||
if (!empty($callnumber)) {
|
||||
$call = $searchjoiner.'call='.$callnumber;
|
||||
}
|
||||
|
||||
if (!empty($material)) {
|
||||
$mat = $searchjoiner.'mat='.$material;
|
||||
}
|
||||
@ -63,7 +79,7 @@ if (!empty($title)) {
|
||||
$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>Title:</strong> '.$title.'<br />';
|
||||
echo '<strong>Author:</strong> '.$author.'<br />';
|
||||
echo '<strong>Call:</strong> '.$callnumber.'<br />';
|
||||
echo '<strong>Subjects:</strong> '.$subject.'<br />';
|
||||
echo '<strong>Material Type Code:</strong> '.$material.'<br />';
|
||||
echo '<strong>Collection Code:</strong> '.$collection.'<br />';
|
||||
|
Reference in New Issue
Block a user