7cb06325304fa8ddcd76e3616a8ec2659b6c1f48
[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                             [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
70                             <li>
71                                 <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
72                             </li>
73                             [% END %]
74                             <li>
75                                 <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
76                             </li>
77                             [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
78                             <li>
79                                 <a class="icon_general icon_ill" href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
80                             </li>
81                             [% END %]
82                         </ul>
83                     </div> <!-- /.col-xs-6 -->
84                     <div class="col-xs-6">
85                         <ul class="biglinks-list">
86                             [% IF ( CAN_user_serials ) %]
87                             <li>
88                                 <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
89                                 <span class="biglink"></span>
90                             </li>
91                             [% END %]
92
93                             [% IF ( CAN_user_acquisition ) %]
94                             <li>
95                                 <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
96                                 <span class="biglink"></span>
97                             </li>
98                             [% END %]
99
100                             [% IF ( CAN_user_reports ) %]
101                             <li>
102                                 <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
103                             </li>
104                             [% END %]
105
106
107                             [% IF ( CAN_user_tools ) %]
108                             <li>
109                                 <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
110                             </li>
111                             [% END %]
112
113                             [% IF ( CAN_user_parameters ) %]
114                             <li>
115                                 <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
116                             </li>
117                             [% END %]
118                             <li>
119                                 <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
120                             </li>
121                         </ul>
122                     </div> <!-- /.col-sm-6 -->
123
124                 </div> <!-- /.row -->
125                 <div class="row">
126                     <div class="col-sm-12">
127                         [%# Following statement must be in one line for translatability %]
128                         [% 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 ) %]
129                             <div id="area-pending">
130                                 [% IF pending_article_requests %]
131                                 <div class="pending-info" id="article_requests_pending">
132
133                                     <a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>:
134                                     <span class="pending-number-link">[% pending_article_requests %]</span>
135                                 </div>
136                                 [% END %]
137
138                                 [% IF ( CAN_user_acquisition && pendingsuggestions ) %]
139                                 <div class="pending-info" id="suggestions_pending">
140
141                                     <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
142                                     <span class="pending-number-link">[% pendingsuggestions %]</span>
143                                 </div>
144                                 [% END %]
145
146                                 [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
147                                 <div class="pending-info" id="comments_pending">
148                                     <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>:
149                                     <span class="pending-number-link">[% pendingcomments %]</span>
150                                 </div>
151                                 [% END %]
152
153                                 [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
154                                 <div class="pending-info" id="tags_pending">
155                                     <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:
156                                     <span class="pending-number-link">[% pendingtags %]</span>
157                                 </div>
158                                 [% END %]
159
160
161                                 [% IF ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) %]
162                                 <div class="pending-info" id="patron_updates_pending">
163                                     <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
164                                     <span class="pending-number-link">[% pending_borrower_modifications %]</span>
165                                 </div>
166                                 [% END %]
167
168                                 [% IF CAN_user_borrowers_edit_borrowers && pending_discharge_requests %]
169                                 <div class="pending-info" id="patron_discharges_pending">
170                                     <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
171                                     <span class="pending-number-link">[% pending_discharge_requests %]</span>
172                                 </div>
173                                 [% END %]
174
175                                 [% IF Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count %]
176                                     <div class="pending-info" id="checkout_notes_pending">
177                                         <a href="/cgi-bin/koha/circ/checkout-notes.pl">Checkout notes pending</a>:
178                                         <span class="pending-number-link">[% pending_checkout_notes.count %]</span>
179                                     </div>
180                                 [% END %]
181
182                             </div>
183
184                         [% END %]
185
186                     </div> <!-- /.col-sm-12 -->
187                 </div> <!-- /.row -->
188
189                 [% IF ( IntranetmainUserblock ) %]
190                     <div class="row">
191                         <div class="col-sm-12">
192                             <div id="area-userblock">
193                                 <div class="user-info">
194                                     [% IntranetmainUserblock %]
195                                 </div>
196                             </div>
197                         </div>
198                     </div>
199                 [% END %]
200             </div> <!-- /.col-sm-9 -->
201
202         </div> <!-- /.row -->
203     </div> <!-- /.container-fluid -->
204
205 [% MACRO jsinclude BLOCK %]
206     <script type="text/javascript">
207     //<![CDATA[
208     var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
209         $(document).ready(function(){
210             $(".news_delete").on("click", function(){
211                 return confirmDelete(MSG_CONFIRM_DELETE);
212             });
213         });
214     //]]>
215     </script>
216 [% END %]
217 <!-- the main div is closed in intranet-bottom.inc -->
218 [% INCLUDE 'intranet-bottom.inc' %]