Lines 95-194
Link Here
|
95 |
|
95 |
|
96 |
[% IF ( total ) %] |
96 |
[% IF ( total ) %] |
97 |
<h2>Records found in the catalog</h2> |
97 |
<h2>Records found in the catalog</h2> |
|
|
98 |
<div class="page-section"> |
98 |
<div> |
99 |
<div> |
99 |
[% total | html %] result(s) found in catalog, |
100 |
[% total | html %] result(s) found in catalog, |
100 |
<a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a> |
101 |
<a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a> |
101 |
</div> |
102 |
</div> |
102 |
<div class="pages">[% pagination_bar | $raw %]</div> |
103 |
<div class="pages">[% pagination_bar | $raw %]</div> |
103 |
<div class="searchresults page-section"> |
104 |
<div class="searchresults"> |
104 |
<table> |
105 |
<table> |
105 |
<tr> |
|
|
106 |
<th> </th> |
107 |
<th>Title</th> |
108 |
<th>Location</th> |
109 |
<th> </th> |
110 |
</tr> |
111 |
[% FOREACH resultsloo IN resultsloop %] |
112 |
<tr> |
106 |
<tr> |
113 |
<td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td> |
107 |
<th> </th> |
114 |
<td> |
108 |
<th>Title</th> |
115 |
<p> |
109 |
<th>Location</th> |
116 |
[% INCLUDE 'biblio-title.inc' biblio=resultsloo link = 1 %] |
110 |
<th> </th> |
117 |
</p> |
111 |
</tr> |
118 |
[% IF ( resultsloo.summary ) %] |
112 |
[% FOREACH resultsloo IN resultsloop %] |
119 |
<p>[% resultsloo.summary | html %]</p> |
113 |
<tr> |
120 |
[% ELSE %] |
114 |
<td><input type="checkbox" class="selection" id="bib[% resultsloo.biblionumber | html %]" name="biblionumber" value="[% resultsloo.biblionumber | html %]" /></td> |
|
|
115 |
<td> |
121 |
<p> |
116 |
<p> |
122 |
[% IF ( resultsloo.author ) %] |
117 |
[% INCLUDE 'biblio-title.inc' biblio=resultsloo link = 1 %] |
123 |
[% resultsloo.author | html %] |
|
|
124 |
[% ELSE %] |
125 |
|
126 |
[% END %] |
127 |
[% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %] |
128 |
[% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %] |
129 |
[% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %] |
130 |
[% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %] |
131 |
[% IF ( resultsloo.edition ) %]<span>Edition: </span>[% resultsloo.edition | html %][% END %] |
132 |
[% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %] |
133 |
[% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %] |
134 |
[% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %] |
135 |
[% IF ( resultsloo.timestamp ) %] <em>(modified on [% resultsloo.timestamp | html %])</em>[% END %] |
136 |
</p> |
118 |
</p> |
137 |
[% END %] |
119 |
[% IF ( resultsloo.summary ) %] |
138 |
</td> |
120 |
<p>[% resultsloo.summary | html %]</p> |
139 |
<td> |
121 |
[% ELSE %] |
140 |
[% IF ( resultsloo.available_items_loop ) %] |
122 |
<p> |
141 |
<span class="available"> |
123 |
[% IF ( resultsloo.author ) %] |
142 |
[% FOREACH items_loo IN resultsloo.available_items_loop %] |
124 |
[% resultsloo.author | html %] |
143 |
[% items_loo.count | html %] [% items_loo.branchname | html %] |
125 |
[% ELSE %] |
144 |
[% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %] |
126 |
|
145 |
[% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %] |
|
|
146 |
[% IF ( items_loo.classification ) %] |
147 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]"> |
148 |
[% items_loo.classification | html %] |
149 |
</a> |
150 |
[% END %] |
127 |
[% END %] |
151 |
<br /> |
128 |
[% IF ( resultsloo.isbn ) %] - [% resultsloo.isbn | html %] [% END %] |
152 |
[% END %] |
129 |
[% IF ( resultsloo.publicationyear ) %] - [% resultsloo.publicationyear | html %][% END %] |
153 |
</span> |
130 |
[% IF ( resultsloo.publishercode ) %]- [% resultsloo.publishercode | html %][% END %] |
154 |
[% END %] |
131 |
[% IF ( resultsloo.copyrightdate ) %] - [% resultsloo.copyrightdate | html %][% END %] |
155 |
<span class="unavailable"> |
132 |
[% IF ( resultsloo.edition ) %]<span>Edition: </span>[% resultsloo.edition | html %][% END %] |
156 |
[% IF ( resultsloo.onloancount ) %] <span>Checked out ([% resultsloo.onloancount | html %])</span>,<br /> [% END %] |
133 |
[% IF ( resultsloo.place ) %] ; [% resultsloo.place | html %][% END %] |
157 |
[% IF ( resultsloo.withdrawncount ) %] <span>Withdrawn ([% resultsloo.withdrawncount | html %])</span>,<br /> [% END %] |
134 |
[% IF ( resultsloo.pages ) %] - [% resultsloo.pages | html %][% END %] |
158 |
[% IF ( resultsloo.itemlostcount ) %] <span>Lost ([% resultsloo.itemlostcount | html %])</span><br />[% END %] |
135 |
[% IF ( resultsloo.item('size') ) %] ; [% resultsloo.item('size') | html %][% END %] |
159 |
[% IF ( resultsloo.recalledcount ) %] <span>Waiting to fill recall ([% resultsloo.recalled | html %])</span>[% END %] |
136 |
[% IF ( resultsloo.timestamp ) %] <em>(modified on [% resultsloo.timestamp | html %])</em>[% END %] |
160 |
[% IF ( resultsloo.onholdcount ) %] <span>Waiting on hold ([% resultsloo.onholdcount | html %])</span>[% END %] |
137 |
</p> |
161 |
</span> |
|
|
162 |
<span class="notforloan"> |
163 |
[% IF ( resultsloo.other_items_loop ) %] |
164 |
[% FOREACH items_loo IN resultsloo.other_items_loop %] |
165 |
[% IF ( items_loo.notforloan ) %][% items_loo.notforloan | html %] ([% items_loo.count | html %])<br />[% END %] |
166 |
[% END %] |
167 |
[% END %] |
138 |
[% END %] |
168 |
</span> |
139 |
</td> |
169 |
</td> |
140 |
<td> |
170 |
<td> |
141 |
[% IF ( resultsloo.available_items_loop ) %] |
171 |
<div class="dropup"> |
142 |
<span class="available"> |
172 |
<a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#"> |
143 |
[% FOREACH items_loo IN resultsloo.available_items_loop %] |
173 |
Actions <b class="caret"></b> |
144 |
[% items_loo.count | html %] [% items_loo.branchname | html %] |
174 |
</a> |
145 |
[% IF ( items_loo.location ) %]<span class="shelvingloc">[% items_loo.location | html %]</span>[% END %] |
175 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]"> |
146 |
[% IF ( items_loo.itemcallnumber ) %][% items_loo.itemcallnumber | html %][% END %] |
176 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
147 |
[% IF ( items_loo.classification ) %] |
177 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
148 |
<a href="/cgi-bin/koha/catalogue/search.pl?q=callnum:[% items_loo.classification |url %]"> |
178 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
149 |
[% items_loo.classification | html %] |
179 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit record</a></li> |
150 |
</a> |
180 |
[% END %] |
151 |
[% END %] |
181 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
152 |
<br /> |
182 |
<li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li> |
153 |
[% END %] |
|
|
154 |
</span> |
155 |
[% END %] |
156 |
<span class="unavailable"> |
157 |
[% IF ( resultsloo.onloancount ) %] <span>Checked out ([% resultsloo.onloancount | html %])</span>,<br /> [% END %] |
158 |
[% IF ( resultsloo.withdrawncount ) %] <span>Withdrawn ([% resultsloo.withdrawncount | html %])</span>,<br /> [% END %] |
159 |
[% IF ( resultsloo.itemlostcount ) %] <span>Lost ([% resultsloo.itemlostcount | html %])</span><br />[% END %] |
160 |
[% IF ( resultsloo.recalledcount ) %] <span>Waiting to fill recall ([% resultsloo.recalled | html %])</span>[% END %] |
161 |
[% IF ( resultsloo.onholdcount ) %] <span>Waiting on hold ([% resultsloo.onholdcount | html %])</span>[% END %] |
162 |
</span> |
163 |
<span class="notforloan"> |
164 |
[% IF ( resultsloo.other_items_loop ) %] |
165 |
[% FOREACH items_loo IN resultsloo.other_items_loop %] |
166 |
[% IF ( items_loo.notforloan ) %][% items_loo.notforloan | html %] ([% items_loo.count | html %])<br />[% END %] |
167 |
[% END %] |
183 |
[% END %] |
168 |
[% END %] |
184 |
</ul> |
169 |
</span> |
185 |
</div> <!-- /.dropup --> |
170 |
</td> |
186 |
</td> |
171 |
<td> |
187 |
</tr> |
172 |
<div class="dropup"> |
188 |
[% END # /FOREACH resultsloo %] |
173 |
<a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% resultsloo.biblionumber | html %]" role="button" data-toggle="dropdown" href="#"> |
189 |
</table> |
174 |
Actions <b class="caret"></b> |
190 |
<div class="pages">[% pagination_bar | $raw %]</div> |
175 |
</a> |
191 |
</div> <!-- /.searchresults --> |
176 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% resultsloo.biblionumber | html %]"> |
|
|
177 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li> |
178 |
<li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% resultsloo.biblionumber | uri %]" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li> |
179 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
180 |
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-pencil"></i> Edit record</a></li> |
181 |
[% END %] |
182 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
183 |
<li><a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% resultsloo.biblionumber | uri %]"><i class="fa fa-plus"></i> Add/Edit items</a></li> |
184 |
[% END %] |
185 |
</ul> |
186 |
</div> <!-- /.dropup --> |
187 |
</td> |
188 |
</tr> |
189 |
[% END # /FOREACH resultsloo %] |
190 |
</table> |
191 |
<div class="pages">[% pagination_bar | $raw %]</div> |
192 |
</div> <!-- /.searchresults --> |
193 |
</div> <!-- /.page-section --> |
192 |
[% ELSE # IF total %] |
194 |
[% ELSE # IF total %] |
193 |
[% IF ( query ) %] |
195 |
[% IF ( query ) %] |
194 |
[% IF ( error ) %] |
196 |
[% IF ( error ) %] |
Lines 204-211
Link Here
|
204 |
|
206 |
|
205 |
[% IF ( query ) %] |
207 |
[% IF ( query ) %] |
206 |
|
208 |
|
207 |
<div id="searchresult-breeding" class="page-section"> |
209 |
<div id="searchresult-breeding"> |
208 |
<h2>Records found in the reservoir</h2> |
210 |
<h2>Records found in the reservoir</h2> |
|
|
211 |
<div class="page-section"> |
209 |
[% IF ( breeding_loop ) %] |
212 |
[% IF ( breeding_loop ) %] |
210 |
<table id="reservoir-table"> |
213 |
<table id="reservoir-table"> |
211 |
<thead> |
214 |
<thead> |
Lines 247-252
Link Here
|
247 |
[% ELSE %] |
250 |
[% ELSE %] |
248 |
<h3 id="searchresult-breeding">No results found</h3> |
251 |
<h3 id="searchresult-breeding">No results found</h3> |
249 |
[% END # /IF breeding_loop %] |
252 |
[% END # /IF breeding_loop %] |
|
|
253 |
</div> |
250 |
</div> |
254 |
</div> |
251 |
[% END # /IF query %] |
255 |
[% END # /IF query %] |
252 |
|
256 |
|
253 |
- |
|
|