Bug 10233 - Toolbar background missing from staff client catalogue page
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / addbooks.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Cataloging</title>
3 [% INCLUDE 'greybox.inc' %]
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
6     //<![CDATA[
7
8      $(document).ready(function() {
9         $("#z3950search").click(function(){
10             PopupZ3950();
11             return false;
12         });
13      });
14
15     /* this function open a popup to search on z3950 server.  */
16     function PopupZ3950() {
17         var strQuery = GetZ3950Terms();
18         if(strQuery){
19             window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]"+strQuery,"z3950search",'width=760,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
20         }
21     }
22     /* provide Z3950 search points */
23     function GetZ3950Terms(){
24         var strQuery="&frameworkcode=";
25         [% FOREACH z3950_search_param IN z3950_search_params %]
26             strQuery += "&" + "[% z3950_search_param.name %]" + "=" + "[% z3950_search_param.encvalue %]";
27         [% END %]
28         return strQuery;
29     }
30     //]]>
31 </script>
32 </head>
33 <body id="cat_addbooks" class="cat">
34 [% INCLUDE 'header.inc' %]
35 [% INCLUDE 'cataloging-search.inc' %]
36
37 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Cataloging</div>
38
39 <div id="doc" class="yui-t7">
40
41    <div id="bd">
42         <div id="yui-main">
43
44 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
45   <div id="toolbar" class="btn-toolbar">
46         <div class="btn-group">
47             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New record <span class="caret"></span></button>
48             <ul class="dropdown-menu">
49                 <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=">Default framework</a></li>
50                 [% FOREACH frameworkcodeloo IN frameworkcodeloop %]
51                 <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=[% frameworkcodeloo.value %]">[% frameworkcodeloo.frameworktext %]</a></li>
52                 [% END %]
53             </ul>
54         </div>
55         <div class="btn-group"><a id="z3950search" class="btn btn-small" href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]&amp;frameworkcode=[% FOREACH z3950_search_param IN z3950_search_params %]&amp;[% z3950_search_param.name %]=[% z3950_search_param.encvalue %][% END %]"><i class="icon-search"></i> Z39.50 search</a></div>
56   </div>
57 [% END %]
58
59         [% IF ( noitemsfound ) %]
60                 No results found
61         [% END %]
62
63 <!-- display the search results -->
64
65 [% IF ( total ) %]
66 [% total %] result(s) found in catalog,
67 <a href="#searchresult-breeding">[% breeding_count %] result(s) found in reservoir</a>
68 <div class="pages">[% pagination_bar %]</div>
69 <div class="searchresults">
70     <table>
71         <tr>
72             <th>Title</th>
73             <th>Location</th>
74             <th>Preview</th>
75             [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th>&nbsp;</th>[% ELSE %][% END %]
76             [% IF ( CAN_user_editcatalogue_edit_items ) %]<th>&nbsp;</th>[% END %]
77         </tr>
78     [% FOREACH resultsloo IN resultsloop %]
79         [% IF ( loop.even ) %]
80             <tr class="highlight">
81         [% ELSE %]
82             <tr>
83         [% END %]
84             <td>
85                 <p>
86                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber %]">[% resultsloo.title |html %]</a>
87                 [% FOREACH subtitl IN resultsloo.subtitle %][% subtitl.subfield %][% END %]</p>
88                 [% IF ( resultsloo.summary ) %]
89                     <p>[% resultsloo.summary %]</p>
90                 [% ELSE %]
91                     <p>
92                         [% IF ( resultsloo.author ) %]
93                             [% resultsloo.author %]
94                         [% ELSE %]
95                             &nbsp;
96                         [% END %]
97                         [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn %] [% END %]
98                         [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear %][% END %]
99                         [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode %][% END %]
100                         [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate %][% END %]
101                         [% IF ( resultsloo.edition ) %]Edition: [% resultsloo.edition %][% END %]
102                         [% IF ( resultsloo.place ) %] ; [% resultsloo.place %][% END %]
103                         [% IF ( resultsloo.pages ) %] - [% resultsloo.pages %][% END %]
104                         [% IF ( resultsloo.size ) %] ; [% resultsloo.size %][% END %]
105                         [% IF ( resultsloo.timestamp ) %] <i>(modified on [% resultsloo.timestamp %])</i>[% END %]
106                     </p>
107                 [% END %]
108                 </td>
109                 <td>
110                     [% IF ( resultsloo.available_items_loop ) %]
111                         <span class="available">
112                         [% FOREACH items_loo IN resultsloo.available_items_loop %]
113                             [% items_loo.count %] [% items_loo.branchname %]
114                             <i>
115                         [% IF ( items_loo.location ) %][% items_loo.location %][% END %]
116                         [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber %][% END %]
117                             [% IF ( items_loo.classification ) %]
118                             <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">
119                                 [% items_loo.classification %]
120                             </a>
121                         [% END %]
122                         </i>
123                             <br />
124                         [% END %]
125                         </span>
126                     [% END %]
127                     <span class="unavailable">
128                         [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount %]),<br /> [% END %]
129                         [% IF ( resultsloo.wthdrawncount ) %] Withdrawn ([% resultsloo.wthdrawncount %]),<br /> [% END %]
130                         [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount %])<br />[% END %]
131                         [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount %])[% END %]
132                     </span>
133                 </td>
134                                 <td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% resultsloo.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a>
135                 </td>
136                 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]">Edit biblio</a></td>[% END %]
137                 [% IF ( CAN_user_editcatalogue_edit_items ) %]<td><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]">Add/Edit items</a></td>[% END %]
138             </tr>
139     [% END %]
140     </table>
141 </div>
142 [% ELSE %]
143     [% IF ( query ) %]
144         [% IF ( error ) %]<div class="dialog alert">[% END %]<b>No results found</b>
145         [% IF ( error ) %]
146             Error: <span class="error">[% error %]</span></div>
147         [% END %]
148     [% END %]
149 [% END %]
150
151 [% IF ( query ) %]
152 <div id="searchresult-breeding">
153     <h3>Biblios in reservoir</h3>
154     [% IF ( breeding_loop ) %]
155         <table>
156             <tr>
157                 <th>Title</th>
158                 <th>ISBN</th>
159                 <th>Date</th>
160                 <th>Edition</th>
161                 <th>Coming from</th>
162                 <th>Preview</th>
163                 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th>&nbsp;</th>[% END %]
164             </tr>
165             [% FOREACH breeding_loo IN breeding_loop %]
166             [% IF ( loop.odd ) %]
167                <tr>
168             [% ELSE %]
169                <tr class="highlight">
170             [% END %]
171                 <td>[% breeding_loo.title |html %]
172                 [% breeding_loo.author %]</td>
173                 <td>[% breeding_loo.isbn %]</td>
174                 <td>[% breeding_loo.copyrightdate %]</td>
175                 <td>[% breeding_loo.edition %]</td>
176                 <td>[% breeding_loo.file %]</td>
177                 <td> <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.id %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.id %]" title="MARC" rel="gb_page_center[600,500]">Card</a>
178                                 </td>
179                 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<td>
180                     <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]">Add biblio</a>
181                 </td>[% END %]
182             </tr>
183             [% END %]
184         </table>
185     [% ELSE %]
186     <p>None</p>
187     [% END %]
188 </div>
189 [% END %]
190 </div>
191 </div>
192 [% INCLUDE 'intranet-bottom.inc' %]