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

(-)a/cataloguing/value_builder/stocknumberam123.pl (-3 / +3 lines)
Lines 1-6 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# Copyright 2010 BibLibre SARL
3
# Copyright 2012 BibLibre SARL
4
#
4
#
5
# This file is part of Koha.
5
# This file is part of Koha.
6
#
6
#
Lines 24-30 use C4::Context; Link Here
24
24
25
=head1 DESCRIPTION
25
=head1 DESCRIPTION
26
26
27
This plugin is specific to AM123 but could be used as a base for similar operations.
27
This plugin is based on authorised values INVENTORY.
28
It is used for stocknumber computation.
28
It is used for stocknumber computation.
29
29
30
If the user send an empty string, we return a simple incremented stocknumber.
30
If the user send an empty string, we return a simple incremented stocknumber.
Lines 57-63 sub plugin_javascript { Link Here
57
                    url: '/cgi-bin/koha/cataloguing/plugin_launcher.pl',
57
                    url: '/cgi-bin/koha/cataloguing/plugin_launcher.pl',
58
                    type: 'POST',
58
                    type: 'POST',
59
                    data: {
59
                    data: {
60
                        'plugin_name': 'stocknumberam123.pl',
60
                        'plugin_name': 'stocknumberAV.pl',
61
                        'code'    : code.value,
61
                        'code'    : code.value,
62
                    },
62
                    },
63
                    success: function(data){
63
                    success: function(data){
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +8 lines)
Lines 5657-5662 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5657
    SetVersion ($DBversion);
5657
    SetVersion ($DBversion);
5658
}
5658
}
5659
5659
5660
5661
$DBversion = "3.09.00.XXX";
5662
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5663
    $dbh->do("UPDATE marc_subfield_structure SET value_builder='stocknumberAV.pl' WHERE value_builder='stocknumberam123.pl'");
5664
    print "Upgrade to $DBversion done (Bug 7992 - Rename the value_builder plugin stocknumberam123.pl with stocknumberAV.pl.)\n";
5665
    SetVersion ($DBversion);
5666
}
5667
5660
=head1 FUNCTIONS
5668
=head1 FUNCTIONS
5661
5669
5662
=head2 TableExists($table)
5670
=head2 TableExists($table)
5663
- 

Return to bug 7992