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

(-)a/C4/Koha.pm (+4 lines)
Lines 1-6 Link Here
1
package C4::Koha;
1
package C4::Koha;
2
2
3
# Copyright 2000-2002 Katipo Communications
3
# Copyright 2000-2002 Katipo Communications
4
# Parts Copyright 2010 Nelsonville Public Library
4
#
5
#
5
# This file is part of Koha.
6
# This file is part of Koha.
6
#
7
#
Lines 670-675 sub getImageSets { Link Here
670
    foreach my $imagesubdir ( @subdirectories ) {
671
    foreach my $imagesubdir ( @subdirectories ) {
671
        my @imagelist     = (); # hashrefs of image info
672
        my @imagelist     = (); # hashrefs of image info
672
        my @imagenames = _getImagesFromDirectory( File::Spec->catfile( $paths->{'staff'}{'filesystem'}, $imagesubdir ) );
673
        my @imagenames = _getImagesFromDirectory( File::Spec->catfile( $paths->{'staff'}{'filesystem'}, $imagesubdir ) );
674
        my $imagesetactive = 0;
673
        foreach my $thisimage ( @imagenames ) {
675
        foreach my $thisimage ( @imagenames ) {
674
            push( @imagelist,
676
            push( @imagelist,
675
                  { KohaImage     => "$imagesubdir/$thisimage",
677
                  { KohaImage     => "$imagesubdir/$thisimage",
Lines 678-685 sub getImageSets { Link Here
678
                    checked       => "$imagesubdir/$thisimage" eq $checked ? 1 : 0,
680
                    checked       => "$imagesubdir/$thisimage" eq $checked ? 1 : 0,
679
               }
681
               }
680
             );
682
             );
683
             $imagesetactive = 1 if "$imagesubdir/$thisimage" eq $checked;
681
        }
684
        }
682
        push @imagesets, { imagesetname => $imagesubdir,
685
        push @imagesets, { imagesetname => $imagesubdir,
686
                           imagesetactive => $imagesetactive,
683
                           images       => \@imagelist };
687
                           images       => \@imagelist };
684
        
688
        
685
    }
689
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tmpl (-1 / +1 lines)
Lines 70-76 Link Here
70
			<ul>
70
			<ul>
71
					<li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#none">None</a></li>
71
					<li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#none">None</a></li>
72
				  <!-- TMPL_LOOP NAME="imagesets" -->
72
				  <!-- TMPL_LOOP NAME="imagesets" -->
73
				  	<li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
73
					<!-- TMPL_IF NAME="imagesetactive" --><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
74
				  <!-- /TMPL_LOOP -->
74
				  <!-- /TMPL_LOOP -->
75
			</ul>
75
			</ul>
76
		</div>
76
		</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl (-4 / +3 lines)
Lines 162-177 Item Types Administration Link Here
162
      <li>
162
      <li>
163
          <label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" />      </li>
163
          <label for="description">Description</label><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" />      </li>
164
     <!-- TMPL_IF NAME="noItemTypeImages" -->
164
     <!-- TMPL_IF NAME="noItemTypeImages" -->
165
	 <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=all&searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
165
	 <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=all&amp;searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
166
	 <!-- TMPL_ELSE --></ol>
166
	 <!-- TMPL_ELSE --></ol>
167
		<div id="icons" class="toptabs">
167
		<div id="icons" class="toptabs">
168
		<h5 style="margin-left:10px;">Choose an Icon:</h5>
168
		<h5 style="margin-left:10px;">Choose an Icon:</h5>
169
			<ul>
169
			<ul>
170
					<li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
170
					<li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
171
				  <!-- TMPL_LOOP NAME="imagesets" -->
171
				  <!-- TMPL_LOOP NAME="imagesets" -->
172
				  	<li><a href="/cgi-bin/koha/admin/itemtypes.pl#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
172
            <!-- TMPL_IF NAME="imagesetactive" --><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/admin/itemtypes.pl#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
173
				  <!-- /TMPL_LOOP -->
173
				  <!-- /TMPL_LOOP -->
174
				  <li><a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
174
				  <!-- TMPL_IF NAME="remote_image" --><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
175
			</ul>
175
			</ul>
176
		</div>
176
		</div>
177
  <div id="none"><ul>
177
  <div id="none"><ul>
178
- 

Return to bug 5221