Commit 64dd570f authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

koha: hide a bunch of inactive links

parent 1c00d8f3
......@@ -253,6 +253,8 @@ sub setCustomTemplateParams {
.deichman-hidden { display: none !important; }
#aai_history_consent { display: none !important; }",
canreservefromotherbranches => 1,
intranetbookbag => 0,
virtualshelves => 0,
# from Auth
# LoginBranchcode => C4::Context->userenv->{"branch"},
# LoginFirstname => C4::Context->userenv->{"firstname"},
......@@ -282,9 +284,7 @@ sub setCustomTemplateParams {
# intranetstylesheet => C4::Context->preference("intranetstylesheet"),
# IntranetUserCSS => C4::Context->preference("IntranetUserCSS"),
# IntranetUserJS => C4::Context->preference("IntranetUserJS"),
# intranetbookbag => C4::Context->preference("intranetbookbag"),
# suggestion => C4::Context->preference("suggestion"),
# virtualshelves => C4::Context->preference("virtualshelves"),
# StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"),
# EasyAnalyticalRecords => C4::Context->preference('EasyAnalyticalRecords'),
# LocalCoverImages => C4::Context->preference('LocalCoverImages'),
......
......@@ -58,12 +58,12 @@ CAN_user_serials_create_subscription ) %]
[% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber %]">Link to host item</a>[% END %][% END %]
[% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&amp;filetype=image">Upload image</a>[% END %][% END %]
<!-- class="deichman-hidden"
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
<li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&amp;op=duplicate">Edit as new (duplicate)</a></li>
<li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li>
[% END %]
-->
[% IF CAN_user_superlibrarian %]
[% IF ( count ) %]
<li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li>
......
......@@ -20,14 +20,14 @@
<li class="dropdown">
<a href="/cgi-bin/koha/mainpage.pl" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
<li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li>
[% END %]
[% IF ( CAN_user_acquisition ) %]
<li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
[% END %]
<li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
[% IF ( Koha.Preference('ILLModule') ) %]
<li><a href="/cgi-bin/koha/ill/ill-requests.pl">ILL Requests</a></li>
[% END %]
......@@ -46,7 +46,7 @@
[% IF ( CAN_user_parameters ) %]
<li><a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a></li>
[% END %]
<li><a href="/cgi-bin/koha/about.pl">About Koha</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/about.pl">About Koha</a></li>
</ul>
</li>
</ul>
......@@ -131,14 +131,14 @@
</li>
[% INCLUDE 'langmenu-staff-top.inc' %]
<li>
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
<a class="deichman-hidden toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
</li>
[% ELSE %]
<li class="loggedout">
<span>
<a href="/cgi-bin/koha/mainpage.pl" id="login">Log in</a>
<span class="separator">|</span>
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
<a class="deichman-hidden toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a>
</span>
</li>
[% END %]
......
......@@ -18,9 +18,10 @@
</ul>
</div>
[% END %]
<!-- class="deichman-hidden"
[% IF CAN_user_tools_manage_patron_lists %]
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/patron_lists/lists.pl"><i class="fa fa-edit"></i> Patron lists</a>
[% END %]
-->
</div>
[% END %]
......@@ -322,7 +322,7 @@ function holdForPatron() {
</div>
[% END %]
[% IF Koha.Preference('virtualshelves') %]
[% IF virtualshelves %]
<div class="btn-group">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-list"></i> Add to list <span class="caret"></span>
......@@ -386,9 +386,9 @@ function holdForPatron() {
<div id="placeholdc" class="btn-group"><a class="btn btn-default btn-xs placehold" href="#"><i class="fa fa-sticky-note-o"></i> Place hold</a></div>
[% END %]
[% END %]
<!-- class="deichman-hidden"
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] <div class="btn-group"><a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>[% END %]
-->
[% IF ( searchdesc ) %]
[% BLOCK sort_search_query ~%]
[% FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
......@@ -694,7 +694,7 @@ function holdForPatron() {
[% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&amp;findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
[% END %]
[% IF Koha.Preference('intranetbookbag') == 1 %]
[% intranetbookbag %]
[% IF ( SEARCH_RESULT.incart ) %]
| <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber %]" href="#">(remove)</a>
[% ELSE %]
......
......@@ -41,7 +41,7 @@
<ul>
<li> <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a></li>
<li> <a href="/cgi-bin/koha/circ/pendingreserves.pl">Holds to pull</a></li>
<li> <a href="/cgi-bin/koha/circ/waitingreserves.pl">Holds awaiting pickup</a></li>
<li class="deichman-hidden"> <a href="/cgi-bin/koha/circ/waitingreserves.pl">Holds awaiting pickup</a></li>
<li> <a href="/cgi-bin/koha/circ/reserveratios.pl">Hold ratios</a></li>
[% IF Koha.Preference('ArticleRequests') %]
<li>
......@@ -52,7 +52,7 @@
</div>
<!-- class="deichman-hidden"
<div class="yui-u">
<h5>Offline circulation</h5>
<ul>
......@@ -67,7 +67,7 @@
</ul>
</ul>
</div>
-->
</div>
<div class="yui-g" id="intranet-circulation-home-html">
[% Koha.Preference('IntranetCirculationHomeHTML') %]
......
......@@ -486,7 +486,7 @@ function validate1(date) {
</ol>
</div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
<div class="deichman-hidden action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
<div id="patron-alternative-contact" style="padding-top: 1em;">
<h3>Alternative contact</h3>
......@@ -501,7 +501,7 @@ function validate1(date) {
[% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone | url %]">[% altcontactphone | html %]</a></li>[% END %]
</ol></div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
<div class="deichman-hidden action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
</div>
</div>
......
......@@ -35,11 +35,11 @@
<div class="yui-b">
<div class="yui-g">
<h2>Purchase suggestions</h2>
<!-- class="deichman-hidden"
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% borrowernumber %]"><i class="fa fa-plus"></i> New purchase suggestion</a>
</div>
-->
[% IF suggestions %]
<table id="suggestions">
<thead>
......
......@@ -44,12 +44,12 @@
<dt><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></dt>
<dd>Set notice/status triggers for overdue items</dd>
[% END %]
<!-- class="deichman-hidden"
[% IF ( CAN_user_tools_label_creator ) %]
<dt><a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a></dt>
<dd>Create printable patron cards</dd>
[% END %]
-->
[% IF ( CAN_user_tools_delete_anonymize_patrons ) %]
<dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Batch patron deletion/anonymization</a></dt>
<dd>Batch delete patrons and delete patron circulation history</dd>
......
......@@ -57,11 +57,12 @@
[% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]<li><a href="/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber %]">Lenke til vertsdokument</a>[% END %][% END %]
[% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&amp;filetype=image">Last opp bilde</a>[% END %][% END %]
<!-- class="deichman-hidden"
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
<li><a id="duplicatebiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&amp;op=duplicate">Rediger som ny (kopier)</a></li>
<li><a href="#" id="z3950copy">Erstatt posten via Z39.50/SRU</a></li>
[% END %]
-->
[% IF CAN_user_superlibrarian %]
[% IF ( count ) %]
<li class="disabled"><a data-placement="left" href="#" id="deletebiblio" data-toggle="tooltip" title="[% count %] eksemplar(er) er knyttet til denne posten. Du må slette alle eksemplarene før du kan slette posten.">Slett post</a></li>
......
......@@ -20,14 +20,14 @@
<li class="dropdown">
<a href="/cgi-bin/koha/mainpage.pl" class="dropdown-toggle" data-toggle="dropdown">Mer <b class="caret"></b></a>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lister</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lister</a></li>
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
<li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Katalogisering</a></li>
[% END %]
[% IF ( CAN_user_acquisition ) %]
<li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Innkjøp</a></li>
[% END %]
<li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Autoriteter</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/authorities/authorities-home.pl">Autoriteter</a></li>
[% IF ( Koha.Preference('ILLModule') ) %]
<li><a href="/cgi-bin/koha/ill/ill-requests.pl">ILL Requests</a></li>
[% END %]
......@@ -46,7 +46,7 @@
[% IF ( CAN_user_parameters ) %]
<li><a href="/cgi-bin/koha/admin/admin-home.pl">Administrasjon</a></li>
[% END %]
<li><a href="/cgi-bin/koha/about.pl">Om Koha</a></li>
<li class="deichman-hidden"><a href="/cgi-bin/koha/about.pl">Om Koha</a></li>
</ul>
</li>
</ul>
......@@ -128,14 +128,14 @@
</li>
[% INCLUDE 'langmenu-staff-top.inc' %]
<li>
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Hjelp</span></a>
<a class="deichman-hidden toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Hjelp</span></a>
</li>
[% ELSE %]
<li class="loggedout">
<span>
<a href="/cgi-bin/koha/mainpage.pl" id="login">Logg inn</a>
<span class="separator">|</span>
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Hjelp</span></a>
<a class="deichman-hidden toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Hjelp</span></a>
</span>
</li>
[% END %]
......
......@@ -18,9 +18,10 @@
</ul>
</div>
[% END %]
<!-- class="deichman-hidden"
[% IF CAN_user_tools_manage_patron_lists %]
<a class="btn btn-default btn-sm" href="/cgi-bin/koha/patron_lists/lists.pl"><i class="fa fa-edit"></i> Lånerlister</a>
[% END %]
-->
</div>
[% END %]
......@@ -313,13 +313,14 @@ function holdForPatron() {
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Marker</a>
|
<!-- class="deichman-hidden"
[% IF ( intranetbookbag ) %]
<div class="btn-group">
<a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Legg i handlekurv</a>
</div>
[% END %]
[% IF Koha.Preference('virtualshelves') %]
-->
[% IF virtualshelves %]
<div class="btn-group">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-list"></i> Add to list <span class="caret"></span>
......@@ -383,9 +384,9 @@ function holdForPatron() {
<div id="placeholdc" class="btn-group"><a class="btn btn-default btn-xs placehold" href="#"><i class="fa fa-sticky-note-o"></i> Reserver</a></div>
[% END %]
[% END %]
<!--
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] <div class="btn-group"><a class="btn btn-default btn-xs" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU søk</a></div>[% END %]
-->
[% IF ( searchdesc ) %]
[% BLOCK sort_search_query ~%]
[% FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
......@@ -686,7 +687,8 @@ function holdForPatron() {
[% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&amp;findborrower=[% holdfor_cardnumber %]">Reserver for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
[% END %]
[% IF Koha.Preference('intranetbookbag') == 1 %]
[% IF intranetbookbag %]
[% IF ( SEARCH_RESULT.incart ) %]
| <a class="addtocart" id="cart[% SEARCH_RESULT.biblionumber %]" href="#">In your cart</a> <a class="cartRemove" id="cartR[% SEARCH_RESULT.biblionumber %]" href="#">(remove)</a>
[% ELSE %]
......
......@@ -41,7 +41,7 @@
<ul>
<li> <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Reserveringskø</a></li>
<li> <a href="/cgi-bin/koha/circ/pendingreserves.pl">Reserveringer som skal hentes frem</a></li>
<li> <a href="/cgi-bin/koha/circ/waitingreserves.pl">Reserveringer på hentehylle</a></li>
<li class="deichman-hidden"> <a href="/cgi-bin/koha/circ/waitingreserves.pl">Reserveringer på hentehylle</a></li>
<li> <a href="/cgi-bin/koha/circ/reserveratios.pl">Reserveringsstatistikk</a></li>
[% IF Koha.Preference('ArticleRequests') %]
<li>
......@@ -52,7 +52,7 @@
</div>
<!-- class="deichman-hidden"
<div class="yui-u">
<h5>Offline sirkulasjon</h5>
<ul>
......@@ -67,7 +67,7 @@
</ul>
</ul>
</div>
-->
</div>
<div class="yui-g" id="intranet-circulation-home-html">
[% Koha.Preference('IntranetCirculationHomeHTML') %]
......
......@@ -448,7 +448,7 @@ function validate1(date) {
</ol>
</div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Rediger</a></div>
<div class="deichman-hidden action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Rediger</a></div>
<div id="patron-alternative-contact" style="padding-top: 1em;">
<h3>Alternativ kontaktperson</h3>
......@@ -463,7 +463,7 @@ function validate1(date) {
[% IF ( altcontactphone ) %]<li><span class="label">Telefon: </span><a href="tel:[% altcontactphone | url %]">[% altcontactphone | html %]</a></li>[% END %]
</ol></div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Rediger</a></div>
<div class="deichman-hidden action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Rediger</a></div>
</div>
</div>
......
......@@ -34,11 +34,11 @@
<div class="yui-b">
<div class="yui-g">
<h2>Innkjøpsforslag</h2>
<!-- class="deichman-hidden"
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&amp;suggestedby=[% borrowernumber %]&amp;redirect=purchase_suggestions&amp;borrowernumber=[% borrowernumber %]"><i class="fa fa-plus"></i> Nytt innkjøpsforslag</a>
</div>
-->
[% IF suggestions %]
<table id="suggestions">
<thead>
......
......@@ -44,12 +44,13 @@
<dt><a href="/cgi-bin/koha/tools/overduerules.pl">Forfallsmelding/statusutløser</a></dt>
<dd>Oppgi melding/statusutløsere for forfalne lån</dd>
[% END %]
<!-- class="deichman-hidden"
[% IF ( CAN_user_tools_label_creator ) %]
<dt><a href="/cgi-bin/koha/patroncards/home.pl">Lånekortmaker</a></dt>
<dd>Lag lånekort for utskrift</dd>
[% END %]
-->
[% IF ( CAN_user_tools_delete_anonymize_patrons ) %]
<dt><a href="/cgi-bin/koha/tools/cleanborrowers.pl">Satsvis sletting av lånere og anonymisering</a></dt>
<dd>Slett lånere og slett lånehistorikk</dd>
......
Markdown is supported
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