+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha staff client</title>
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/mainpage.css" />
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/mainpage.css" />
[% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css"> </style>
-
</head>
<body id="main_intranet-main" class="main">
[% INCLUDE 'header.inc' %]
<div id="bd" role="main">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
+ [% IF adminWarning %]
+ <div id="adminwarning" class="dialog alert">
+ <p><strong>Warning:</strong> You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
+ <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
+<p><a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-plus"> </i> Create patron</a></p>
+ </div>
+ [% END %]
<div class="yui-u first">
+
<div id="area-list-left">
<ul class="biglinks-list">
- [% IF ( CAN_user_circulate ) %]
+ [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
<li>
<a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
</li>
<a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
</li>
+ [% IF ( UseCourseReserves ) %]
+ <li>
+ <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
+ </li>
+ [% END %]
+
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
<li>
<a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
</li>
[% END %]
-
- [% IF ( CAN_user_editauthorities ) %]
<li>
<a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
</li>
- [% END %]
</ul>
</div><!-- /area-list-left -->
</div><!-- /yui-u first -->
</li>
[% END %]
- [% IF ( CAN_user_parameters ) %]
- <li>
- <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
- </li>
- [% END %]
[% IF ( CAN_user_tools ) %]
<li>
</li>
[% END %]
+ [% IF ( CAN_user_parameters ) %]
+ <li>
+ <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
+ </li>
+ [% END %]
<li>
<a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
</li>
</div><!-- /yui-u -->
</div><!-- /yui-g -->
<div class="yui-g">
- [% IF ( ( CAN_user_tools_moderate_comments && pendingcomments )
- || ( CAN_user_tools_moderate_tags && pendingtags )
- || ( CAN_user_acquisition && pendingsuggestions ) ) %]
+ [%# Following statment must be in one line for translatability %]
+ [% IF ( ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers && pending_borrower_modifications ) || ( CAN_user_acquisition && pendingsuggestions ) || ( CAN_user_borrowers && pending_discharge_requests ) || pending_article_requests) %]
<div id="area-pending">
+ [% IF pending_article_requests %]
+ <div class="pending-info" id="article_requests_pending">
+
+ <a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>:
+ <span class="pending-number-link">[% pending_article_requests %]</span>
+ </div>
+ [% END %]
+
[% IF ( CAN_user_acquisition && pendingsuggestions ) %]
<div class="pending-info" id="suggestions_pending">
- <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions pending approval</a>:
+ <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
<span class="pending-number-link">[% pendingsuggestions %]</span>
</div>
[% END %]
<span class="pending-number-link">[% pendingtags %]</span>
</div>
[% END %]
+
+
+ [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
+ <div class="pending-info" id="patron_updates_pending">
+ <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
+ <span class="pending-number-link">[% pending_borrower_modifications %]</span>
+ </div>
+ [% END %]
+
+ [% IF CAN_user_borrowers && pending_discharge_requests %]
+ <div class="pending-info" id="patron_discharges_pending">
+ <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
+ <span class="pending-number-link">[% pending_discharge_requests %]</span>
+ </div>
+ [% END %]
+
</div>
- [% END %]
+ [% END %]
</div>
[% IF ( IntranetmainUserblock ) %]
<div class="yui-b"><!-- YOUR NAVIGATION GOES HERE -->
[% IF ( koha_news_count ) %]
<div id="area-news">
- <h3><span="news_title">News</span></h3>
+ <h3><span class="news_title">News</span></h3>
+ [% SET newsdisp = Koha.Preference('NewsAuthorDisplay') %]
[% FOREACH koha_new IN koha_news %]
<div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
- <p>[% koha_new.new %]</p>
- <p class="newsfooter"> Posted on [% koha_new.newdate %]
+ <div class="newsbody">[% koha_new.content %]</div>
+ <p class="newsfooter"> Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %]<br />[% END %]
[% IF ( CAN_user_tools ) %]
<a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=[% koha_new.idnew %]">Edit</a>
- | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&ids=[% koha_new.idnew %]">Delete</a>
+ | <a class="news_delete" href="/cgi-bin/koha/tools/koha-news.pl?op=del&ids=[% koha_new.idnew %]">Delete</a>
| <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
[% END %]
</p>
</div><!-- /koha-news -->
[% END %]
</div>
- </div>
</div>
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript">
+ //<![CDATA[
+ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
+ $(document).ready(function(){
+ $(".news_delete").on("click", function(){
+ return confirmDelete(MSG_CONFIRM_DELETE);
+ });
+ });
+ //]]>
+ </script>
+[% END %]
<!-- the main div is closed in intranet-bottom.inc -->
[% INCLUDE 'intranet-bottom.inc' %]