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