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

(-)a/cataloguing/value_builder/unimarc_field_4XX.pl (-2 / +2 lines)
Lines 395-402 sub plugin { Link Here
395
395
396
        my @numbers = ();
396
        my @numbers = ();
397
397
398
        if ( $total > $resultsperpage ) {
398
        if ( $total_hits > $resultsperpage ) {
399
            for ( my $i = 1 ; $i < $total / $resultsperpage + 1 ; $i++ ) {
399
            for ( my $i = 1 ; $i < $total_hits / $resultsperpage + 1 ; $i++ ) {
400
                if ( $i < 16 ) {
400
                if ( $i < 16 ) {
401
                    my $highlight = 0;
401
                    my $highlight = 0;
402
                    ( $startfrom == ( $i - 1 ) ) && ( $highlight = 1 );
402
                    ( $startfrom == ( $i - 1 ) ) && ( $highlight = 1 );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt (-7 / +4 lines)
Lines 19-32 Link Here
19
    [% IF ( Search ) %]
19
    [% IF ( Search ) %]
20
        <div id="UNIMARC_Field_4XX_search" class="page-section">
20
        <div id="UNIMARC_Field_4XX_search" class="page-section">
21
            <h2> Search on </h2>
21
            <h2> Search on </h2>
22
            <form name="f" method="post" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl">
22
            <form name="f" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl">
23
                [% INCLUDE 'csrf-token.inc' %]
24
25
                <p>
23
                <p>
26
                    <input type="hidden" name="plugin_name" value="unimarc_field_4XX.pl" />
24
                    <input type="hidden" name="plugin_name" value="unimarc_field_4XX.pl" />
27
                    <input type="hidden" name="index" value="[% index | html %]" />
25
                    <input type="hidden" name="index" value="[% index | html %]" />
28
                    <input type="hidden" name="result" value="unimarc field 4 [% index | html %]" />
26
                    <input type="hidden" name="result" value="unimarc field 4 [% index | html %]" />
29
                    <input type="hidden" name="op" value="cud-do_search" />
27
                    <input type="hidden" name="op" value="do_search" />
30
                    <label class="label100" for="searchbox">Any word</label>
28
                    <label class="label100" for="searchbox">Any word</label>
31
                    <input type="text" name="search" id="searchbox" size="35" /><br />
29
                    <input type="text" name="search" id="searchbox" size="35" /><br />
32
                    <label for="itypeloop">Item type:</label>
30
                    <label for="itypeloop">Item type:</label>
Lines 59-65 Link Here
59
                    [% ELSE %]
57
                    [% ELSE %]
60
                        <a
58
                        <a
61
                            class="resultnumber"
59
                            class="resultnumber"
62
                            href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% number.search |uri %]&amp;resultsperpage=[% number.resultsperpage | html %]&amp;type=intranet&amp;op=do_search"
60
                            href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% search |uri %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search"
63
                            >[% number.number | html %]</a
61
                            >[% number.number | html %]</a
64
                        >
62
                        >
65
                    [% END %]
63
                    [% END %]
Lines 152-158 Link Here
152
                    [% ELSE %]
150
                    [% ELSE %]
153
                        <a
151
                        <a
154
                            class="resultnumber"
152
                            class="resultnumber"
155
                            href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% number.search |uri %]&amp;resultsperpage=[% number.resultsperpage | html %]&amp;type=intranet&amp;op=do_search"
153
                            href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% search |uri %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search"
156
                        >
154
                        >
157
                            [% number.number | html %]
155
                            [% number.number | html %]
158
                        </a>
156
                        </a>
159
- 

Return to bug 40306