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