forked from Aspen-Discovery/aspen-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount-sidebar.tpl
315 lines (307 loc) · 18.3 KB
/
account-sidebar.tpl
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
{strip}
{if !empty($loggedIn)}
{* Setup the accordion *}
<!--suppress HtmlUnknownTarget -->
<div id="home-account-links" class="sidebar-links row">
<div class="panel-group accordion" id="account-link-accordion">
{if !empty($showMyAccount)}
<div class="panel active">
{* With SidebarMenu on, we should always keep the MyAccount Panel open. *}
{* Clickable header for your account section *}
<a data-toggle="collapse" href="#myAccountPanel" aria-label="{translate text="Your Account Menu" inAttribute="true" isPublicFacing=true}">
<div class="panel-heading">
<div class="panel-title">
{*Your ACCOUNT*}
{translate text="Your Account" isPublicFacing=true}
</div>
</div>
</a>
{* This content is duplicated in MyAccount/mobilePageHeader.tpl; Update any changes there as well *}
<div id="myAccountPanel" class="panel-collapse collapse in">
<div class="panel-body">
{if empty($offline)}
<span class="expirationNotice-placeholder"></span>
{/if}
{if !empty($userHasCatalogConnection) && (!$offline || $enableEContentWhileOffline) && $showUserCirculationModules}
<div class="myAccountLink">
<a href="/MyAccount/CheckedOut" id="checkedOut">
{translate text="Checked Out Titles" isPublicFacing=true}
</a>
</div>
<ul class="account-submenu">
{if empty($offline)}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=ils" id="checkedOutIls" title="View checkouts of physical materials">
{translate text="Physical Materials" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="ils-checkouts-placeholder">??</span></span> <span class="ils-overdue" style="display: none"> <span class="label label-danger"><span class="ils-overdue-placeholder"></span> {translate text="Overdue" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('overdrive')}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=overdrive" id="checkedOutOverDrive" title="View checkouts from OverDrive">
{$readerName} {if empty($offline)}<span class="badge"><span class="overdrive-checkouts-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('hoopla')}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=hoopla" id="checkedOutHoopla" title="View checkouts from Hoopla">
{translate text="Hoopla" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="hoopla-checkouts-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('palace_project')}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=palace_project" id="checkedOutPalaceProject" title="View checkouts from Palace Project">
{translate text="Palace Project" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="palace_project-checkouts-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('cloud_library')}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=cloud_library" id="checkedOutCloudLibrary" title="View checkouts from CloudLibrary">
{translate text="cloudLibrary" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="cloud_library-checkouts-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('axis360')}
<li class="myAccountLink">
»
<a href="/MyAccount/CheckedOut?tab=axis360" id="checkedOutAxis360" title="View checkouts from Boundless">
{translate text="Boundless" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="axis360-checkouts-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
</ul>
<div class="myAccountLink">
<a href="/MyAccount/Holds" id="holds">
{translate text="Titles On Hold" isPublicFacing=true}
</a>
</div>
<ul class="account-submenu">
{if empty($offline)}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=ils" id="holdsIls" title="View holds on physical materials">
{translate text="Physical Materials" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="ils-holds-placeholder">??</span></span> <span class="ils-available-holds" style="display: none"> <span class="label label-success"><span class="ils-available-holds-placeholder"></span> {translate text="Ready for Pickup" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
{if $user->getInterlibraryLoanType() == 'vdx' || $user->getInterlibraryLoanType() == 'oclc_resource_sharing_for_groups'}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=interlibrary_loan" id="holdsInterlibraryLoan" title="View Interlibrary Loan Requests">
{translate text="Interlibrary Loan Requests" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="interlibrary-loan-requests-placeholder">??</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('overdrive')}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=overdrive" id="holdsOverDrive" title="View holds from OverDrive">
{$readerName} {if empty($offline)}<span class="badge"><span class="overdrive-holds-placeholder">??</span></span> <span class="overdrive-available-holds" style="display: none"> <span class="label label-success"><span class="overdrive-available-holds-placeholder"></span> {translate text="Available Now" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('palace_project')}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=palace_project" id="holdsPalaceProject" title="View holds from Palace Project">
{translate text="Palace Project" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="palace_project-holds-placeholder">??</span></span> <span class="palace_project-available-holds" style="display: none"> <span class="label label-success"><span class="palace_project-available-holds-placeholder"></span> {translate text="Available Now" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('cloud_library')}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=cloud_library" id="holdsCloudLibrary" title="View holds from CloudLibrary">
{translate text="cloudLibrary" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="cloud_library-holds-placeholder">??</span></span> <span class="cloud_library-available-holds" style="display: none"> <span class="label label-success"><span class="cloud_library-available-holds-placeholder"></span> {translate text="Available Now" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
{if $user->isValidForEContentSource('axis360')}
<li class="myAccountLink">
»
<a href="/MyAccount/Holds?tab=axis360" id="holdsAxis360" title="View holds from Boundless">
{translate text="Boundless" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="axis360-holds-placeholder">??</span></span> <span class="axis360-available-holds" style="display: none"> <span class="label label-success"><span class="axis360-available-holds-placeholder"></span> {translate text="Available Now" isPublicFacing=true}</span></span>{/if}
</a>
</li>
{/if}
</ul>
{if empty($offline)}
{if !empty($showCurbsidePickups)}
<div class="myAccountLink" title="Curbside Pickups">
<a href="/MyAccount/CurbsidePickups">{translate text='Curbside Pickups' isPublicFacing=true}</a>
</div>
{/if}
{if !empty($showFines)}
<div class="myAccountLink" title="Fines">
<a href="/MyAccount/Fines">{translate text='Fines' isPublicFacing=true} <span class="finesBadge-placeholder"><span class="badge">??</span></span></a>
</div>
{/if}
{if !empty($enablePaymentHistory)}
<div class="myAccountLink" title="Payment History">
<a href="/MyAccount/PaymentHistory">{translate text='Payment History' isPublicFacing=true}</a>
</div>
{/if}
{if !empty($enableNotificationHistory)}
<div class="myAccountLink" title="Notification History">
<a href="/MyAccount/NotificationHistory">{translate text='Notification History' isPublicFacing=true}</a>
</div>
{/if}
{/if}
{/if}
{if $user->canSuggestMaterials()}
{if $materialRequestType == 1 && $enableAspenMaterialsRequest && $displayMaterialsRequest}
<div class="myAccountLink materialsRequestLink" title="{translate text='Materials Requests' inAttribute=true isPublicFacing=true}">
<a href="/MaterialsRequest/MyRequests">{translate text='Materials Requests' isPublicFacing=true} <span class="badge"><span class="materialsRequests-placeholder">??</span></span></a>
</div>
{elseif $materialRequestType == 2 && empty($offline) && $userHasCatalogConnection && $displayMaterialsRequest}
<div class="myAccountLink" title="{translate text='Materials Requests' inAttribute=true isPublicFacing=true}">
<a href="/MaterialsRequest/IlsRequests">{translate text='Materials Requests' isPublicFacing=true} <span class="badge"><span class="materialsRequests-placeholder">??</span></span></a>
</div>
{/if}
{/if}
{if !empty($userHasCatalogConnection) && $showUserCirculationModules}
<div class="myAccountLink libraryCardLink" title="{translate text='Your Library Card(s)' inAttribute=true isPublicFacing=true}">
<a href="/MyAccount/LibraryCard">{if !empty($showAlternateLibraryCard)}{translate text='Your Library Card(s)' isPublicFacing=true}{else}{translate text='Your Library Card' isPublicFacing=true}{/if}</a>
</div>
{/if}
{if empty($offline)}
{if $showRatings || $enableSavedSearches || (($enableReadingHistory || $enableCostSavings) && $userHasCatalogConnection) || $showFavorites}
<hr class="menu">
{/if}
{if !empty($showRatings)}
<div class="myAccountLink"><a href="/MyAccount/SuggestedTitles">{translate text='Recommended For You' isPublicFacing=true}</span></a></div>
<ul class="account-submenu">
{if $user->disableRecommendations == 0}
<li class="myAccountLink"> » <a href="/MyAccount/MyRatings">{translate text='Titles You Rated' isPublicFacing=true} <span class="badge"><span class="ratings-placeholder">??</span></span></a></li>
<li class="myAccountLink"> » <a href="/MyAccount/MyNotInterestedTitles">{translate text="Not Interested In Titles" isPublicFacing=true} <span class="badge"><span class="notInterested-placeholder">??</span></span></a></li>
{/if}
</ul>
{/if}
{if $showFavorites == 1}
<div class="myAccountLink"><a href="/MyAccount/Lists">{translate text='Your Lists' isPublicFacing=true}</a></div>
{/if}
{if !empty($enableSavedSearches)}
{* Only highlight saved searches as active if user is logged in: *}
<div class="myAccountLink"><a href="/Search/History?require_login">{translate text='Your Searches' isPublicFacing=true}</a> <span class="label badge-updated newSavedSearchBadge" style="display: none"><span class="saved-searches-placeholder">??</span></span></div>
{/if}
{if $hasEventSettings}
<div class="myAccountLink"><a href="/MyAccount/MyEvents">{translate text='Your Events' isPublicFacing=true}</a></div>
{/if}
{if !empty($enableReadingHistory) && $userHasCatalogConnection}
<div class="myAccountLink">
<a href="/MyAccount/ReadingHistory">
{translate text="Reading History" isPublicFacing=true} {if empty($offline)}<span class="badge"><span class="readingHistory-placeholder">??</span></span>{/if}
</a>
</div>
{if $hasYearInReview}
<ul class="account-submenu">
{if $yearInReviewViewed}
<li class="myAccountLink"> » <a href="/MyAccount/YearInReviewSummary">{translate text=$yearInReviewName isPublicFacing=true}</span></a></li>
{else}
<li class="myAccountLink"> » <a onclick="return AspenDiscovery.Account.viewYearInReview(1);">{translate text=$yearInReviewName isPublicFacing=true} <span class="badge"><span>{translate text="View Now" isPublicFacing=true}</span></span></a></li>
{/if}
</ul>
{/if}
{/if}
{if !empty($enableCostSavings) && $userHasCatalogConnection}
<div class="myAccountLink">
<a href="/MyAccount/LibrarySavings">
{translate text="Library Savings" isPublicFacing=true}
</a>
</div>
{/if}
{/if}
</div>
</div>
</div>
{if $action=='MyPreferences' || $action=='ContactInformation' || $action=='MessagingSettings' || $action=='LinkedAccounts' || $action=='Security' || $action=='ResetPinPage' || $action=='OverDriveOptions' || $action=='HooplaOptions' || $action=='Axis360Options' || $action=='StaffSettings' || $action=='HoldNotificationPreferences' || $action=='ResetUsername'}
{assign var="curSection" value=true}
{else}
{assign var="curSection" value=false}
{/if}
{/if}
{if !empty($showAccountSettings)}
<div class="panel {if ($curSection || !$showMyAccount)}active{/if}">
{* Clickable header for account settings section *}
<a data-toggle="collapse" href="#mySettingsPanel" aria-label="{translate text="Account Settings Menu" inAttribute="true" isPublicFacing=true}">
<div class="panel-heading">
<div class="panel-title">
{translate text="Account Settings" isPublicFacing=true}
</div>
</div>
</a>
<div id="mySettingsPanel" class="panel-collapse collapse {if ($curSection || !$showMyAccount)}in{/if}">
<div class="panel-body">
{if empty($offline)}
{if !empty($showUserPreferences)}<div class="myAccountLink"><a href="/MyAccount/MyPreferences">{translate text='Your Preferences' isPublicFacing=true}</a></div>{/if}
{if $cookieConsentEnabled} <div class="header-menu-option"><a href="/MyAccount/MyCookiePreferences">{translate text="Your Privacy Settings" isPublicFacing=true}</a></div>{/if}
{if !empty($showUserContactInformation) && $userHasCatalogConnection}<div class="myAccountLink"><a href="/MyAccount/ContactInformation">{translate text='Contact Information' isPublicFacing=true}</a></div>{/if}
{if $user->showHoldNotificationPreferences()}
<div class="myAccountLink"><a href="/MyAccount/HoldNotificationPreferences">{translate text='Hold Notification Preferences' isPublicFacing=true}</a></div>
{/if}
{if $user->showMessagingSettings()}
<div class="myAccountLink"><a href="/MyAccount/MessagingSettings">{translate text='Messaging Settings' isPublicFacing=true}</a></div>
{/if}
{if !empty($allowAccountLinking) && $userHasCatalogConnection}
<div class="myAccountLink"><a href="/MyAccount/LinkedAccounts">{translate text='Linked Accounts' isPublicFacing=true}</a></div>
{/if}
{if !empty($twoFactorEnabled)}
<div class="myAccountLink"><a href="/MyAccount/Security">{translate text='Security Settings' isPublicFacing=true}</a></div>
{/if}
{if !empty($showResetUsernameLink)}
<div class="myAccountLink" ><a href="/MyAccount/ResetUsername">{translate text='Reset Username' isPublicFacing=true}</a></div>
{/if}
{if !empty($allowPinReset)}
<div class="myAccountLink" ><a href="/MyAccount/ResetPinPage">{translate text='Reset PIN/Password' isPublicFacing=true}</a></div>
{/if}
{if $user->isValidForEContentSource('overdrive') && $showUserCirculationModules}
<div class="myAccountLink"><a href="/MyAccount/OverDriveOptions">{translate text='%1% Options' 1=$readerName isPublicFacing=true}</a></div>
{/if}
{if $user->isValidForEContentSource('hoopla') && $showUserCirculationModules}
<div class="myAccountLink"><a href="/MyAccount/HooplaOptions">{translate text='Hoopla Options' isPublicFacing=true}</a></div>
{/if}
{if $user->isValidForEContentSource('axis360') && $showUserCirculationModules}
<div class="myAccountLink"><a href="/MyAccount/Axis360Options">{translate text='Boundless Options' isPublicFacing=true}</a></div>
{/if}
{if !empty($userIsStaff)}
<div class="myAccountLink"><a href="/MyAccount/StaffSettings">{translate text='Staff Settings' isPublicFacing=true}</a></div>
{/if}
{/if}
</div>
</div>
</div>
{/if}
</div>
{if !empty($allowMasqueradeMode) && !$masqueradeMode}
{if !empty($canMasquerade)}
<div>
<div class="myAccountLink">
<a class="btn btn-default btn-sm btn-block" onclick="AspenDiscovery.Account.getMasqueradeForm();" href="#">{translate text="Masquerade" isPublicFacing=true}</a></div>
</div>
{/if}
{/if}
{if empty($showMyAccount)}</div>{/if}
</div>
{/if}
<script type="text/javascript">
{literal}
$(document).ready(function() {
{/literal}
{if !empty($userHasCatalogConnection)}
AspenDiscovery.Account.loadMenuData();
{/if}
{literal}
AspenDiscovery.Account.loadListData();
AspenDiscovery.Account.loadRatingsData();
});
{/literal}
</script>
{/strip}