|
Lines 32-50
use C4::Koha;
Link Here
|
| 32 |
|
32 |
|
| 33 |
###TODO To rewrite in order to use SearchAuthorities |
33 |
###TODO To rewrite in order to use SearchAuthorities |
| 34 |
|
34 |
|
| 35 |
=head1 |
35 |
=head1 FUNCTIONS |
| 36 |
|
36 |
|
| 37 |
plugin_parameters : other parameters added when the plugin is called by the dopop function |
37 |
=head2 plugin_parameters |
|
|
38 |
|
| 39 |
Other parameters added when the plugin is called by the dopop function |
| 38 |
|
40 |
|
| 39 |
=cut |
41 |
=cut |
|
|
42 |
|
| 40 |
sub plugin_parameters { |
43 |
sub plugin_parameters { |
| 41 |
my ($dbh,$record,$tagslib,$i,$tabloop) = @_; |
44 |
my ($dbh,$record,$tagslib,$i,$tabloop) = @_; |
| 42 |
return ""; |
45 |
return ""; |
| 43 |
} |
46 |
} |
| 44 |
|
47 |
|
| 45 |
=head1 |
48 |
=head2 plugin_javascript |
| 46 |
|
49 |
|
| 47 |
plugin_javascript : the javascript function called when the user enters the subfield. |
50 |
The javascript function called when the user enters the subfield. |
| 48 |
contain 3 javascript functions : |
51 |
contain 3 javascript functions : |
| 49 |
* one called when the field is entered (OnFocus). Named FocusXXX |
52 |
* one called when the field is entered (OnFocus). Named FocusXXX |
| 50 |
* one called when the field is leaved (onBlur). Named BlurXXX |
53 |
* one called when the field is leaved (onBlur). Named BlurXXX |
|
Lines 56-61
returns :
Link Here
|
| 56 |
the 3 scripts are inserted after the <input> in the html code |
59 |
the 3 scripts are inserted after the <input> in the html code |
| 57 |
|
60 |
|
| 58 |
=cut |
61 |
=cut |
|
|
62 |
|
| 59 |
sub plugin_javascript { |
63 |
sub plugin_javascript { |
| 60 |
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; |
64 |
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; |
| 61 |
my $function_name= $field_number; |
65 |
my $function_name= $field_number; |
|
Lines 86-94
function Clic$function_name(subfield_managed) {
Link Here
|
| 86 |
return ($function_name,$res); |
90 |
return ($function_name,$res); |
| 87 |
} |
91 |
} |
| 88 |
|
92 |
|
| 89 |
=head1 |
93 |
=head2 plugin |
| 90 |
|
94 |
|
| 91 |
plugin : the true value_builded. The screen that is open in the popup window. |
95 |
The true value_builded. The screen that is open in the popup window. |
| 92 |
|
96 |
|
| 93 |
=cut |
97 |
=cut |
| 94 |
|
98 |
|