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){ |