Bug 14321: Integrate Upload.pm into Koha
[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 ( UseCourseReserves ) %]
52                         <li>
53                             <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
54                         </li>
55                     [% END %]
56
57                     [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
58                     <li>
59                         <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
60                     </li>
61                     [% END %]
62                     <li>
63                         <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
64                     </li>
65                 </ul>
66             </div><!-- /area-list-left -->
67         </div><!-- /yui-u first -->
68     <div class="yui-u">
69             <div id="area-list-right">
70                 <ul class="biglinks-list">
71                     [% IF ( CAN_user_serials ) %]
72                     <li>
73                         <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
74                         <span class="biglink"></span>
75                     </li>
76                     [% END %]
77
78                     [% IF ( CAN_user_acquisition ) %]
79                     <li>
80                         <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
81                         <span class="biglink"></span>
82                     </li>
83                     [% END %]
84
85                     [% IF ( CAN_user_reports ) %]
86                     <li>
87                         <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
88                     </li>
89                     [% END %]
90
91
92                     [% IF ( CAN_user_tools ) %]
93                     <li>
94                         <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
95                     </li>
96                     [% END %]
97
98                     [% IF ( CAN_user_parameters ) %]
99                     <li>
100                         <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a>
101                     </li>
102                     [% END %]
103                     <li>
104                         <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a>
105                     </li>
106                 </ul>
107             </div><!-- /area-list-right -->
108         </div><!-- /yui-u -->
109 </div><!-- /yui-g -->
110 <div class="yui-g">
111             [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
112                     || ( CAN_user_tools_moderate_tags && pendingtags )
113                     || ( CAN_user_borrowers && pending_borrower_modifications )
114                     || ( CAN_user_acquisition && pendingsuggestions )
115                     || ( CAN_user_borrowers && pending_discharge_requests )
116             ) %]
117                 <div id="area-pending">
118                     [% IF ( CAN_user_acquisition && pendingsuggestions ) %]
119                     <div class="pending-info" id="suggestions_pending">
120
121                         <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions pending approval</a>:
122                         <span class="pending-number-link">[% pendingsuggestions %]</span>
123                     </div>
124                     [% END %]
125
126                     [% IF ( CAN_user_tools_moderate_comments  && pendingcomments ) %]
127                     <div class="pending-info" id="comments_pending">
128                         <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>:
129                         <span class="pending-number-link">[% pendingcomments %]</span>
130                     </div>
131                     [% END %]
132
133                     [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
134                     <div class="pending-info" id="tags_pending">
135                         <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:
136                         <span class="pending-number-link">[% pendingtags %]</span>
137                     </div>
138                     [% END %]
139
140
141                     [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
142                     <div class="pending-info" id="patron_updates_pending">
143                         <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
144                         <span class="pending-number-link">[% pending_borrower_modifications %]</span>
145                     </div>
146                     [% END %]
147
148                     [% IF CAN_user_borrowers && pending_discharge_requests %]
149                     <div class="pending-info" id="patron_discharges_pending">
150                         <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
151                         <span class="pending-number-link">[% pending_discharge_requests %]</span>
152                     </div>
153                     [% END %]
154
155                 </div>
156
157             [% END %]
158
159 </div>
160             [% IF ( IntranetmainUserblock ) %]
161                 <div class="yui-g" id="area-userblock">
162                     <div class="user-info">
163                         [% IntranetmainUserblock %]
164                     </div>
165                 </div>
166             [% END %]
167 </div>
168     </div>
169     <div class="yui-b"><!-- YOUR NAVIGATION GOES HERE -->
170     [% IF ( koha_news_count ) %]
171         <div id="area-news">
172             <h3><span="news_title">News</span></h3>
173             [% FOREACH koha_new IN koha_news %]
174                 <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
175                     <p>[% koha_new.new %]</p>
176                     <p class="newsfooter"> Posted on [% koha_new.newdate %]
177                         [% IF ( CAN_user_tools ) %]
178                             <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
179                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a>
180                              | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
181                         [% END %]
182                     </p>
183                 </div>
184             [% END %]
185         </div><!-- /koha-news -->
186     [% END %]
187     </div>
188     </div>
189 </div>
190
191 <!-- the main div is closed in intranet-bottom.inc -->
192 [% INCLUDE 'intranet-bottom.inc' %]