-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowse.php
60 lines (57 loc) · 1.77 KB
/
browse.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
require_once('db.inc.php');
$moreinsert='';
include('header.inc.php');
$findid='find';
?>
<div class="grid small">
<div class="twelve columns">
<h1><a href="/">License Information</a></h1>
<?php
if(!empty($msg)){
echo '<div class="message">'.$msg.'</div>';
}
if(isset($_GET['initial'])){
$initial=$_GET['initial'];
$res=$db->findByInitial($initial);
if($res){
include('a-z.inc.php');?>
<form id="license-form">
<div>
<label for="<?php echo $findid; ?>">Find license by package title</label>
<input name="find" id="<?php echo $findid; ?>" type="text" />
</div>
</form>
<hr/>
<?php
echo '<ul id="byinitial">';
foreach($res as $row){
echo '<li><a href="'.BASE_URL.$row['tag'].'">'.$row['title'].'</a></li>';
}
echo '</ul>';
}
}else{
$blurb=$db->getHTML('blurb').$db->getHTML('legal');
if(trim($blurb)){
echo '
<div class="center">
<a href="http://search.library.ubc.ca/#journals" class="large button">Search for Journal Titles and Their Permitted Uses</a>
</div>
<div id="blurb">'.$blurb.'</div>
<h3>Looking for an Electronic Resource License?</h3>
<p>License permissions can also be searched by the name of an entire <em>collection</em> or <em>package</em> of electronic journals or e-books, for example: Elsevier ScienceDirect. For permissions related to a specific journal article, please use the <a href="http://search.library.ubc.ca/#journals">Journals</a> search instead.</p>
';
include('a-z.inc.php');?>
<form id="license-form">
<div>
<label for="<?php echo $findid; ?>">Find license by package title</label>
<input name="find" id="<?php echo $findid; ?>" type="text" />
</div>
</form>
<?php
}
echo '</div>';
}
?>
</div>
<?php include('footer.inc.php');?>