--- trunk/lib/WebPAC/Normalize.pm 2007/09/06 19:12:15 889 +++ trunk/lib/WebPAC/Normalize.pm 2007/10/30 17:40:13 912 @@ -7,7 +7,8 @@ _debug _pack_subfields_hash - tag search display + search_display search display + marc marc_indicators marc_repeatable_subfield marc_compose marc_leader marc_fixed marc_duplicate marc_remove marc_count @@ -42,11 +43,11 @@ =head1 VERSION -Version 0.29 +Version 0.30 =cut -our $VERSION = '0.29'; +our $VERSION = '0.30'; =head1 SYNOPSIS @@ -59,7 +60,7 @@ C. Normalisation can generate multiple output normalized data. For now, supported output -types (on the left side of definition) are: C, C, C and +types (on the left side of definition) are: C, C, C and C. =head1 FUNCTIONS @@ -442,27 +443,26 @@ Those functions generally have to first in your normalization file. -=head2 tag +=head2 search_display -Define new tag for I and I. +Define output for L and L at the same time - tag('Title', rec('200','a') ); + search_display('Title', rec('200','a') ); =cut -sub tag { - my $name = shift or die "tag needs name as first argument"; +sub search_display { + my $name = shift or die "search_display needs name as first argument"; my @o = grep { defined($_) && $_ ne '' } @_; return unless (@o); - $out->{$name}->{tag} = $name; $out->{$name}->{search} = \@o; $out->{$name}->{display} = \@o; } =head2 display -Define tag just for I +Define output just for I @v = display('Title', rec('200','a') ); @@ -472,7 +472,6 @@ my $name = shift or die "display needs name as first argument"; my @o = grep { defined($_) && $_ ne '' } @_; return unless (@o); - $out->{$name}->{tag} = $name; $out->{$name}->{display} = \@o; } @@ -488,7 +487,6 @@ my $name = shift or die "search needs name as first argument"; my @o = grep { defined($_) && $_ ne '' } @_; return unless (@o); - $out->{$name}->{tag} = $name; $out->{$name}->{search} = \@o; } @@ -1232,7 +1230,6 @@ $database_code = config(); # use _ from hash $database_name = config('name'); $database_input_name = config('input name'); - $tag = config('input normalize tag'); Up to three levels are supported.