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