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

(-)a/cataloguing/value_builder/marc21_linking_section.pl (-2 / +2 lines)
Lines 234-241 my $launcher = sub { Link Here
234
234
235
        my @numbers = ();
235
        my @numbers = ();
236
236
237
        if ( $total > $resultsperpage ) {
237
        if ( $total_hits > $resultsperpage ) {
238
            for ( my $i = 1 ; $i < $total / $resultsperpage + 1 ; $i++ ) {
238
            for ( my $i = 1 ; $i < $total_hits / $resultsperpage + 1 ; $i++ ) {
239
                if ( $i < 16 ) {
239
                if ( $i < 16 ) {
240
                    my $highlight = 0;
240
                    my $highlight = 0;
241
                    ( $startfrom == ( $i - 1 ) ) && ( $highlight = 1 );
241
                    ( $startfrom == ( $i - 1 ) ) && ( $highlight = 1 );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt (-6 / +4 lines)
Lines 21-34 Link Here
21
    [% IF ( Search ) %]
21
    [% IF ( Search ) %]
22
        <div id="MARC21_Linking_section_search" class="page-section">
22
        <div id="MARC21_Linking_section_search" class="page-section">
23
            <h2>Search for</h2>
23
            <h2>Search for</h2>
24
            <form name="f" method="post" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl">
24
            <form name="f" method="get" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl">
25
                [% INCLUDE 'csrf-token.inc' %]
26
25
27
                <p>
26
                <p>
28
                    <input type="hidden" name="plugin_name" value="marc21_linking_section.pl" />
27
                    <input type="hidden" name="plugin_name" value="marc21_linking_section.pl" />
29
                    <input type="hidden" name="index" value="[% index | html %]" />
28
                    <input type="hidden" name="index" value="[% index | html %]" />
30
                    <input type="hidden" name="result" value="marc12 field 7 [% index | html %]" />
29
                    <input type="hidden" name="result" value="marc12 field 7 [% index | html %]" />
31
                    <input type="hidden" name="op" value="cud-do_search" />
30
                    <input type="hidden" name="op" value="do_search" />
32
                    <label class="label100" for="searchbox">Any word</label>
31
                    <label class="label100" for="searchbox">Any word</label>
33
                    <input type="text" name="search" id="searchbox" size="35" /><br />
32
                    <input type="text" name="search" id="searchbox" size="35" /><br />
34
                    <label for="itypeloop">Item type</label>
33
                    <label for="itypeloop">Item type</label>
Lines 53-59 Link Here
53
            <p>[% IF ( displayprev ) %] <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% startfromprev | html %]&amp;search=[% search | html %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search">&lt;&lt; Previous</a>[% END %]
52
            <p>[% IF ( displayprev ) %] <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% startfromprev | html %]&amp;search=[% search | html %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search">&lt;&lt; Previous</a>[% END %]
54
            [% FOREACH number IN numbers %]
53
            [% FOREACH number IN numbers %]
55
                [% IF ( number.highlight ) %] <span class="highlight">[% number.number | html %]</span>
54
                [% IF ( number.highlight ) %] <span class="highlight">[% number.number | html %]</span>
56
                [% ELSE %] <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% number.search |url %]&amp;resultsperpage=[% number.resultsperpage | html %]&amp;type=intranet&amp;op=do_search">[% number.number | html %]</a>
55
                [% ELSE %] <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% search |url %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search">[% number.number | html %]</a>
57
                [% END %]
56
                [% END %]
58
            [% END %]
57
            [% END %]
59
            [% IF ( displaynext ) %]
58
            [% IF ( displaynext ) %]
Lines 114-120 Link Here
114
                            [% number.number | html %]
113
                            [% number.number | html %]
115
                        </span>
114
                        </span>
116
                    [% ELSE %]
115
                    [% ELSE %]
117
                        <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% number.search | html %]&amp;resultsperpage=[% number.resultsperpage | html %]&amp;type=intranet&amp;op=do_search">
116
                        <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&amp;index=[% index | html %]&amp;startfrom=[% number.startfrom | html %]&amp;search=[% search | html %]&amp;resultsperpage=[% resultsperpage | html %]&amp;type=intranet&amp;op=do_search">
118
                            [% number.number | html %]
117
                            [% number.number | html %]
119
                        </a>
118
                        </a>
120
                    [% END %]
119
                    [% END %]
121
- 

Return to bug 36577