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