* removing warnings
* if a subfield is alone, don't show it's label, the field name is enough
This commit is contained in:
parent
a0add2d02b
commit
8a49736d95
|
|
@ -72,7 +72,6 @@ $bibid = &MARCfind_MARCbibid_from_oldbiblionumber($dbh,$biblionumber) unless $bi
|
|||
$biblionumber = &MARCfind_oldbiblionumber_from_MARCbibid($dbh,$bibid) unless $biblionumber;
|
||||
$itemtype = &MARCfind_frameworkcode($dbh,$bibid) if not ($itemtype);
|
||||
$itemtype = '' if ($itemtype eq 'Default');
|
||||
warn "itemtype :".$itemtype;
|
||||
|
||||
my $tagslib = &MARCgettagslib($dbh,1,$itemtype);
|
||||
|
||||
|
|
@ -100,7 +99,6 @@ while (my ($description, $fwk) =$queryfwk->fetchrow) {
|
|||
$select_fwk{$fwk} = $description;
|
||||
}
|
||||
$curfwk=$itemtype;
|
||||
warn "current fwk :".$curfwk ;
|
||||
my $framework=CGI::scrolling_list( -name => 'Frameworks',
|
||||
-id => 'Frameworks',
|
||||
-default => $curfwk,
|
||||
|
|
@ -159,6 +157,10 @@ for (my $tabloop = 0; $tabloop<=10;$tabloop++) {
|
|||
push(@subfields_data, \%subfield_data);
|
||||
}
|
||||
}
|
||||
if ($#subfields_data==0) {
|
||||
$subfields_data[0]->{marc_lib}='';
|
||||
$subfields_data[0]->{marc_subfield}='';
|
||||
}
|
||||
if ($#subfields_data>=0) {
|
||||
my %tag_data;
|
||||
if ($fields[$x_i]->tag() eq $fields[$x_i-1]->tag()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue