Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tt / 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         $(document).ready(function() {
7         $('#header_search').tabs();
8  });
9 </script>
10 </head>
11 <body>
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cataloging-search.inc' %]
14
15 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Cataloging</div>
16
17 <div id="doc" class="yui-t7">
18
19    <div id="bd">
20         <div id="yui-main">
21
22 [% INCLUDE 'cataloging-toolbar.inc' %]
23
24         [% IF ( noitemsfound ) %]
25                 No results found
26         [% END %]
27
28 <!-- display the search results -->
29
30 [% IF ( total ) %]
31 [% total %] result(s) found in catalog,
32 <a href="#searchresult-breeding">[% breeding_count %] result(s) found in reservoir</a>
33 <div class="pages">[% pagination_bar %]</div>
34 <div class="searchresults">
35     <table>
36         <tr>
37             <th>Title</th>
38             <th>Location</th>
39             <th>Preview</th>
40             [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<th>&nbsp;</th>[% ELSE %][% END %]
41             [% IF ( CAN_user_editcatalogue_edit_items ) %]<th>&nbsp;</th>[% END %]
42         </tr>
43     [% FOREACH resultsloo IN resultsloop %]
44         [% IF ( resultsloo.even ) %]
45             <tr class="highlight">
46         [% ELSE %]
47             <tr>
48         [% END %]
49             <td>
50                 <p>
51                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% resultsloo.biblionumber %]">[% resultsloo.title |html %]</a>
52                 [% FOREACH subtitl IN resultsloo.subtitle %][% subtitl.subfield %][% END %]</p>
53                 [% IF ( resultsloo.summary ) %]
54                     <p>[% resultsloo.summary %]</p>
55                 [% ELSE %]
56                     <p>
57                         [% IF ( resultsloo.author ) %]
58                             [% resultsloo.author %]
59                         [% ELSE %]
60                             &nbsp;
61                         [% END %]
62                         [% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn %] [% END %]
63                         [% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear %][% END %]
64                         [% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode %][% END %]
65                         [% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate %][% END %]
66                         [% IF ( resultsloo.edition ) %]Edition: [% resultsloo.edition %][% END %]
67                         [% IF ( resultsloo.place ) %] ; [% resultsloo.place %][% END %]
68                         [% IF ( resultsloo.pages ) %] - [% resultsloo.pages %][% END %]
69                         [% IF ( resultsloo.size ) %] ; [% resultsloo.size %][% END %]
70                         [% IF ( resultsloo.timestamp ) %] <i>(modified on [% resultsloo.timestamp %])</i>[% END %]
71                     </p>
72                 [% END %]
73                 </td>
74                 <td>
75                     [% IF ( resultsloo.items_loop ) %]
76                         <span class="available">
77                         [% FOREACH items_loo IN resultsloo.items_loop %]
78                             [% items_loo.count %] [% items_loo.branchname %]
79                             <i>
80                         [% IF ( items_loo.location ) %][% items_loo.location %][% END %]
81                         [% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber %][% END %]
82                             [% IF ( items_loo.classification ) %]
83                             <a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]">
84                                 [% items_loo.classification %]
85                             </a>
86                         [% END %]
87                         </i>
88                             <br />
89                         [% END %]
90                         </span>
91                     [% END %]
92                     <span class="unavailable">
93                         [% IF ( resultsloo.onloancount ) %] Checked out ([% resultsloo.onloancount %]),<br /> [% END %]
94                         [% IF ( resultsloo.wthdrawncount ) %] Withdrawn ([% resultsloo.wthdrawncount %]),<br /> [% END %]
95                         [% IF ( resultsloo.itemlostcount ) %] Lost ([% resultsloo.itemlostcount %])<br />[% END %]
96                         [% IF ( resultsloo.orderedcount ) %] On order ([% resultsloo.orderedcount %])[% END %]
97                     </span>
98                 </td>
99                                 <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>
100                 </td>
101                 [% IF ( resultsloo.CAN_user_editcatalogue_edit_catalogue ) %]<td><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber %]">Edit biblio</a></td>[% END %]
102                 [% IF ( resultsloo.CAN_user_editcatalogue_edit_items ) %]<td><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber %]">Add/Edit Items</a></td>[% END %]
103             </tr>
104     [% END %]
105     </table>
106 </div>
107 [% ELSE %]
108     [% IF ( query ) %]
109         [% IF ( error ) %]<div class="dialog alert">[% END %]<b>No results found</b>
110         [% IF ( error ) %]
111             Error: <span class="error">[% error %]</span></div>
112         [% END %]
113     [% END %]
114 [% END %]
115
116 [% IF ( query ) %]
117 <div id="searchresult-breeding">
118     <h3>Biblios in reservoir</h3>
119     [% IF ( breeding_loop ) %]
120         <table>
121             <tr>
122                 <th>Title</th>
123                 <th>ISBN</th>
124                 <th>Date</th>
125                 <th>Edition</th>
126                 <th>coming from</th>
127                 <th>preview</th>
128                 <th>&nbsp;</th>
129             </tr>
130             [% FOREACH breeding_loo IN breeding_loop %]
131             [% IF ( loop.odd ) %]
132                <tr>
133             [% ELSE %]
134                <tr class="highlight">
135             [% END %]
136                 <td>[% breeding_loo.title |html %]
137                 [% breeding_loo.author %]</td>
138                 <td>[% breeding_loo.isbn %]</td>
139                 <td>[% breeding_loo.copyrightdate %]</td>
140                 <td>[% breeding_loo.edition %]</td>
141                 <td>[% breeding_loo.file %]</td>
142                 <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>
143                                 </td>
144                 <td>
145                         <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?breedingid=[% breeding_loo.id %]" [% UNLESS ( breeding_loo.CAN_user_editcatalogue_edit_catalogue ) %] class="disabled" onclick="return false;"[% END %]>Add biblio</a>
146                 </td>
147             </tr>
148             [% END %]
149         </table>
150     [% ELSE %]
151     <p>None</p>
152     [% END %]
153 </div>
154 [% END %]
155 </div>
156 </div>
157 [% INCLUDE 'intranet-bottom.inc' %]