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

(-)a/cataloguing/additem.pl (-2 lines)
Lines 308-315 my ($template, $loggedinuser, $cookie) Link Here
308
308
309
309
310
my $today_iso = C4::Dates->today('iso');
310
my $today_iso = C4::Dates->today('iso');
311
$template->param(today_iso => $today_iso);
312
313
my $tagslib = &GetMarcStructure(1,$frameworkcode);
311
my $tagslib = &GetMarcStructure(1,$frameworkcode);
314
my $record = GetMarcBiblio($biblionumber);
312
my $record = GetMarcBiblio($biblionumber);
315
my $oldrecord = TransformMarcToKoha($dbh,$record);
313
my $oldrecord = TransformMarcToKoha($dbh,$record);
(-)a/cataloguing/value_builder/dateaccessioned.pl (-3 / +10 lines)
Lines 18-24 Link Here
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
20
use strict;
20
use strict;
21
#use warnings; FIXME - Bug 2505
21
use warnings;
22
22
23
=head1
23
=head1
24
24
Lines 71-84 function Focus$function_name(subfield_managed, id, force) { Link Here
71
    //  summary += i + ": " + document.f.tag[i].value + " " + document.f.subfield[i].value + ": " + document.f.field_value[i].value + "\\n"; 
71
    //  summary += i + ": " + document.f.tag[i].value + " " + document.f.subfield[i].value + ": " + document.f.field_value[i].value + "\\n"; 
72
    //}
72
    //}
73
    //alert("Got focus, subfieldmanaged: " + subfield_managed + "\\n" + summary);
73
    //alert("Got focus, subfieldmanaged: " + subfield_managed + "\\n" + summary);
74
    set_to_today(id); // defined in additem.pl HEAD
74
    set_to_today(id);
75
    return 0;
75
    return 0;
76
}
76
}
77
77
78
function Clic$function_name(id) {
78
function Clic$function_name(id) {
79
    set_to_today(id, 1); // defined in additem.pl HEAD
79
    set_to_today(id, 1);
80
    return 0;
80
    return 0;
81
}
81
}
82
83
function set_to_today(id, force) {
84
    if (! id) { alert(_("Bad id ") + id + _(" sent to set_to_today()")); return 0; }
85
    if (\$("#" + id).val() == '' || \$("#" + id).val() == '0000-00-00' || force) {
86
        \$("#" + id).val("$date");
87
    }
88
}
82
//]]>
89
//]]>
83
</script>
90
</script>
84
END_OF_JS
91
END_OF_JS
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-8 lines)
Lines 157-169 $(document).ready(function() { Link Here
157
        function () {$(this).attr("class",""         );}
157
        function () {$(this).attr("class",""         );}
158
    );
158
    );
159
});
159
});
160
161
function set_to_today(id, force) {
162
    if (! id) { alert(_("Bad id ") + id + _(" sent to set_to_today()")); return 0; }
163
    if ($("#" + id).val() == '' || $("#" + id).val() == '0000-00-00' || force) {
164
        $("#" + id).val("[% today_iso %]");
165
    }
166
}
167
//]]>
160
//]]>
168
</script>
161
</script>
169
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
162
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
170
- 

Return to bug 6125