Merge remote-tracking branch 'origin/new/bug_2780'
[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 [% INCLUDE 'doc-head-close.inc' %]
4 <style type="text/css"> #koha-news { border: 1px solid #EEEEEE; margin: .2em;} #koha-news h3 {background-color: #EEEEEE; padding : .3em; margin: 0;} .newsitem {margin: .3em; border-bottom: 1px solid #EEE;} .newsitem:last-child {border-bottom : 0;} .newsfooter {font-size: 80%; color: #CCCCCC;} </style>
5 </head>
6 <body id="main_intranet-main" class="main">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'home-search.inc' %]
9
10 <div id="breadcrumbs">Home</div>
11
12 <div id="doc3" class="yui-t3">
13 <div id="bd">
14 <div id="yui-main"><div class="yui-b"><div class="yui-g">
15
16 <h1>Welcome to Koha</h1>
17
18     <div class="yui-u first">
19     <!-- START - CIRCULATION -->
20     [% IF ( CAN_user_circulate ) %]
21     <h3><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></h3>
22     <ul>
23         <li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfers</a></li>
24     </ul>
25     [% END %]
26     <!-- END - CIRCULATION -->
27
28     <!-- START - PATRONS -->
29     [% IF ( CAN_user_borrowers ) %]
30         <h3><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></h3>
31     [% END %]
32     <!-- END - PATRONS -->
33
34     <!-- START - ADVANCED SEARCH -->
35     [% IF ( CAN_user_catalogue ) %]
36         <h3><a href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a></h3>
37     [% END %]
38     <!-- END - ADVANCED SEARCH -->
39     
40     <!-- START - LISTS -->
41     <h3><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></h3>
42     <!-- END - LISTS -->
43
44     <!-- START - CATALOGING -->
45     [% IF ( CAN_user_catalogue || CAN_user_editcatalogue || CAN_user_editauthorities ) %]
46         <h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
47         <ul>
48         [% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %]
49                 <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>
50         [% END %]
51         [% IF ( CAN_user_editauthorities ) %]
52                 <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
53         [% END %]
54         </ul>
55     [% END %]
56     <!-- END - CATALOGING -->
57     </div>
58
59     <div class="yui-u">
60     <!-- START - SERIALS -->
61     [% IF ( CAN_user_serials ) %]
62         <h3><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></h3>
63     [% END %]
64     [% IF ( CAN_user_acquisition ) %]
65         <h3><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></h3>
66         [% IF ( pendingsuggestions ) %]
67             <ul>
68                 <li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/suggestion/suggestion.pl">[% pendingsuggestions %]</a></span></li>
69             </ul>
70         [% END %]
71     [% END %]
72     <!-- END - SERIALS -->
73
74     <!-- START - REPORTS -->
75     [% IF ( CAN_user_reports ) %]
76         <h3><a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a></h3>
77     [% END %]
78     <!-- END - REPORTS -->
79
80     <!-- START - ADMINISTRATION -->
81     [% IF ( CAN_user_parameters ) %]
82         <h3><a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
83         <ul>
84             <li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
85         </ul>
86         [% END %]
87     [% IF ( CAN_user_tools ) %] 
88         <h3><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></h3>
89         [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) %]
90             <ul>
91                 [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) %]
92                     <li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span></li>
93                 [% END %]
94                 [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]
95                     <li><a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span></li>
96                 [% END %]
97             </ul>
98         [% END %]
99     [% END %]
100     <!-- END - ADMINISTRATION -->
101
102     <!-- START - ABOUT -->
103     <h3><a href="/cgi-bin/koha/about.pl">About Koha</a></h3>
104     <!-- END - ABOUT -->
105     </div>
106     </div>
107         [% IF ( IntranetmainUserblock ) %]
108             <div id="mainuserblock" class="yui-g">
109             [% IntranetmainUserblock %]
110             </div>[% ELSE %]&nbsp;
111         [% END %]
112     </div><!-- /yui-bd -->
113     </div><!-- /yui-main -->
114     [% IF ( koha_news_count ) %]
115         <div class="yui-b">
116             <div id="koha-news">
117                 <h3>News</h3>
118                 [% FOREACH koha_new IN koha_news %]
119                     <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
120                         <p>[% koha_new.new %]</p>
121                         <p class="newsfooter"> Posted on [% koha_new.newdate %]
122                             [% IF ( CAN_user_tools ) %]
123                                 <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a> | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a> | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
124                             [% END %]
125                         </p>
126                     </div>
127                 [% END %]
128             </div><!-- /koha-news -->
129         </div>
130     [% END %]
131
132
133 </div>
134
135 [% INCLUDE 'intranet-bottom.inc' %]