my $DEBUG = 0;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-# my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "barcode".(int(rand(100000))+1);
<script type="text/javascript">
//<![CDATA[
-function Blur$function_name(index) {
- //barcode validation might go here
-}
-
function Focus$function_name(subfield_managed, id, force) {
$scr
return 0;
END_OF_JS
return ($function_name, $js);
}
-
-=head1
-
-plugin: useless here
-
-=cut
-
-sub plugin {
- # my ($input) = @_;
- return "";
-}
-
-1;
my $DEBUG = 0;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-# my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "barcode".(int(rand(100000))+1);
<script type="text/javascript">
//<![CDATA[
- function Blur$function_name(index) {
- //barcode validation might go here
- }
-
- function Focus$function_name(subfield_managed, id, force) {
- return 0;
- }
-
function Clic$function_name(id) {
$scr
return 0;
END_OF_JS
return ($function_name, $js);
}
-
-=head1
-
-plugin: useless here
-
-=cut
-
-sub plugin {
-# my ($input) = @_;
- return "";
-}
-
-1;
=cut
-sub plugin_parameters {
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number() {
var code = document.getElementById('$field_number');
var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber-KU.pl&code=' + code.value;
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
function Blur$field_number() {
var code = document.getElementById('$field_number');
var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber.pl&code=' + code.value;
return 1;
}
- function Clic$field_number() {
- return 1;
- }
</script>
";
}
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
no warnings 'redefine';
-=head1
-
-plugin_parameters : useless here
-
-=cut
-
-sub plugin_parameters {
- # my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus) named FocusXXX
-* one called when the field is left (onBlur ) named BlurXXX
-* one called when the ... link is clicked (onClick) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
# my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name = "dateaccessioned".(int(rand(100000))+1);
//
// from: cataloguing/value_builder/dateaccessioned.pl
-function Blur$function_name(index) {
- //date validation could go here
-}
-
function Focus$function_name(subfield_managed, id, force) {
//var summary = "";
//for (i=0 ; i<document.f.field_value.length ; i++) {
END_OF_JS
return ($function_name, $res);
}
-
-=head1
-
-plugin: useless here.
-
-=cut
-
-sub plugin {
-# my ($input) = @_;
- return "";
-}
-
-1;
use vars qw( $is_a_modif );
use utf8;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "macles".(int(rand(100000))+1);
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=macles.pl&index=\"+i,\"MACLES\",',toolbar=false,scrollbars=yes');
$template->param("index"=>$index);
output_html_with_http_headers $input, $cookie, $template->output;
}
-1;
-
-
#use warnings; FIXME - Bug 2505
use C4::Context;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- # my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Blur$function_name(index) {
-//need this?
-}
-
function Focus$function_name(subfield_managed) {
document.getElementById(\"$field_number\").value='$org';
return 0;
}
-function Clic$function_name(subfield_managed) {
-}
//]]>
</script>
";
return ($function_name,$res);
}
-
-=head1
-
-plugin : the true value_builded. The screen that is open in the popup window.
-
-=cut
-
-sub plugin {
- return "";
-}
-
-1;
#use warnings; FIXME - Bug 2505
#use C4::Context;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- # my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Blur$function_name(index) {
-//need this?
-}
-
function Focus$function_name(subfield_managed) {
document.getElementById(\"$field_number\").value='$date';
return 0;
}
-function Clic$function_name(subfield_managed) {
-}
//]]>
</script>
";
return ($function_name,$res);
}
-
-=head1
-
-plugin : the true value_builded. The screen that is open in the popup window.
-
-=cut
-
-sub plugin {
- return "";
-}
-
-1;
=cut
-sub plugin_parameters {
- my ($dbh, $record, $tagslib, $i, $tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh, $record, $tagslib, $field_number, $tabloop) = @_;
my $function_name = $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_006.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_007.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
$mon += 1;
my $dateentered = substr($year, 2, 2) . sprintf("%0.2d", $mon) . sprintf("%0.2d", $mday);
-sub plugin_parameters {
- my ($dbh, $record, $tagslib, $i, $tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my $lang = C4::Context->preference('DefaultLanguageField008' );
$lang = "eng" unless $lang;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
//Retrieve full leader string and pass it to the 008 tag editor
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
my $dateentered = substr($year,2,2).sprintf ("%0.2d", $mon).sprintf ("%0.2d",$mday);
my $defaultval = Field008();
-sub plugin_parameters {
- my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
var authtype=document.forms['f'].elements['authtypecode'].value;
defaultvalue=document.getElementById(\"$field_number\").value;
}
return substr($pref,0,34); #ignore remainder
}
-
-1;
use C4::Context;
# use MARC::Record;
-=head1 plugin_parameters
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- # my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1 plugin_javascript
-
-plugin_javascript : the javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Blur$function_name(index) {
-//need this?
-}
-
function Focus$function_name(subfield_managed) {
document.getElementById(\"$field_number\").value='$org';
return 0;
}
-function Clic$function_name(subfield_managed) {
-}
//]]>
</script>
";
return ($function_name,$res);
}
-
-=head1 plugin
-
-plugin : the true value_builded. The screen that is open in the popup window.
-
-=cut
-
-sub plugin {
- return "";
-}
-
-1;
=cut
-sub plugin_parameters {
- # my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1 FUNCTIONS
-
-=head2 plugin_javascript
-
-The javascript function called when the user enters the subfield.
-contain 3 javascript functions :
- * one called when the field is entered (OnFocus). Named FocusXXX
- * one called when the field is leaved (onBlur). Named BlurXXX
- * one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
- * XXX
- * a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name = $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Blur$function_name(index) {
-//need this?
-}
-
function Focus$function_name(subfield_managed) {
document.getElementById(\"$field_number\").value='$org';
return 0;
}
-function Clic$function_name(subfield_managed) {
-}
//]]>
</script>
";
return ($function_name,$res);
}
-
-=head2 plugin
-
-the true value_builded. The screen that is open in the popup window.
-
-=cut
-
-sub plugin {
- return "";
-}
-
-1;
#use warnings; FIXME - Bug 2505
use C4::Context;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- return "";
-}
-
-=head2 plugin_javascript
-
-Thee javascript function called when the user enters the subfield.
-contain 3 javascript functions :
- * one called when the field is entered (OnFocus). Named FocusXXX
- * one called when the field is leaved (onBlur). Named BlurXXX
- * one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
- * XXX
- * a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name = $field_number;
return 0;
}
-function Focus$function_name(subfield_managed) {
- // Do Nothing
-}
-
-function Clic$function_name(subfield_managed) {
- // Do Nothing
-}
//]]>
</script>
";
return ($function_name,$res);
}
-
-=head2 plugin
-
-The true value_builded. The screen that is open in the popup window.
-
-=cut
-
-sub plugin {
- return "";
-}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader_authorities.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$field_number&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+i+\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Branch;
use C4::ItemType;
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
my $res = "
<script type='text/javascript'>
- function Focus$function_name(subfield_managed) {
- return 1;
- }
-
- function Blur$function_name(subfield_managed) {
- return 1;
- }
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&index=\" + i + \"&result=\"+defaultvalue,\"marc21_field_7\"+i+\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
}
output_html_with_http_headers $query, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
<script type=\"text/javascript\">
//<![CDATA[
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=normarc_field_007.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
# find today's date
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
$mon += 1;
my $dateentered = substr($year, 2, 2) . sprintf("%0.2d", $mon) . sprintf("%0.2d", $mday);
-sub plugin_parameters {
- my ($dbh, $record, $tagslib, $i, $tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my $lang = C4::Context->preference('DefaultLanguageField008' );
$lang = "eng" unless $lang;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
defaultvalue=defaultvalue.replace(/ /g, \"+\");
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
return 1;
}
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=normarc_leader.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use warnings;
use C4::Context;
-=head1 plugin_parameters
-
-other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-# my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
-=head1 plugin_javascript
-
-The javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "inventory".(int(rand(100000))+1);
<script type="text/javascript">
//<![CDATA[
-function Blur$function_name(index) {
- //barcode validation might go here
-}
-
function Focus$function_name(subfield_managed, id, force) {
$scr
return 0;
END_OF_JS
return ($function_name, $js);
}
-
-=head1
-
-plugin: useless here
-
-=cut
-
-sub plugin {
- # my ($input) = @_;
- return "";
-}
-
-1;
=cut
-sub plugin_parameters {
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res = qq{
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number() {
var code = document.getElementById('$field_number');
\$.ajax({
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
function Blur$field_number() {
var code = document.getElementById('$field_number');
var url = '../cataloguing/plugin_launcher.pl?plugin_name=stocknumberam123.pl&code=' + code.value;
return 1;
}
- function Clic$field_number() {
- return 1;
- }
</script>
";
}
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Context;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
function Blur$field_number() {
var isbn = document.getElementById('$field_number');
var url = '../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_010.pl&isbn=' + isbn.value;
return 1;
}
- function Clic$field_number() {
- return 1;
- }
</script>
";
}
output_html_with_http_headers $input, $cookie, $template->output;
}
-1;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $res = "
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number(i) {
var defaultvalue;
try {
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $res = "
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number(i) {
var defaultvalue;
try {
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number() {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_105.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_105\",'width=1200,height=400,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "106".(int(rand(100000))+1);
my $res="
<script>
-function Focus$field_number() {
-return 1;
-}
-
-function Blur$field_number() {
- return 1;
-}
-
function Clic$field_number() {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_106.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_106\",'width=500,height=400,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script type='text/javascript'>
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number() {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_110.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_110\",'width=700,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $res = "
<script type=\"text/javascript\">
- function Focus$field_number() {
- return 1;
- }
-
- function Blur$field_number() {
- return 1;
- }
-
function Clic$field_number(i) {
var defaultvalue;
try {
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $res = "
<script type=\"text/javascript\">
-function Focus$field_number(subfield_managed) {
- return 1;
-}
-
-function Blur$field_number(subfield_managed) {
- return 1;
-}
-
function Clic$field_number() {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_115b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_115b\",'width=1200,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $res = "
<script>
-function Focus$field_number(subfield_managed) {
- return 1;
-}
-
-function Blur$field_number(subfield_managed) {
- return 1;
-}
-
function Clic$field_number(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_116.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_116\",'width=1200,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $res="
<script>
-function Focus$field_number(subfield_managed) {
-return 1;
-}
-
-function Blur$field_number(subfield_managed) {
- return 1;
-}
-
function Clic$field_number(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_117.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_117\",'width=600,height=225,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name=$field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_120.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_120\",'width=1200,height=750,toolbar=false,scrollbars=yes');
"f10$f10" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_121a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_121a\",'width=1210,height=750,toolbar=false,scrollbars=yes');
"f8$f8" => $f8);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_121b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_121b\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f7$f7" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_122.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_122\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f5 => $f5);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
- return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123a\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => $f1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123i.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123i\",'width=800,height=400,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
- return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
- function Focus$function_name(subfield_managed) {
- return 1;
- }
-
- function Blur$function_name(subfield_managed) {
- return 1;
- }
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123j.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123j\",'width=800,height=400,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_100.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_100\",'width=500,height=400,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_124a\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_124b\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124c.pl&index=\"+i+\"&result=\"+defaultvalue,\"unimarc_field_124c\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124d.pl&index=\"+i+\"&result=\"+defaultvalue,\"unimarc_field_124d\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124e.pl&index=\"+i+\"&result=\"+defaultvalue,\"unimarc_field_124e\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124f.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_124f\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_124g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_124g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_100.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_100\",'width=500,height=400,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
- function Focus$function_name(subfield_managed) {
- return 1;
- }
-
- function Blur$function_name(subfield_managed) {
- return 1;
- }
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_125a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_125a\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1,"f2$f2" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_125b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_125b\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_100.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_100\",'width=500,height=400,toolbar=false,scrollbars=yes');
f4 => $f4);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_126a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_126a\",'width=1000,height=575,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 DECRIPTION
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_126b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_126b\",'width=1000,height=575,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_127.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_127\",'width=1000,height=375,toolbar=false,scrollbars=yes');
f3 => $f3);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_128a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_128a\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_128b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_128b\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_128c.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_128c\",'width=1000,height=375,toolbar=false,scrollbars=yes');
"f1$f1" => 1);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_130.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_130\",'width=1000,height=375,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_135a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_135a\",'width=1000,height=375,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_140.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_140\",'width=1000,height=575,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res="
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_141.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_141\",'width=1000,height=575,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
###TODO To rewrite in order to use SearchAuthorities
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
-=head2 plugin_javascript
-
-The javascript function called when the user enters the subfield.
-contain 3 javascript functions :
-* one called when the field is entered (OnFocus). Named FocusXXX
-* one called when the field is leaved (onBlur). Named BlurXXX
-* one called when the ... link is clicked (<a href="javascript:function">) named ClicXXX
-
-returns :
-* XXX
-* a variable containing the 3 scripts.
-the 3 scripts are inserted after the <input> in the html code
-
-=cut
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res = "
<script type=\"text/javascript\">
-function Focus$function_name(index) {
-
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(subfield_managed) {
defaultvalue=escape(document.getElementById(\"$field_number\").value);
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&index=\"+subfield_managed,\"unimarc_225a\",'width=500,height=600,toolbar=false,scrollbars=yes');
return ($function_name,$res);
}
-=head2 plugin
-
-The true value_builded. The screen that is open in the popup window.
-
-=cut
-
sub plugin {
my ($input) = @_;
my $query=new CGI;
# Print the page
output_html_with_http_headers $query, $cookie, $template->output;
}
-
-1;
use C4::AuthoritiesMarc;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-plugin_parameters : other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
my $res = "
<script type=\"text/javascript\">
- function Focus$function_name(subfield_managed) {
- return 1;
- }
- function Blur$function_name(subfield_managed) {
- return 1;
- }
function Clic$function_name(index) {
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c_bis.pl&index=\"+index,\"unimarc210c\",'width=500,height=400,toolbar=false,scrollbars=no');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
my $res = "
<script type=\"text/javascript\">
- function Focus$function_name(subfield_managed) {
- return 1;
- }
- function Blur$function_name(subfield_managed) {
- return 1;
- }
function Clic$function_name(index) {
// find the 010a value and the 210c. it will be used in the popup to find possibles collections
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Branch; # GetBranches
use C4::ItemType;
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
my $res = "
<script type='text/javascript'>
- function Focus$function_name(subfield_managed) {
- return 1;
- }
-
- function Blur$function_name(subfield_managed) {
- return 1;
- }
-
function Clic$function_name(i) {
defaultvalue=document.getElementById(\"$field_number\").value;
window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&index=\" + i + \"&result=\"+defaultvalue,\"unimarc_field_4\"+i+\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
}
output_html_with_http_headers $query, $cookie, $template->output;
}
-
-1;
my $function_name= $field_number;
my $res = "
<script>
-function Focus$function_name(index) {
- return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(subfield_managed) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_686a.pl&result=\"+defaultvalue+\"&index=$field_number\",\"value_builder\",'width=700,height=600,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
=cut
-sub plugin_parameters {
-my ($dbh,$record,$tagslib,$i,$tabloop) = @_;
-return "";
-}
-
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= $field_number;
my $res = "
<script>
-function Focus$function_name(index) {
- return 1;
-}
-
-function Blur$function_name(subfield_managed) {
- return 1;
-}
-
function Clic$function_name(subfield_managed) {
defaultvalue=document.getElementById(\"$field_number\").value;
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_700-4.pl&result=\"+defaultvalue+\"&index=$field_number\",\"value_builder\",'width=500,height=400,toolbar=false,scrollbars=yes');
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;
use C4::Search;
use C4::Output;
-=head1 FUNCTIONS
-
-=head2 plugin_parameters
-
-Other parameters added when the plugin is called by the dopop function
-
-=cut
-
-sub plugin_parameters {
- my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_;
- return "";
-}
-
sub plugin_javascript {
my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
my $function_name = $field_number;
my $res = "
<script>
-function Focus$function_name(subfield_managed) {
-return 1;
-}
-
function Blur$function_name(subfield_managed) {
var leader_length = document.getElementById(\"$field_number\").value.length;
if (leader_length != 24 && leader_length !=0) {
);
output_html_with_http_headers $input, $cookie, $template->output;
}
-
-1;