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