Bug 17855: Onboarding tool
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / intranet-main.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha staff client</title>
3 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/mainpage.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="main_intranet-main" class="main">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'home-search.inc' %]
9
10 <div id="breadcrumbs" >Home</div>
11
12
13 <div id="doc3" class="yui-t3">
14    <div id="bd" role="main">
15     <div id="yui-main">
16     <div class="yui-b"><div class="yui-g">
17     [% IF adminWarning %]
18         <div id="adminwarning" class="dialog alert">
19             <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>
20             <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>
21 <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>
22         </div>
23     [% END %]
24     <div class="yui-u first">
25
26             <div id="area-list-left">
27                 <ul class="biglinks-list">
28                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
29                     <li>
30                         <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
31                     </li>
32                     [% END %]
33
34                     [% IF ( CAN_user_borrowers ) %]
35                     <li>
36                         <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
37                     </li>
38                     [% END %]
39
40                     [% IF ( CAN_user_catalogue ) %]
41                     <li>
42                         <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a>
43                     </li>
44                     [% END %]
45
46                     <li>
47                         <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
48                     </li>
49
50                     [% IF ( UseCourseReserves ) %]
51                         <li>
52                             <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
53                         </li>
54                     [% END %]
55
56                     [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
57                     <li>
58                         <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
59                     </li>
60                     [% END %]
61                     <li>
62                         <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
63                     </li>
64                 </ul>
65             </div><!-- /area-list-left -->
66         </div><!-- /yui-u first -->
67     <div class="yui-u">
68             <div id="area-list-right">
69                 <ul class="biglinks-list">
70                     [% IF ( CAN_user_serials ) %]
71                     <li>
72                         <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
73                         <span class="biglink"></span>
74                     </li>
75                     [% END %]
76
77                     [% IF ( CAN_user_acquisition ) %]
78                     <li>
79                         <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
80                         <span class="biglink"></span>
81                     </li>
82                     [% END %]
83
84                     [% IF ( CAN_user_reports ) %]
85                     <li>
86                         <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
87                     </li>
88                     [% END %]
89
90
91                     [% IF ( CAN_user_tools ) %]
92                     <li>
93                         <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
94                     </li>
95                     [% END %]
96
97                     [% IF ( CAN_user_parameters ) %]
98                     <li>
99                         <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
100                     </li>
101                     [% END %]
102                     <li>
103                         <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
104                     </li>
105                 </ul>
106             </div><!-- /area-list-right -->
107         </div><!-- /yui-u -->
108 </div><!-- /yui-g -->
109 <div class="yui-g">
110             [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
111                     || ( CAN_user_tools_moderate_tags && pendingtags )
112                     || ( CAN_user_borrowers && pending_borrower_modifications )
113                     || ( CAN_user_acquisition && pendingsuggestions )
114                     || ( CAN_user_borrowers && pending_discharge_requests )
115                     || pending_article_requests
116             ) %]
117                 <div id="area-pending">
118                     [% IF pending_article_requests %]
119                     <div class="pending-info" id="article_requests_pending">
120
121                         <a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>:
122                         <span class="pending-number-link">[% pending_article_requests %]</span>
123                     </div>
124                     [% END %]
125
126                     [% IF ( CAN_user_acquisition && pendingsuggestions ) %]
127                     <div class="pending-info" id="suggestions_pending">
128
129                         <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
130                         <span class="pending-number-link">[% pendingsuggestions %]</span>
131                     </div>
132                     [% END %]
133
134                     [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
135                     <div class="pending-info" id="comments_pending">
136                         <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>:
137                         <span class="pending-number-link">[% pendingcomments %]</span>
138                     </div>
139                     [% END %]
140
141                     [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
142                     <div class="pending-info" id="tags_pending">
143                         <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:
144                         <span class="pending-number-link">[% pendingtags %]</span>
145                     </div>
146                     [% END %]
147
148
149                     [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
150                     <div class="pending-info" id="patron_updates_pending">
151                         <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
152                         <span class="pending-number-link">[% pending_borrower_modifications %]</span>
153                     </div>
154                     [% END %]
155
156                     [% IF CAN_user_borrowers && pending_discharge_requests %]
157                     <div class="pending-info" id="patron_discharges_pending">
158                         <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
159                         <span class="pending-number-link">[% pending_discharge_requests %]</span>
160                     </div>
161                     [% END %]
162
163                 </div>
164
165             [% END %]
166
167 </div>
168             [% IF ( IntranetmainUserblock ) %]
169                 <div class="yui-g" id="area-userblock">
170                     <div class="user-info">
171                         [% IntranetmainUserblock %]
172                     </div>
173                 </div>
174             [% END %]
175 </div>
176     </div>
177     <div class="yui-b"><!-- YOUR NAVIGATION GOES HERE -->
178     [% IF ( koha_news_count ) %]
179         <div id="area-news">
180             <h3><span class="news_title">News</span></h3>
181             [% SET newsdisp = Koha.Preference('NewsAuthorDisplay') %]
182             [% FOREACH koha_new IN koha_news %]
183                 <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
184                     <div class="newsbody">[% koha_new.content %]</div>
185                     <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 %]
186                         [% IF ( CAN_user_tools ) %]
187                             <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
188                              | <a class="news_delete" href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a>
189                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
190                         [% END %]
191                     </p>
192                 </div>
193             [% END %]
194         </div><!-- /koha-news -->
195     [% END %]
196     </div>
197 </div>
198
199 [% MACRO jsinclude BLOCK %]
200     <script type="text/javascript">
201     //<![CDATA[
202     var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
203         $(document).ready(function(){
204             $(".news_delete").on("click", function(){
205                 return confirmDelete(MSG_CONFIRM_DELETE);
206             });
207         });
208     //]]>
209     </script>
210 [% END %]
211 <!-- the main div is closed in intranet-bottom.inc -->
212 [% INCLUDE 'intranet-bottom.inc' %]