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