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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +8 lines)
Lines 62-67 function verify_images() { Link Here
62
                        $('#imagenumber-' + this.imagenumber).remove();
62
                        $('#imagenumber-' + this.imagenumber).remove();
63
                    }
63
                    }
64
                });
64
                });
65
            },
66
            error: function(data) {
67
                alert(_("An error occurred on deleting this image"));
65
            }
68
            }
66
        });
69
        });
67
70
Lines 70-76 function verify_images() { Link Here
70
    $(document).ready(function() {
73
    $(document).ready(function() {
71
        $('#bibliodetails').tabs();
74
        $('#bibliodetails').tabs();
72
        $('#search-form').focus();
75
        $('#search-form').focus();
73
        $('.thumbnails > li > a > span').click(function() {
76
        $('.thumbnails > li > a > span.remove').click(function() {
74
            var result = confirm(_("Are you sure you want to delete this cover image?"));
77
            var result = confirm(_("Are you sure you want to delete this cover image?"));
75
78
76
            if ( result == true ) {
79
            if ( result == true ) {
Lines 728-735 function verify_images() { Link Here
728
    [% IF image %]
731
    [% IF image %]
729
        <li id="imagenumber-[% image %]">
732
        <li id="imagenumber-[% image %]">
730
            <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&amp;imagenumber=[% image %]">
733
            <a class="thumbnail" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&amp;imagenumber=[% image %]">
731
                <img alt="" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image %]" />
734
                <img alt="remove this image" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;imagenumber=[% image %]" />
732
                <span class="remove">&times;</span>
735
                [% IF CAN_user_tools_upload_local_cover_images %]
736
                  <span class="remove" title="remove this image">&times;</span>
737
                [% END %]
733
            </a>
738
            </a>
734
        </li>
739
        </li>
735
    [% END %]
740
    [% END %]
(-)a/svc/cover_images (-14 / +12 lines)
Lines 1-23 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# Copyright 2013 Universidad Nacional de Cordoba
4
#                Tomas Cohen Arazi
5
#
6
# This file is part of Koha.
3
# This file is part of Koha.
7
#
4
#
8
# Koha is free software; you can redistribute it and/or modify it under the
5
# Copyright 2013 Universidad Nacional de Cordoba
9
# terms of the GNU General Public License as published by the Free Software
6
#                Tomas Cohen Arazi
10
# Foundation; either version 2 of the License, or (at your option) any later
11
# version.
12
#
7
#
13
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
8
# Koha is free software; you can redistribute it and/or modify it
14
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
9
# under the terms of the GNU General Public License as published by
15
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
10
# the Free Software Foundation; either version 3 of the License, or
11
# (at your option) any later version.
16
#
12
#
17
# You should have received a copy of the GNU General Public License along
13
# Koha is distributed in the hope that it will be useful, but
18
# with Koha; if not, write to the Free Software Foundation, Inc.,
14
# WITHOUT ANY WARRANTY; without even the implied warranty of
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
20
#
17
#
18
# You should have received a copy of the GNU General Public License
19
# along with Koha; if not, see <http://www.gnu.org/licenses>.
21
20
22
use Modern::Perl;
21
use Modern::Perl;
23
22
24
- 

Return to bug 7813