Skip to content
Snippets Groups Projects
Commit b1ed8b0a authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #19801 [de_105] myresearch menu as unordered list

parent 62b2d979
1 merge request!3refs #20945 [de_105] w3c validation - syntax fixes
...@@ -1605,6 +1605,7 @@ header { ...@@ -1605,6 +1605,7 @@ header {
background: $de105-lightgray; background: $de105-lightgray;
border: 0; border: 0;
margin-top: 30px; margin-top: 30px;
list-style: none;
a { a {
border: 0; border: 0;
......
...@@ -7,160 +7,192 @@ $capabilityParams = $patron ? ['patron' => $patron] : []; ...@@ -7,160 +7,192 @@ $capabilityParams = $patron ? ['patron' => $patron] : [];
<button class="close-offcanvas btn btn-default" data-toggle="offcanvas"><?=$this->transEsc('navigate_back') ?></button> <button class="close-offcanvas btn btn-default" data-toggle="offcanvas"><?=$this->transEsc('navigate_back') ?></button>
<?php /* finc needs to add .facet-group class and classes on sub items for borders - CK */ ?> <?php /* finc needs to add .facet-group class and classes on sub items for borders - CK */ ?>
<div class="myresearch-menu facet-group"> <ul class="myresearch-menu facet-group">
<?php /* de_105: #13420 remove favorites here; it appears in 'Your Lists' below - VE */ ?> <?php /* de_105: #13420 remove favorites here; it appears in 'Your Lists' below - VE */ ?>
<?php /* <?php if ($this->userlist()->getMode() !== 'disabled'): ?> <?php /* <?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<li>
<a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Favorites')?> <i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Favorites')?>
</a> </a>
</li>
<?php endif; ?> */ ?> <?php endif; ?> */ ?>
<?php if ('ils-none' !== $this->ils()->getOfflineMode()): ?> <?php if ('ils-none' !== $this->ils()->getOfflineMode()): ?>
<?php if ($this->ils()->checkCapability('getMyTransactions')): ?>
<?php if ($this->ils()->checkCapability('getMyTransactions')): ?>
<li>
<a href="<?=$this->url('myresearch-checkedout')?>"<?=$this->active == 'checkedout' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-checkedout')?>"<?=$this->active == 'checkedout' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-book" aria-hidden="true"></i> <?=$this->transEsc('Checked Out Items')?> <i class="fa fa-fw fa-book" aria-hidden="true"></i> <?=$this->transEsc('Checked Out Items')?>
<?php /* nxt line finc specific - CK */ ?> <?php /* nxt line finc specific - CK */ ?>
<span id="getMyTransactions" class="itemCount pull-right no-padding"></span> <span id="getMyTransactions" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php if ($this->ils()->checkCapability('getMyHolds')): ?> <?php if ($this->ils()->checkCapability('getMyHolds')): ?>
<li>
<a href="<?=$this->url('myresearch-holds')?>"<?=$this->active == 'holds' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-holds')?>"<?=$this->active == 'holds' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-flag" aria-hidden="true"></i> <?=$this->transEsc('Holds and Recalls')?> <i class="fa fa-fw fa-flag" aria-hidden="true"></i> <?=$this->transEsc('Holds and Recalls')?>
<?php /* nxt line finc specific - CK */ ?> <?php /* nxt line finc specific - CK */ ?>
<span id="getMyHolds" class="itemCount pull-right no-padding"></span> <span id="getMyHolds" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* refs #13122 Custom de_105: entry MediaReadyToPickup */ ?> <?php /* refs #13122 Custom de_105: entry MediaReadyToPickup */ ?>
<?php if ($this->ils()->checkCapability('getMyMediaReadyToPickup')): ?> <?php if ($this->ils()->checkCapability('getMyMediaReadyToPickup')): ?>
<li>
<a href="<?=$this->url('myresearch-mediareadytopickup')?>"<?=$this->active == 'mediareadytopickup' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-mediareadytopickup')?>"<?=$this->active == 'mediareadytopickup' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-suitcase" aria-hidden="true"></i> <?=$this->transEsc('finclibero_mediareadytopickup')?> <i class="fa fa-fw fa-suitcase" aria-hidden="true"></i> <?=$this->transEsc('finclibero_mediareadytopickup')?>
<span id="getMyMediaReadyToPickup" class="itemCount pull-right no-padding"></span> <span id="getMyMediaReadyToPickup" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* refs #13122 End: Custom de_105: entry MediaReadyToPickup */ ?> <?php /* refs #13122 End: Custom de_105: entry MediaReadyToPickup */ ?>
<?php /* removed in #20835, RL <?php /* removed in #20835, RL
<?php if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?> <?php if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?>
<li>
<a href="<?=$this->url('myresearch-storageretrievalrequests')?>"<?=$this->active == 'storageRetrievalRequests' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-storageretrievalrequests')?>"<?=$this->active == 'storageRetrievalRequests' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-archive" aria-hidden="true"></i> <?=$this->transEsc('Storage Retrieval Requests')?> <i class="fa fa-fw fa-archive" aria-hidden="true"></i> <?=$this->transEsc('Storage Retrieval Requests')?>
<?php // nxt line finc specific - CK ?> <?php // nxt line finc specific - CK ?>
<span id="getMyStorageRetrievalRequests" class="itemCount pull-right no-padding"></span> <span id="getMyStorageRetrievalRequests" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
*/ ?> */ ?>
<?php if ($this->ils()->checkCapability('getMyILLRequests')): ?>
<?php if ($this->ils()->checkCapability('getMyILLRequests')): ?>
<li>
<a href="<?=$this->url('myresearch-illrequests')?>"<?=$this->active == 'ILLRequests' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-illrequests')?>"<?=$this->active == 'ILLRequests' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-exchange" aria-hidden="true"></i> <?=$this->transEsc('Interlibrary Loan Requests')?> <i class="fa fa-fw fa-exchange" aria-hidden="true"></i> <?=$this->transEsc('Interlibrary Loan Requests')?>
<?php /* nxt line finc specific - CK */ ?> <?php /* nxt line finc specific - CK */ ?>
<span id="getMyILLRequests" class="itemCount pull-right no-padding"></span> <span id="getMyILLRequests" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* refs #11535 add my loan history, FM */ ?> <?php /* refs #11535 add my loan history, FM */ ?>
<?php /* removed du to privacy concerns #18439 <?php /* removed du to privacy concerns #18439
<?php if ($this->ils()->checkCapability('getMyLoanHistory')): ?> <?php if ($this->ils()->checkCapability('getMyLoanHistory')): ?>
<li>
<a href="<?= $this->url('myresearch-loanhistory') ?>"<?= $this->active == 'loanhistory' ? ' class="active"' : '' ?>> <a href="<?= $this->url('myresearch-loanhistory') ?>"<?= $this->active == 'loanhistory' ? ' class="active"' : '' ?>>
<i class="fa fa-fw fa-hourglass-end"></i> <?= $this->transEsc('Loan History') ?> <i class="fa fa-fw fa-hourglass-end"></i> <?= $this->transEsc('Loan History') ?>
<span id="getMyLoanHistoryItems" class="itemCount pull-right no-padding"></span> <span id="getMyLoanHistoryItems" class="itemCount pull-right no-padding"></span>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
*/ ?> */ ?>
<?php /* refs #11535 END : add my loan history */ ?> <?php /* refs #11535 END : add my loan history */ ?>
<?php if ($this->ils()->checkCapability('getMyFines')): ?> <?php if ($this->ils()->checkCapability('getMyFines')): ?>
<li>
<a href="<?=$this->url('myresearch-fines')?>"<?=$this->active == 'fines' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-fines')?>"<?=$this->active == 'fines' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-euro" aria-hidden="true"></i> <?=$this->transEsc('Fines')?> <i class="fa fa-fw fa-euro" aria-hidden="true"></i> <?=$this->transEsc('Fines')?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php if ($this->ils()->checkCapability('getMyProfile')): ?>
<?php if ($this->ils()->checkCapability('getMyProfile')): ?>
<li>
<a href="<?=$this->url('myresearch-profile')?>"<?=$this->active == 'profile' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-profile')?>"<?=$this->active == 'profile' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-user" aria-hidden="true"></i> <?=$this->transEsc('Profile')?> <i class="fa fa-fw fa-user" aria-hidden="true"></i> <?=$this->transEsc('Profile')?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php $user = $this->auth()->isLoggedIn(); <?php $user = $this->auth()->isLoggedIn();
if ($user && $user->libraryCardsEnabled()): ?> if ($user && $user->libraryCardsEnabled()): ?>
<li>
<a href="<?=$this->url('librarycards-home')?>"<?=$this->active == 'librarycards' ? ' class="active"' : ''?>> <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')?> <i class="fa fa-fw fa-barcode" aria-hidden="true"></i> <?=$this->transEsc('Library Cards')?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php /* de_105: #13420 'search-history' has been here before it moved below into 'Your Lists'-area - VE */ ?> <?php /* de_105: #13420 'search-history' has been here before it moved below into 'Your Lists'-area - VE */ ?>
<?php /* de_105: remove logout here; it is included already inside header-navbar - VE */ ?> <?php /* de_105: remove logout here; it is included already inside header-navbar - VE */ ?>
<?php /* <?php if ($user = $this->auth()->isLoggedIn()): ?> <?php /* <?php if ($user = $this->auth()->isLoggedIn()): ?>
<li>
<a href="<?=$this->url('myresearch-logout')?>"> <a href="<?=$this->url('myresearch-logout')?>">
<i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> <?=$this->transEsc("Log Out")?> <i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> <?=$this->transEsc("Log Out")?>
</a> </a>
</li>
<?php endif; ?> */ ?> <?php endif; ?> */ ?>
<?php /* de_105: #13126 remove change-password - VE */ ?> <?php /* de_105: #13126 remove change-password - VE */ ?>
<?php /* de_105: #16309 - reactivate password change - HR */ ?> <?php /* de_105: #16309 - reactivate password change - HR */ ?>
<?php if ($this->auth()->isLoggedIn() && $this->auth()->getManager()->supportsPasswordChange()): ?> <?php if ($this->auth()->isLoggedIn() && $this->auth()->getManager()->supportsPasswordChange()): ?>
<li>
<a href="<?=$this->url('myresearch-changepassword')?>"<?=$this->active == 'newpassword' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-changepassword')?>"<?=$this->active == 'newpassword' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-lock" aria-hidden="true"></i> <?=$this->transEsc('Change Password')?> <i class="fa fa-fw fa-lock" aria-hidden="true"></i> <?=$this->transEsc('Change Password')?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* de_105: #13121 insert set user pin - FM */ ?> <?php /* de_105: #13121 insert set user pin - FM */ ?>
<?php if ($this->auth()->isLoggedIn() && $this->ils()->checkCapability('changeUserPin')): ?> <?php if ($this->auth()->isLoggedIn() && $this->ils()->checkCapability('changeUserPin')): ?>
<li>
<a href="<?=$this->url('myresearch-setpin')?>" class="<?= $this->active == 'setpin' ? ' active' : '' ?>"> <a href="<?=$this->url('myresearch-setpin')?>" class="<?= $this->active == 'setpin' ? ' active' : '' ?>">
<i class="fa fa-fw fa-hand-pointer-o" aria-hidden="true"></i><?=$this->transEsc('finclibero_change_user_pin')?> <i class="fa fa-fw fa-hand-pointer-o" aria-hidden="true"></i><?=$this->transEsc('finclibero_change_user_pin')?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* de_105: #13121 insert set user pin - FM END */ ?> <?php /* de_105: #13121 insert set user pin - FM END */ ?>
<?php /* de_105: #13126 insert lock-account - FM */ ?> <?php /* de_105: #13126 insert lock-account - FM */ ?>
<?php if ($this->auth()->isLoggedIn() && $this->ils()->checkCapability('setLockMyAccount')): ?> <?php if ($this->auth()->isLoggedIn() && $this->ils()->checkCapability('setLockMyAccount')): ?>
<li>
<a href="<?= $this->url('myresearch-lockaccount') ?>" class="<?= $this->active == 'lockaccount' ? ' active' : '' ?>"> <a href="<?= $this->url('myresearch-lockaccount') ?>" class="<?= $this->active == 'lockaccount' ? ' active' : '' ?>">
<i class="fa fa-fw fa-lock" aria-hidden="true"></i><?= $this->transEsc('Lock Account') ?> <i class="fa fa-fw fa-lock" aria-hidden="true"></i><?= $this->transEsc('Lock Account') ?>
</a> </a>
</li>
<?php endif; ?> <?php endif; ?>
<?php /* de_105: #13126 insert lock-account - FM END */ ?> <?php /* de_105: #13126 insert lock-account - FM END */ ?>
</div>
</ul>
<?php if ($this->userlist()->getMode() !== 'disabled' && $user = $this->auth()->isLoggedIn()): ?> <?php if ($this->userlist()->getMode() !== 'disabled' && $user = $this->auth()->isLoggedIn()): ?>
<h4><?=$this->transEsc('Your Lists')?></h4> <h4><?=$this->transEsc('Your Lists')?></h4>
<div class="myresearch-menu facet-group"> <ul class="myresearch-menu facet-group">
<li>
<a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>> <a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Your Favorites')?> <i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Your Favorites')?>
</a> </a>
</li>
<?php /* de_105: #13420 'search-history' was placed here inside 'Your Lists'-area - VE */ ?> <?php /* de_105: #13420 'search-history' was placed here inside 'Your Lists'-area - VE */ ?>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?> <?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<a href="<?=$this->url('search-history')?>?require_login"<?=$this->active == 'history' ? ' class="active"' : ''?>> <li>
<i class="fa fa-fw fa-search" aria-hidden="true"></i> <?=$this->transEsc('history_saved_searches')?> <a href="<?=$this->url('search-history')?>?require_login"<?=$this->active == 'history' ? ' class="active"' : ''?>>
</a> <i class="fa fa-fw fa-search" aria-hidden="true"></i> <?=$this->transEsc('history_saved_searches')?>
</a>
</li>
<?php endif; ?> <?php endif; ?>
<?php $lists = $user->getLists() ?> <?php $lists = $user->getLists() ?>
<?php foreach ($lists as $list): ?> <?php foreach ($lists as $list): ?>
<?php /* finc: keep icon inside + keep braces in badge!; CK*/ ?> <?php /* finc: keep icon inside + keep braces in badge!; CK*/ ?>
<li>
<a href="<?=$this->url('userList', ['id' => $list['id']])?>"<?=$this->active == 'list' . $list['id'] ? ' class="active"' : ''?>> <a href="<?=$this->url('userList', ['id' => $list['id']])?>"<?=$this->active == 'list' . $list['id'] ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-star-o" aria-hidden="true"></i> <?=$this->escapeHtml($list['title'])?> <i class="fa fa-fw fa-star-o" aria-hidden="true"></i> <?=$this->escapeHtml($list['title'])?>
<span class="badge"><?=$list->cnt?></span> <span class="badge"><?=$list->cnt?></span>
</a> </a>
</li>
<?php endforeach; ?> <?php endforeach; ?>
<li>
<a href="<?=$this->url('editList', ['id' => 'NEW'])?>"> <a href="<?=$this->url('editList', ['id' => 'NEW'])?>">
<i class="fa fa-fw fa-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List')?> <i class="fa fa-fw fa-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List')?>
</a> </a>
</li>
</div> </ul>
<?php endif ?> <?php endif ?>
<?php /* finc: This script is finc-specific - CK */ ?> <?php /* finc: This script is finc-specific - CK */ ?>
<?php $script = <<<JS <?php $script = <<<JS
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment