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