Bug 21578: Terminology changes in patron's account section (staff)
[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             </div> <!-- /.col-sm-2 -->
38             <div class="col-sm-9">
39                 <div class="row">
40                     <div class="col-xs-6">
41                         <ul class="biglinks-list">
42                             [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
43                             <li>
44                                 <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
45                             </li>
46                             [% END %]
47
48                             [% IF CAN_user_borrowers_edit_borrowers %]
49                             <li>
50                                 <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
51                             </li>
52                             [% END %]
53
54                             [% IF ( CAN_user_catalogue ) %]
55                             <li>
56                                 <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a>
57                             </li>
58                             [% END %]
59
60                             <li>
61                                 <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
62                             </li>
63
64                             [% IF ( UseCourseReserves ) %]
65                                 <li>
66                                     <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
67                                 </li>
68                             [% END %]
69
70                             <li>
71                                 <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
72                             </li>
73                             [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
74                             <li>
75                                 <a class="icon_general icon_ill" href="/cgi-bin/koha/ill/ill-requests.pl">ILL requests</a>
76                             </li>
77                             [% END %]
78                         </ul>
79                     </div> <!-- /.col-xs-6 -->
80                     <div class="col-xs-6">
81                         <ul class="biglinks-list">
82
83                             [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
84                             <li>
85                                 <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
86                             </li>
87                             [% END %]
88
89                             [% IF ( CAN_user_serials ) %]
90                             <li>
91                                 <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
92                                 <span class="biglink"></span>
93                             </li>
94                             [% END %]
95
96                             [% IF ( CAN_user_acquisition ) %]
97                             <li>
98                                 <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
99                                 <span class="biglink"></span>
100                             </li>
101                             [% END %]
102
103                             [% IF ( CAN_user_reports ) %]
104                             <li>
105                                 <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
106                             </li>
107                             [% END %]
108
109
110                             [% IF ( CAN_user_tools ) %]
111                             <li>
112                                 <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
113                             </li>
114                             [% END %]
115
116                             [% IF ( CAN_user_parameters ) %]
117                             <li>
118                                 <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
119                             </li>
120                             [% END %]
121                             <li>
122                                 <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
123                             </li>
124                         </ul>
125                     </div> <!-- /.col-sm-6 -->
126
127                 </div> <!-- /.row -->
128                 <div class="row">
129                     <div class="col-sm-12">
130                         [%# Following statement must be in one line for translatability %]
131                         [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_acquisition && 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 ) %]
132                             <div id="area-pending">
133                                 [% IF pending_article_requests %]
134                                 <div class="pending-info" id="article_requests_pending">
135
136                                     <a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>:
137                                     <span class="pending-number-link">[% pending_article_requests | html %]</span>
138                                 </div>
139                                 [% END %]
140
141                                 [% IF ( CAN_user_acquisition_suggestions_manage && pendingsuggestions ) %]
142                                 <div class="pending-info" id="suggestions_pending">
143
144                                     <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
145                                     <span class="pending-number-link">[% pendingsuggestions | html %]</span>
146                                 </div>
147                                 [% END %]
148
149                                 [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
150                                 <div class="pending-info" id="comments_pending">
151                                     <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>:
152                                     <span class="pending-number-link">[% pendingcomments | html %]</span>
153                                 </div>
154                                 [% END %]
155
156                                 [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
157                                 <div class="pending-info" id="tags_pending">
158                                     <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:
159                                     <span class="pending-number-link">[% pendingtags | html %]</span>
160                                 </div>
161                                 [% END %]
162
163
164                                 [% IF ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) %]
165                                 <div class="pending-info" id="patron_updates_pending">
166                                     <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
167                                     <span class="pending-number-link">[% pending_borrower_modifications | html %]</span>
168                                 </div>
169                                 [% END %]
170
171                                 [% IF CAN_user_borrowers_edit_borrowers && pending_discharge_requests %]
172                                 <div class="pending-info" id="patron_discharges_pending">
173                                     <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
174                                     <span class="pending-number-link">[% pending_discharge_requests | html %]</span>
175                                 </div>
176                                 [% END %]
177
178                                 [% IF Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count %]
179                                     <div class="pending-info" id="checkout_notes_pending">
180                                         <a href="/cgi-bin/koha/circ/checkout-notes.pl">Checkout notes pending</a>:
181                                         <span class="pending-number-link">[% pending_checkout_notes.count | html %]</span>
182                                     </div>
183                                 [% END %]
184
185                             </div>
186
187                         [% END %]
188
189                     </div> <!-- /.col-sm-12 -->
190                 </div> <!-- /.row -->
191
192                 [% IF ( IntranetmainUserblock ) %]
193                     <div class="row">
194                         <div class="col-sm-12">
195                             <div id="area-userblock">
196                                 <div class="user-info">
197                                     [% IntranetmainUserblock | $raw %]
198                                 </div>
199                             </div>
200                         </div>
201                     </div>
202                 [% END %]
203             </div> <!-- /.col-sm-9 -->
204
205         </div> <!-- /.row -->
206     </div> <!-- /.container-fluid -->
207
208 [% MACRO jsinclude BLOCK %]
209     <script type="text/javascript">
210     //<![CDATA[
211     var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
212         $(document).ready(function(){
213             $(".news_delete").on("click", function(){
214                 return confirmDelete(MSG_CONFIRM_DELETE);
215             });
216         });
217     //]]>
218     </script>
219 [% END %]
220 <!-- the main div is closed in intranet-bottom.inc -->
221 [% INCLUDE 'intranet-bottom.inc' %]