View | Details | Raw Unified | Return to bug 31928
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt (-46 / +53 lines)
Lines 15-67 Link Here
15
15
16
<h1>Call number browser</h1>
16
<h1>Call number browser</h1>
17
17
18
<div>
19
    <form id="cn_browser" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
18
    <form id="cn_browser" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
20
        <label for="searchcn">Search call number:</label>
19
        <fieldset class="brief">
21
        <input type="text" id="cn_browser_input" name="q" value="[% q | html %]" />
20
            <ol>
22
        <input id="cn_browser_submit" type="submit" value="Search" />
21
            <li>
23
        <input name="plugin_name" type="hidden" value="cn_browser.pl"/>
22
                <label for="searchcn">Search call number:</label>
24
        <input name="popup" type="hidden" value="[% popup | html %]"/>
23
                <input type="text" id="cn_browser_input" name="q" value="[% q | html %]" />
25
        </br>
24
                <input name="plugin_name" type="hidden" value="cn_browser.pl"/>
26
        <label for="cn_source">Call number classification scheme:</label>
25
                <input name="popup" type="hidden" value="[% popup | html %]"/>
27
        <select name="cn_source" form="cn_browser">
26
            </li>
28
            [% FOREACH class_source IN class_sources %]
27
            <li>
29
                [% IF class_source.cn_source == cn_source %]
28
                <label for="cn_source">Call number classification scheme:</label>
30
                    <option value="[% class_source.cn_source | html %]" selected="selected">[% class_source.description | html %]</option>
29
                <select name="cn_source" form="cn_browser">
31
                [% ELSE %]
30
                    [% FOREACH class_source IN class_sources %]
32
                    <option value="[% class_source.cn_source | html %]">[% class_source.description | html %]</option>
31
                        [% IF class_source.cn_source == cn_source %]
33
                [% END %]
32
                            <option value="[% class_source.cn_source | html %]" selected="selected">[% class_source.description | html %]</option>
34
            [% END %]
33
                        [% ELSE %]
35
        </select>
34
                            <option value="[% class_source.cn_source | html %]">[% class_source.description | html %]</option>
35
                        [% END %]
36
                    [% END %]
37
                </select>
38
            </li>
39
            </ol>
40
            <fieldset class="action">
41
                <input id="cn_browser_submit" type="submit" value="Search" />
42
            </fieldset>
43
        </fieldset>
36
    </form>
44
    </form>
37
</div>
38
<br />
39
45
40
<table id="cn_browser_table">
46
<div class="page-section">
41
    <thead><tr>
47
    <table id="cn_browser_table">
42
        <th>Call number</th>
48
        <thead><tr>
43
        <th>Title</th>
49
            <th>Call number</th>
44
        <th>Library</th>
50
            <th>Title</th>
45
        <th>Collection</th>
51
            <th>Library</th>
46
    </tr></thead>
52
            <th>Collection</th>
47
    <tbody>
53
        </tr></thead>
48
[% FOREACH cn_loo IN cn_loop %]
54
        <tbody>
49
    <tr>
55
    [% FOREACH cn_loo IN cn_loop %]
50
    <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
56
        <tr>
51
    <td style="background:[% cn_loo.background | html %];">
57
        <td style="background:[% cn_loo.background | html %];">[% cn_loo.itemcallnumber | html %]</td>
52
        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | uri %]">
58
        <td style="background:[% cn_loo.background | html %];">
53
            [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
59
            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cn_loo.biblionumber | uri %]">
54
            [% IF ( cn_loo.author ) %]
60
                [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %]
55
                <span>by</span> [% cn_loo.author | html %]
61
                [% IF ( cn_loo.author ) %]
56
            [% END %]
62
                    <span>by</span> [% cn_loo.author | html %]
57
            [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode | html %])[% END %]
63
                [% END %]
58
        </a>
64
                [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode | html %])[% END %]
59
    </td>
65
            </a>
60
    <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
66
        </td>
61
    <td style="background:[% cn_loo.background | html %];">[% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %]</td>
67
        <td style="background:[% cn_loo.background | html %];">[% cn_loo.branchname | html %]</td>
62
    </tr>
68
        <td style="background:[% cn_loo.background | html %];">[% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %]</td>
63
[% END %]
69
        </tr>
64
    </tbody>
70
    [% END %]
65
</table>
71
        </tbody>
72
    </table>
73
</div> <!-- /.page-section -->
66
74
67
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
75
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
68
- 

Return to bug 31928