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

(-)a/cataloguing/value_builder/unimarc_field_225a.pl (-8 / +6 lines)
Lines 142-155 sub plugin { Link Here
142
            
142
            
143
    } 
143
    } 
144
    @collections = sort @collections;
144
    @collections = sort @collections;
145
    #	my @collections = ["test"];
145
    # my @collections = ( "test" );
146
    my $collection = CGI::scrolling_list(
146
    my $collection = {
147
        -name     => 'f1',
147
            values  => \@collections,
148
        -values   => \@collections,
148
            default => "$result",
149
        -default  => "$result",
149
    };
150
        -size     => 1,
150
151
        -multiple => 0,
152
    );
153
    $template->param(
151
    $template->param(
154
        index      => $index,
152
        index      => $index,
155
        collection => $collection
153
        collection => $collection
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt (-2 / +11 lines)
Lines 7-13 Link Here
7
    <div id="mainbloc">
7
    <div id="mainbloc">
8
        <form name="f_pop" onsubmit="report()" action="">
8
        <form name="f_pop" onsubmit="report()" action="">
9
            <h2 class="authority">Collection</h2>
9
            <h2 class="authority">Collection</h2>
10
            <p><label>Select a collection</label>[% collection %]</p>
10
            <p><label>Select a collection</label>
11
                <select name="f1" id="f1" size="1">
12
                [% FOREACH value IN collection.values %]
13
                  [% IF ( value == collection.default ) %]
14
                    <option value="[% value %]" selected="selected">[% value %]</option>
15
                  [% ELSE %]
16
                    <option value="[% value %]">[% value %]</option>
17
                  [% END %]
18
                [% END %]
19
                </select>
20
            </p>
11
            OR new collection: <input type="text" value="" name="f2"/>
21
            OR new collection: <input type="text" value="" name="f2"/>
12
            <br/>
22
            <br/>
13
            <input type="submit" value="OK" class="button authority" />
23
            <input type="submit" value="OK" class="button authority" />
14
- 

Return to bug 12704