[PATCH] Bug 7979 [FOLLOW-UP] New design for staff interface, rights fix
[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     <div class="yui-u first">
20             <div id="area-list-left">
21                 <ul class="biglinks-list">
22                     [% IF ( CAN_user_circulate ) %]
23                     <li>
24                         <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
25                     </li>
26                     [% END %]
27
28                     [% IF ( CAN_user_borrowers ) %]
29                     <li>
30                         <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
31                     </li>
32                     [% END %]
33
34                     [% IF ( CAN_user_catalogue ) %]
35                     <li>
36                         <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl">Advanced Search</a>
37                     </li>
38                     [% END %]
39
40                     <li>
41                         <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
42                     </li>
43
44                     [% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %]
45                     <li>
46                         <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
47                     </li>
48                     [% END %]
49
50                     [% IF ( CAN_user_editauthorities ) %]
51                     <li>
52                         <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
53                     </li>
54                     [% END %]
55                 </ul>
56             </div><!-- /area-list-left -->
57         </div><!-- /yui-u first -->
58     <div class="yui-u">
59             <div id="area-list-right">
60                 <ul class="biglinks-list">
61                     [% IF ( CAN_user_serials ) %]
62                     <li>
63                         <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
64                         <span class="biglink"></span>
65                     </li>
66                     [% END %]
67
68                     [% IF ( CAN_user_acquisition ) %]
69                     <li>
70                         <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
71                         <span class="biglink"></span>
72                     </li>
73                     [% END %]
74
75                     [% IF ( CAN_user_reports ) %]
76                     <li>
77                         <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
78                     </li>
79                     [% END %]
80
81                     [% IF ( CAN_user_parameters ) %]
82                     <li>
83                         <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha Administration</a>
84                     </li>
85                     [% END %]
86
87                     [% IF ( CAN_user_tools ) %]
88                     <li>
89                         <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
90                     </li>
91                     [% END %]
92
93                     <li>
94                         <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
95                     </li>
96                 </ul>
97             </div><!-- /area-list-right -->
98         </div><!-- /yui-u -->
99 </div><!-- /yui-g -->
100 <div class="yui-g">
101             [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
102                     || ( CAN_user_tools_moderate_tags && pendingtags )
103                     || ( CAN_user_acquisition && pendingsuggestions ) ) %]
104                 <div id="area-pending">
105                     [% IF ( CAN_user_acquisition && pendingsuggestions ) %]
106                     <div class="pending-info">
107                         <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions pending approval:
108                         <span class="pending-number-link">[% pendingsuggestions %]</span></a>
109                     </div>
110                     [% END %]
111
112                     [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
113                     <div class="pending-info">
114                         <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval:
115                         <span class="pending-number-link">[% pendingcomments %]</span></a>
116                     </div>
117                     [% END %]
118
119                     [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
120                     <div class="pending-info">
121                         <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval:
122                         <span class="pending-number-link">[% pendingtags %]</span></a>
123                     </div>
124                     [% END %]
125                 </div>
126             [% END %]
127
128
129 </div>
130             [% IF ( IntranetmainUserblock ) %]
131                 <div class="yui-g" id="area-userblock">
132                     <div class="user-info">
133                         [% IntranetmainUserblock %]
134                     </div>
135                 </div>
136             [% END %]
137 </div>
138     </div>
139     <div class="yui-b"><!-- YOUR NAVIGATION GOES HERE -->
140     [% IF ( koha_news_count ) %]
141         <div id="area-news">
142             <h3><span="news_title">News</span></h3>
143             [% FOREACH koha_new IN koha_news %]
144                 <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
145                     <p>[% koha_new.new %]</p>
146                     <p class="newsfooter"> Posted on [% koha_new.newdate %]
147                         [% IF ( CAN_user_tools ) %]
148                             <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
149                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a>
150                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
151                         [% END %]
152                     </p>
153                 </div>
154             [% END %]
155         </div><!-- /koha-news -->
156     [% END %]
157     </div>
158     </div>
159 </div>
160
161 <!-- the main div is closed in intranet-bottom.inc -->
162 [% INCLUDE 'intranet-bottom.inc' %]