Merge remote branch 'kc/new/bug_6126' into kcmaster
[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>
7 [% INCLUDE 'header.inc' %]
8 [% IF ( koha_news_count ) %]<div id="doc3" class="yui-t3">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
9 <div id="bd">
10 [% IF ( koha_news_count ) %]<div id="yui-main"><div class="yui-b"><div class="yui-g">
11 [% ELSE %]      <div class="yui-g">[% END %]
12
13         <div class="yui-u first">
14         [% IF ( CAN_user_circulate ) %]
15         <h3><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></h3>
16         <ul><li>
17        <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
18         <label for="navfindborrower">Check out to:</label>
19             <input accesskey="u" id="navfindborrower" name="findborrower" type="text" size="10" />
20             <input type="hidden" name="branch" value="[% branch %]" />
21             <input type="hidden" name="printer" value="[% printer %]" />
22             <input type="submit" class="submit" value="OK" />
23        </form>
24        </li>
25        <li><a accesskey="r" href="/cgi-bin/koha/circ/returns.pl">Check in</a></li>
26         <li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfers</a></li></ul>
27         [% END %]
28         [% IF ( CAN_user_borrowers ) %]
29                 <h3><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></h3>
30                 <ul>
31         <li><form action="/cgi-bin/koha/members/member.pl" method="post">
32            <label for="navmember">Search:&nbsp;</label>
33            <input id="navmember" type="text" size="10" name="member" />
34            <input type="submit" value="OK" class="submit" />
35             </form>
36         </li>
37     </ul>
38         [% END %]
39         [% IF ( CAN_user_catalogue ) %]
40                 <h3><a href="/cgi-bin/koha/catalogue/search.pl">Search</a></h3>
41                                 <ul>
42                     <li>
43                         <form name="searchform" method="get" action="/cgi-bin/koha/catalogue/search.pl" id="searchform">
44                         <input type="hidden" name="idx" value="" />
45                         <label for="navkeyword">
46                             Search catalog:&nbsp;
47                         </label><input type="text" id="navkeyword" name="q" size="10" accesskey="q" />
48                         <input type="submit" value=" OK " class="submit" />
49                         </form>
50                      </li>
51                                 </ul>
52    [% END %]
53                 <h3><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></h3>
54         </div>
55         
56         <div class="yui-u">
57     [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
58     <h3><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></h3>
59         <ul>
60         <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl">Add MARC Record</a></li>
61     [% ELSE %]
62     [% IF ( CAN_user_editauthorities ) %]
63     <h3>Cataloging</h3>
64     <ul>
65     [% END %]
66     [% END %]
67     
68     [% IF ( CAN_user_editauthorities ) %]
69         <li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>
70     [% END %]
71     </ul>
72     
73     
74     [% IF ( CAN_user_serials ) %]
75     <h3><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a></h3>
76     [% END %]
77         [% IF ( CAN_user_acquisition ) %]
78         <h3><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></h3>
79         [% END %]
80     [% IF ( CAN_user_reports ) %]
81     <h3><a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a></h3>
82     [% END %]
83     [% IF ( CAN_user_parameters ) %]
84     <h3><a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
85         <ul>
86         <li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
87     </ul>
88     [% END %]
89     [% IF ( CAN_user_tools ) %] 
90     <h3><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></h3>
91     [% END %]
92     <h3><a href="/cgi-bin/koha/about.pl">About Koha</a></h3>
93         </div>
94         </div>
95                 [% IF ( IntranetmainUserblock ) %]<div id="mainuserblock" class="yui-g">
96                         [% IntranetmainUserblock %]
97                         </div>[% ELSE %]&nbsp;
98                 [% END %]
99 [% IF ( koha_news_count ) %]
100         </div><!-- /yui-bd -->
101         </div><!-- /yui-main -->
102         <div class="yui-b">
103                 <div id="koha-news">
104             <h3>News</h3>
105             [% FOREACH koha_new IN koha_news %]
106                     <div class="newsitem" id="news[% koha_new.idnew %]"><h4>[% koha_new.title %]</h4>
107                                          <p>[% koha_new.new %]</p>
108                                         <p class="newsfooter"> Posted on [% koha_new.newdate %] [% IF ( CAN_user_tools ) %]
109     <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>[% END %]</p></div>
110             [% END %]
111                 </div><!-- /koha-news -->
112         </div>
113 [% END %]
114         
115 </div>
116 [% INCLUDE 'intranet-bottom.inc' %]