Newer
Older
<?php
/**
*
* copied from /bootstrap3/templates/myresearch/menu.phtml
* changed for fid specific menu
* refs #15480 add password change to fid profile
*
* @author Robert Lange <lange@@ub.uni-leipzig.de>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
?>
<?php
$user = $this->auth()->isLoggedIn();
$patron = $user ? $this->auth()->getILSPatron() : false;
$capabilityParams = $patron ? ['patron' => $patron] : [];
?>
<?php /* Offcanvas closing button missing in BS3! CK*/ ?>
<button class="close-offcanvas btn btn-link" data-toggle="offcanvas"><?=$this->transEsc('navigate_back') ?></button>
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
<?php if (!empty($user)): ?>
<h4><?=$this->transEsc('Your Account')?></h4>
<div class="myresearch-menu account-menu">
<?php if ('ils-none' !== $this->ils()->getOfflineMode()): ?>
<?php if ($this->ils()->checkCapability('getMyTransactions', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-checkedout')?>" class="flex checkedout<?=$this->active == 'checkedout' ? ' active' : ''?>">
<span class="flex-col"><i class="fa fa-fw fa-book" aria-hidden="true"></i> <?=$this->transEsc('Checked Out Items')?></span>
<span class="checkedout-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span>
</a>
<?php endif; ?>
<?php if ($this->ils()->checkFunction('getMyTransactionHistory', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-historicloans')?>"<?=$this->active == 'historicloans' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-history" aria-hidden="true"></i> <?=$this->transEsc('Loan History')?>
</a>
<?php endif; ?>
<?php if ($this->ils()->checkCapability('getMyHolds', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-holds')?>" class="flex<?=$this->active == 'holds' ? ' active' : ''?>">
<span class="flex-col"><i class="fa fa-fw fa-flag" aria-hidden="true"></i> <?=$this->transEsc('Holds and Recalls')?></span>
<span class="holds-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span>
</a>
<?php endif; ?>
<?php if ($this->ils()->checkFunction('StorageRetrievalRequests', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-storageretrievalrequests')?>" class="flex<?=$this->active == 'storageRetrievalRequests' ? ' active' : ''?>">
<span class="flex-col"><i class="fa fa-fw fa-archive" aria-hidden="true"></i> <?=$this->transEsc('Storage Retrieval Requests')?></span>
<span class="storageretrievalrequests-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span>
</a>
<?php endif; ?>
<?php if ($this->ils()->checkFunction('ILLRequests', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-illrequests')?>" class="flex<?=$this->active == 'ILLRequests' ? ' active' : ''?>">
<span class="flex-col"><i class="fa fa-fw fa-exchange" aria-hidden="true"></i> <?=$this->transEsc('Interlibrary Loan Requests')?></span>
<span class="illrequests-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span>
</a>
<?php endif; ?>
<?php if ($this->ils()->checkCapability('getMyFines', $capabilityParams)): ?>
<a href="<?=$this->url('myresearch-fines')?>" class="flex<?=$this->active == 'fines' ? ' active' : ''?>">
<span class="flex-col"><i class="fa fa-fw fa-usd" aria-hidden="true"></i> <?=$this->transEsc('Fines')?></span>
<span class="fines-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span>
</a>
<?php endif; ?>
<a href="<?=$this->url('myresearch-profile')?>"<?=$this->active == 'profile' ? ' class="active"' : ''?>>
<i class="icon icon-user" aria-hidden="true"></i>
<?=$this->transEsc('Profile')?>
</a>
<?php /* refs #15480 add password change to fid profile */ ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a href="<?=$this->url('fid/user/reset-password')?>" data-lightbox>
<span class="no-padding">
<i class="icon icon-lock" aria-hidden="true"></i>
</span>
<?=$this->transEsc('Change Password')?>
</a>
<? endif; ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a href="<?=$this->url('fid/user/change-username')?>" data-lightbox>
<span class="no-padding">
<i class="icon icon-edit-3" aria-hidden="true"></i>
</span>
<?=$this->transEsc('fid::username_change_link')?>
</a>
<? endif; ?>
<?php /* refs #16033 contact link */ ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a data-lightbox>
<span class="no-padding">
<i class="icon icon-mail" aria-hidden="true"></i>
</span>
<?=$this->transEsc('contact_adlr')?>
</a>
<? endif; ?>
<?php if ($user = $this->auth()->isLoggedIn()): ?>
<span class="logout-button">
<a href="<?=$this->url('myresearch-logout')?>">
<span class="no-padding">
<i class="icon icon-log-out" aria-hidden="true"></i>
</span>
<?=$this->transEsc("Logout")?>
</a>
</span>
<? endif; ?>
<?php if ($user && $user->libraryCardsEnabled()): ?>
<a href="<?=$this->url('librarycards-home')?>"<?=$this->active == 'librarycards' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-barcode" aria-hidden="true"></i> <?=$this->transEsc('Library Cards')?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<br />
<?php if ($user && $this->userlist()->getMode() !== 'disabled'): ?>
<h4><?=$this->transEsc('Your Lists')?></h4>
<div class="myresearch-menu">
<a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>>
<i class="icon icon-star" aria-hidden="true"></i> <?=$this->transEsc('Your Favorites')?>
</a>
<?php $lists = $user->getLists() ?>
<?php foreach ($lists as $list): ?>
<a href="<?=$this->url('userList', ['id' => $list['id']])?>"<?=$this->active == 'list' . $list['id'] ? ' class="active"' : ''?>>
<span class="list-link"><?=$this->escapeHtml($list['title'])?></span>
<span class="badge"><?=$list->cnt != 0 ? $list->cnt : '' ?></span>
</a>
<?php endforeach; ?>
<a href="<?=$this->url('editList', ['id' => 'NEW'])?>">
<i class="icon icon-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List') ?>
</a>
<? /* link to listing of debis databases etc. */ ?>
<?php if ($this->permission()->allowDisplay('access.Licenses') || $this->permission()->allowDisplay('access.DBIS')) : ?>
<a href="<?=$this->url('myresearch/databases')?>" <?=$this->active == 'databases' ? ' class="active"' : ''?> >
<i class="icon icon-window" aria-hidden="true"></i> <?=$this->transEsc('database_access')?>
</a>
<?php endif; ?>
<?php /* refs #16033 order list page link */ ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a data-lightbox>
<span class="no-padding">
<i class="icon icon-package" aria-hidden="true"></i>
</span>
<?=$this->transEsc('Your Orders')?>
</a>
<? endif; ?>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<a href="<?=$this->url('search-history')?>?require_login"<?=$this->active == 'history' ? ' class="active"' : ''?>>
<i class="icon icon-download" aria-hidden="true"></i> <?=$this->transEsc('history_saved_searches')?>
</a>
<?php endif; ?>
<?php /* refs #16033 new print publications page link */ ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a data-lightbox>
<span class="no-padding">
<i class="icon icon-book" aria-hidden="true"></i>
</span>
<?=$this->transEsc('new_print_publications')?>
</a>
<? endif; ?>
</div>
<?php endif ?>
<?php if ($this->permission()->allowDisplay('fid.ReadList')): ?>
<br/>
<h4><?=$this->transEsc('fid::admin_section')?></h4>
<div class="myresearch-menu">
<a href="<?=$this->url('fid/admin/list')?>"><?=$this->transEsc('fid::permission_read_user_list')?></a>
<?php endif; ?>
</div>