From b733a5baa81bc95d1dee4a695d2c9db0752881fa Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 28 Dec 2007 22:27:39 -0600 Subject: [PATCH] MARC21 authorities: fixed leader value builder Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../marc21_leader_authorities.pl | 12 +- .../marc21_leader_authorities.tmpl | 188 +++--------------- 2 files changed, 30 insertions(+), 170 deletions(-) diff --git a/cataloguing/value_builder/marc21_leader_authorities.pl b/cataloguing/value_builder/marc21_leader_authorities.pl index 306b6a05ca..a631f0d7b2 100755 --- a/cataloguing/value_builder/marc21_leader_authorities.pl +++ b/cataloguing/value_builder/marc21_leader_authorities.pl @@ -46,7 +46,7 @@ my $res=" function Focus$function_name(subfield_managed) { if(!document.getElementById(\"$field_number\").value){ - document.getElementById(\"$field_number\").value = ' nam a22 7a 4500'; + document.getElementById(\"$field_number\").value = ' nz a22 n 4500'; } return 1; } @@ -57,7 +57,7 @@ function Blur$function_name(subfield_managed) { 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,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes'); + newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader_authorities.pl&index=$field_number&result=\"+defaultvalue,\"unimarc field 100\",'width=1000,height=600,toolbar=false,scrollbars=yes'); } //]]> @@ -75,22 +75,20 @@ my ($input) = @_; my $dbh = C4::Context->dbh; my ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tmpl", + = get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader_authorities.tmpl", query => $input, type => "intranet", authnotrequired => 0, flagsrequired => {editcatalogue => 1}, debug => 1, }); - $result = " nam a22 7a 4500" unless $result; + $result = " nz a22 n 4500" unless $result; my $f5 = substr($result,5,1); my $f6 = substr($result,6,1); my $f7 = substr($result,7,1); my $f8 = substr($result,8,1); my $f9 = substr($result,9,1); my $f17 = substr($result,17,1); - my $f18 = substr($result,18,1); - my $f19 = substr($result,19,1); my $f2023 = substr($result,20,4); $template->param(index => $index, "f5$f5" => 1, @@ -99,8 +97,6 @@ my ($template, $loggedinuser, $cookie) "f8$f8" => 1, "f9$f9" => 1, "f17$f17" => 1, - "f18$f18" => 1, - "f19$f19" => 1, "f2023" => $f2023, ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tmpl index 8fdedd8214..26b1e5a018 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tmpl @@ -35,10 +35,20 @@ - - + + - + + + + + + + + + + + @@ -46,73 +56,8 @@ 6- Type of record - + + z- Authority data @@ -141,108 +86,28 @@ 10-16 indicator/subfields/size (auto-filled) - 17- Encoding + 17- Encoding level - 18 - Descriptive cataloging form - - - - - - - 19 - Linked record requirement - - - + 18-19 Undefined + + 20-24 entry map & lengths (auto-filled) @@ -264,8 +129,7 @@ function report() { document.f_pop.f9.value+ '22 '+ document.f_pop.f17.value+ - document.f_pop.f18.value+ - document.f_pop.f19.value+ + ' '+ '4500'; self.close(); return false; -- 2.39.5