Bug 13618: Remove html filters at the intranet
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / intranet-main.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha staff client</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/mainpage.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style type="text/css"> </style>
7
8 </head>
9 <body id="main_intranet-main" class="main">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'home-search.inc' %]
12
13 <div id="breadcrumbs" >Home</div>
14
15
16 <div id="doc3" class="yui-t3">
17    <div id="bd" role="main">
18     <div id="yui-main">
19     <div class="yui-b"><div class="yui-g">
20     [% IF adminWarning %]
21         <div id="adminwarning" class="dialog alert">
22             <p><strong>Warning:</strong> You're logged in with the database administrator account. This is a bad idea, and you are likely to encounter problems.</p>
23             <p>You should <a href="/cgi-bin/koha/members/members-home.pl">create a patron</a> to use when administering Koha and give it superlibrarian permissions.</p>
24         </div>
25     [% END %]
26     <div class="yui-u first">
27
28             <div id="area-list-left">
29                 <ul class="biglinks-list">
30                     [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
31                     <li>
32                         <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
33                     </li>
34                     [% END %]
35
36                     [% IF ( CAN_user_borrowers ) %]
37                     <li>
38                         <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
39                     </li>
40                     [% END %]
41
42                     [% IF ( CAN_user_catalogue ) %]
43                     <li>
44                         <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a>
45                     </li>
46                     [% END %]
47
48                     <li>
49                         <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
50                     </li>
51
52                     [% IF ( UseCourseReserves ) %]
53                         <li>
54                             <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
55                         </li>
56                     [% END %]
57
58                     [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
59                     <li>
60                         <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
61                     </li>
62                     [% END %]
63                     <li>
64                         <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
65                     </li>
66                 </ul>
67             </div><!-- /area-list-left -->
68         </div><!-- /yui-u first -->
69     <div class="yui-u">
70             <div id="area-list-right">
71                 <ul class="biglinks-list">
72                     [% IF ( CAN_user_serials ) %]
73                     <li>
74                         <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
75                         <span class="biglink"></span>
76                     </li>
77                     [% END %]
78
79                     [% IF ( CAN_user_acquisition ) %]
80                     <li>
81                         <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
82                         <span class="biglink"></span>
83                     </li>
84                     [% END %]
85
86                     [% IF ( CAN_user_reports ) %]
87                     <li>
88                         <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
89                     </li>
90                     [% END %]
91
92
93                     [% IF ( CAN_user_tools ) %]
94                     <li>
95                         <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
96                     </li>
97                     [% END %]
98
99                     [% IF ( CAN_user_parameters ) %]
100                     <li>
101                         <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
102                     </li>
103                     [% END %]
104                     <li>
105                         <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
106                     </li>
107                 </ul>
108             </div><!-- /area-list-right -->
109         </div><!-- /yui-u -->
110 </div><!-- /yui-g -->
111 <div class="yui-g">
112             [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
113                     || ( CAN_user_tools_moderate_tags && pendingtags )
114                     || ( CAN_user_borrowers && pending_borrower_modifications )
115                     || ( CAN_user_acquisition && pendingsuggestions )
116                     || ( CAN_user_borrowers && pending_discharge_requests )
117             ) %]
118                 <div id="area-pending">
119                     [% IF ( CAN_user_acquisition && pendingsuggestions ) %]
120                     <div class="pending-info" id="suggestions_pending">
121
122                         <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
123                         <span class="pending-number-link">[% pendingsuggestions %]</span>
124                     </div>
125                     [% END %]
126
127                     [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
128                     <div class="pending-info" id="comments_pending">
129                         <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>:
130                         <span class="pending-number-link">[% pendingcomments %]</span>
131                     </div>
132                     [% END %]
133
134                     [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
135                     <div class="pending-info" id="tags_pending">
136                         <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:
137                         <span class="pending-number-link">[% pendingtags %]</span>
138                     </div>
139                     [% END %]
140
141
142                     [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
143                     <div class="pending-info" id="patron_updates_pending">
144                         <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
145                         <span class="pending-number-link">[% pending_borrower_modifications %]</span>
146                     </div>
147                     [% END %]
148
149                     [% IF CAN_user_borrowers && pending_discharge_requests %]
150                     <div class="pending-info" id="patron_discharges_pending">
151                         <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
152                         <span class="pending-number-link">[% pending_discharge_requests %]</span>
153                     </div>
154                     [% END %]
155
156                 </div>
157
158             [% END %]
159
160 </div>
161             [% IF ( IntranetmainUserblock ) %]
162                 <div class="yui-g" id="area-userblock">
163                     <div class="user-info">
164                         [% IntranetmainUserblock %]
165                     </div>
166                 </div>
167             [% END %]
168 </div>
169     </div>
170     <div class="yui-b"><!-- YOUR NAVIGATION GOES HERE -->
171     [% IF ( koha_news_count ) %]
172         <div id="area-news">
173             <h3><span="news_title">News</span></h3>
174             [% SET newsdisp = Koha.Preference('NewsAuthorDisplay') %]
175             [% FOREACH koha_new IN koha_news %]
176                 <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
177                     <p>[% koha_new.new %]</p>
178                     <p class="newsfooter"> Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %]<br />[% END %]
179                         [% IF ( CAN_user_tools ) %]
180                             <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
181                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a>
182                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
183                         [% END %]
184                     </p>
185                 </div>
186             [% END %]
187         </div><!-- /koha-news -->
188     [% END %]
189     </div>
190     </div>
191 </div>
192
193 <!-- the main div is closed in intranet-bottom.inc -->
194 [% INCLUDE 'intranet-bottom.inc' %]