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