From 380af7998ab612c89814b95733e1687e356ab602 Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 15 Mar 2006 15:10:29 +0000 Subject: [PATCH] added a new feature in summary building (for an authority) If you enter [XXX*] ([250*] for example), the whole field will be displayed as it's saved. This will solve the problem with reordered subfields. --- C4/AuthoritiesMarc.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index be748e6bc5..f75a24370b 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -165,6 +165,8 @@ sub authoritysearch { my @fields = $record->fields(); foreach my $field (@fields) { my $tag = $field->tag(); + my $tagvalue = $field->as_string(); + $summary =~ s/\[(.?.?.?.?)$tag\*(.*?)]/$1$tagvalue$2\[$1$tag$2]/g; if ($tag<10) { } else { my @subf = $field->subfields; @@ -1043,6 +1045,10 @@ Paul POULAIN paul.poulain@free.fr # $Id$ # $Log$ +# Revision 1.9.2.14 2006/03/15 15:10:29 tipaul +# added a new feature in summary building (for an authority) +# If you enter [XXX*] ([250*] for example), the whole field will be displayed as it's saved. This will solve the problem with reordered subfields. +# # Revision 1.9.2.13 2006/03/15 10:46:31 tipaul # removing hardcoded link in summary of authority (on $heading) : it can be set in the template (in the # of biblios column) : # &operator==&value=&and_or=and&excluding="> -- 2.39.5