Lines 1-61
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Tools</title> |
2 |
<title>Koha › Cataloging › Call number browser</title> |
3 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
3 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'datatables.inc' %] |
5 |
<style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:700px; margin:auto;margin-top: .4em; text-align:left; } |
|
|
6 |
tr.duplicate td, tr.duplicate:nth-child(2n+1) td { background-color: #ff9090; } |
7 |
tr.available td, tr.available:nth-child(2n+1) td { background-color: #bcdb89; } |
8 |
</style> |
6 |
</head> |
9 |
</head> |
7 |
<body id="cat_cn_browser" class="cat"> |
10 |
<body id="cat_cn_browser" class="cat"> |
8 |
[% UNLESS ( popup ) %] |
11 |
[% IF ( popup ) %] |
9 |
[% INCLUDE 'header.inc' %] |
12 |
<div id="custom-doc" class="yui-t7"> |
10 |
[% INCLUDE 'cat-search.inc' %] |
13 |
<div id="bd"> |
|
|
14 |
[% ELSE %] |
15 |
[% INCLUDE 'header.inc' %] |
16 |
[% INCLUDE 'cat-search.inc' %] |
17 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a> › Call number browser</div> |
18 |
<div id="doc" class="yui-t7"> |
19 |
<div id="bd"> |
20 |
<div id="yui-main"> |
11 |
[% END %] |
21 |
[% END %] |
12 |
|
22 |
|
13 |
<script language="JavaScript"> |
23 |
<h1>Call number browser</h1> |
14 |
$(document).ready(function() |
|
|
15 |
{ |
16 |
$("#cn_browser_table").DataTable({"paging": false, "bFilter": false, "info": false, "bSort": false}); |
17 |
$("#cn_browser_submit").click(function(){ |
18 |
window.location.href='/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q='+$("#cn_browser_input").val(); |
19 |
return false; |
20 |
}); |
21 |
} |
22 |
|
24 |
|
23 |
); |
25 |
<form method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl"> |
24 |
</script> |
26 |
<input type="hidden" name="plugin_name" value="cn_browser.pl" /> |
25 |
|
27 |
[% IF ( popup ) %] |
26 |
<h1 style="text-align:center">Call numbers browser</h1> |
28 |
<input type="hidden" name="popup" /> |
27 |
|
29 |
[% END %] |
28 |
<div style="margin:auto;text-align:center;"> |
30 |
<p> |
29 |
<form method="get" action="cn_browser.pl"> |
31 |
<label for="cn_browser_input">Search call number:</label> |
30 |
<label for="searchcn">Search call number:</label> |
|
|
31 |
<input type="text" id="cn_browser_input" name="q" value="[% q %]" /> |
32 |
<input type="text" id="cn_browser_input" name="q" value="[% q %]" /> |
32 |
<input id="cn_browser_submit" type="submit" value="Search" /> |
33 |
<input type="submit" value="Search" /> |
33 |
</form> |
34 |
</p> |
34 |
</div> |
35 |
</form> |
35 |
<br /> |
|
|
36 |
|
36 |
|
|
|
37 |
[% IF ( cn_loop ) %] |
37 |
<table id="cn_browser_table"> |
38 |
<table id="cn_browser_table"> |
38 |
<thead><tr> |
39 |
<thead><tr> |
39 |
<th>Call Number</th> |
40 |
<th>Call number</th> |
40 |
<th>Title</th> |
41 |
<th>Title</th> |
41 |
<th>Branch</th> |
42 |
<th>Library</th> |
42 |
</tr></thead> |
43 |
</tr></thead> |
43 |
<tbody> |
44 |
<tbody> |
44 |
[% FOREACH cn_loo IN cn_loop %] |
45 |
[% FOREACH cn_loo IN cn_loop %] |
45 |
<tr> |
46 |
[% IF ( cn_loo.duplicate == 0 ) %] |
46 |
<td style="background:[% cn_loo.background %];">[% cn_loo.itemcallnumber %]</td> |
47 |
<tr class="available"> |
47 |
<td style="background:[% cn_loo.background %];"> |
48 |
[% ELSIF ( cn_loo.duplicate == 1 ) %] |
48 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber %]"> |
49 |
<tr class="duplicate"> |
49 |
[% cn_loo.title %] [% cn_loo.subtitle %] [% cn_loo.subtitle2 %] |
50 |
[% ELSE %] |
50 |
[% IF ( cn_loo.author ) %] |
51 |
<tr> |
51 |
<span>by</span> [% cn_loo.author %] |
52 |
[% END %] |
52 |
[% END %] |
53 |
[% IF ( cn_loo.duplicate == 0 ) %] |
53 |
</a> |
54 |
<td><pre>[% q %]</pre></td> |
54 |
</td> |
55 |
<td> Call number is not in use </td> |
55 |
<td style="background:[% cn_loo.background %];">[% cn_loo.branchname %]</td> |
56 |
<td> </td> |
|
|
57 |
[% ELSE %] |
58 |
<td>[% cn_loo.itemcallnumber %]</td> |
59 |
<td> |
60 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber %]"> |
61 |
[% cn_loo.title %] [% cn_loo.subtitle %] [% cn_loo.subtitle2 %] |
62 |
[% IF ( cn_loo.author ) %] |
63 |
<span>by</span> [% cn_loo.author %] |
64 |
[% END %] |
65 |
</a> |
66 |
</td> |
67 |
<td>[% cn_loo.branchname %]</td> |
68 |
[% END %] |
56 |
</tr> |
69 |
</tr> |
57 |
[% END %] |
70 |
[% END %] |
58 |
</tbody> |
71 |
</tbody> |
59 |
</table> |
72 |
</table> |
|
|
73 |
[% ELSE %] |
74 |
[% IF ( q ) %] |
75 |
<div class="dialog message">No results found for [% q %]</div> |
76 |
[% END %] |
77 |
[% END %] |
78 |
|
79 |
[% IF ( popup ) %] |
80 |
<div id="closewindow"><a href="#" class="btn btn-default close">Close</a></div> |
81 |
</div> |
82 |
</div> |
83 |
[% INCLUDE 'popup-bottom.inc' %] |
84 |
[% ELSE %] |
85 |
</div> |
86 |
</div> |
87 |
[% INCLUDE 'intranet-bottom.inc' %] |
88 |
[% END %] |
60 |
|
89 |
|
61 |
<br /> |
|
|
62 |
- |