This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SelectDocDeliveryType.html
75 lines (75 loc) · 3.83 KB
/
SelectDocDeliveryType.html
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<head>
<title>Select Document Delivery Type</title>
<#INCLUDE filename="include_head.html">
</head>
<!--<style>
a.docDeliveryLink {
text-decoration: underline;
}
</style>-->
<body id="type-b">
<div id="wrap">
<#INCLUDE filename="include_header.html">
<div id="content-wrap">
<#INCLUDE filename="include_menu.html">
<div id="content">
<h1>Select document delivery type</h1>
<!--<div>
<p><a id="intracampusDelivery" class="docDeliveryLink" href="https://ua.illiad.oclc.org/illiad/illiad.dll?Action=10&Form=21&docdelivery=true&intracampus=true">Intracampus Delivery</a></p>
<p>Click "Intracampus Delivery" to request an interlibrary loan item be delivered to your campus mailbox. Only faculty may use this service.</p>
</div>
<br><br>-->
<div>
<p><a id="docDeliveryCopy" class="docDeliveryLink" href="<#ACTION action=" 10"
form="22">&docdelivery=true&catalog=true">UA Scan Express </a></p>
<p>Click "UA Scan Express " to request a photocopy of a book chapter or journal article we have in
print (this includes Annex requests). </p>
</div>
<br><br>
<div>
<p><a id="docDeliveryLoan" class="docDeliveryLink" href="<#ACTION action=" 10"
form="21">&docdelivery=true&catalog=true">UA Materials Express</a></p>
<p>Click "UA Materials Express" to request document delivery for items we have in print (this includes
Annex requests). You can choose a pickup library for an item, or faculty can have items delivered to
their campus mailbox via intracampus mail. </p>
</div>
<#INCLUDE filename="include_footer.html">
</div>
</div>
<script>
var index = document.location.search.indexOf('value=SelectDocDeliveryType');
var querystring = document.location.search.substring(index);
querystring = querystring.replace('value=SelectDocDeliveryType', '');
console.log(querystring);
var copyLink = document.querySelector('#docDeliveryCopy').getAttribute('href');
if (copyLink) {
newQuerystring = querystring.replace('&loantitle', '&photojournaltitle');
newQuerystring = newQuerystring.replace('&loanauthor', '&photoarticleauthor');
newQuerystring = newQuerystring.replace('&loantitle', '&photojournaltitle');
newQuerystring = newQuerystring.replace('&loanauthor', '&photoarticleauthor');
//newQuerystring = newQuerystring.replace(/&loan/gi, '&photoarticle');
console.log("newQueryString is");
console.log(newQuerystring);
var newLink = copyLink + newQuerystring;
document.querySelector('#docDeliveryCopy').setAttribute('href', newLink);
}
var loanLink = document.querySelector('#docDeliveryLoan').getAttribute('href');
if (loanLink) {
newQuerystring = querystring.replace('&photojournaltitle', '&loantitle');
newQuerystring = newQuerystring.replace('&photojournaltitle', '&loantitle')
if (document.location.search.indexOf('photojournaltitle') != -1) {
newQuerystring = newQuerystring + '&serialloanrequest=true';
}
var newLink = loanLink + newQuerystring;
document.querySelector('#docDeliveryLoan').setAttribute('href', newLink);
}
/*var intracampusLink = document.querySelector('#intracampusDelivery').getAttribute('href');
if (intracampusLink){
var newLink = copyLink + '&' querystring;
document.querySelector('#intracampusDelivery').setAttribute('href', newLink);
}*/
</script>
</div>
</body>
</html>