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

(-)a/admin/authorised_values.pl (-1 / +8 lines)
Lines 28-33 use C4::Output; Link Here
28
use Koha::AuthorisedValues;
28
use Koha::AuthorisedValues;
29
use Koha::AuthorisedValueCategories;
29
use Koha::AuthorisedValueCategories;
30
use Koha::Libraries;
30
use Koha::Libraries;
31
use Koha::Localizations;
31
32
32
my $input = new CGI;
33
my $input = new CGI;
33
my $id          = $input->param('id');
34
my $id          = $input->param('id');
Lines 98-105 if ($op eq 'add_form') { Link Here
98
} elsif ($op eq 'add') {
99
} elsif ($op eq 'add') {
99
    my $new_authorised_value = $input->param('authorised_value');
100
    my $new_authorised_value = $input->param('authorised_value');
100
    my $new_category = $input->param('category');
101
    my $new_category = $input->param('category');
102
    my $image = $input->param('image') || q||;
101
    my $imageurl     = $input->param( 'imageurl' ) || '';
103
    my $imageurl     = $input->param( 'imageurl' ) || '';
102
    $imageurl = '' if $imageurl =~ /removeImage/;
104
    my $imageurl =
105
      $image eq 'removeImage' ? ''
106
      : (
107
          $image eq 'remoteImage' ? $input->param('remoteImage')
108
        : $image
109
      );
103
    my $duplicate_entry = 0;
110
    my $duplicate_entry = 0;
104
    my @branches = grep { $_ ne q{} } $input->multi_param('branches');
111
    my @branches = grep { $_ ne q{} } $input->multi_param('branches');
105
112
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-2 / +21 lines)
Lines 126-131 $(document).ready(function() { Link Here
126
				  [% FOREACH imageset IN imagesets %]
126
				  [% FOREACH imageset IN imagesets %]
127
                        [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
127
                        [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
128
				  [% END %]
128
				  [% END %]
129
      [% IF itemtype.image_location('intranet').match('^http') %]<li class="ui-tabs-active">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
129
			</ul>
130
			</ul>
130
  <div id="none"><ul>
131
  <div id="none"><ul>
131
  <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
132
  <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
Lines 152-158 $(document).ready(function() { Link Here
152
  <br class="clear" />
153
  <br class="clear" />
153
  </div>
154
  </div>
154
  [% END %]
155
  [% END %]
155
  </div>
156
157
<div id="remote">
158
                        <ul>
159
                            <li>
160
                                <label for="remote_image_check"> Remote image:</label>
161
                                [% IF remote_image %]
162
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
163
                                [% ELSE %]
164
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
165
                                [% END %]
166
                                <input type="text" name="remoteImage" size="48" maxlength="200" value="[% remote_image %]" onmousedown="document.getElementById('remote_image_check').checked = true;" />
167
                                [% IF ( remote_image ) %]
168
                                    <img src="[% remote_image %]" alt="" />
169
                                [% END %]
170
                            </li>
171
                        </ul>
172
                        <br class="clear" />
173
                    </div>
174
                </div>
175
156
        [% END %]
176
        [% END %]
157
        </fieldset>
177
        </fieldset>
158
       <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
178
       <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
159
- 

Return to bug 7374