Changeset 24404 for main/trunk/greenstone2/perllib/doc.pm
- Timestamp:
- 2011-08-12T19:35:50+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/doc.pm
r23939 r24404 807 807 } 808 808 809 # Remove thenamespace if we are being told to ignore them809 # Remove any namespace if we are being told to ignore them 810 810 if($ignore_namespace) { 811 $field =~ s/^ \w*\.//;811 $field =~ s/^.*\.//; #$field =~ s/^\w*\.//; 812 812 } 813 813 … … 816 816 my $data_name = $data->[0]; 817 817 818 # Remove theany namespace if we are being told to ignore them818 # Remove any namespace if we are being told to ignore them 819 819 if($ignore_namespace) { 820 $data_name =~ s/^\w*\.//; 821 } 822 $data_name =~ s/^ex\.//; # we always remove ex. - it maybe there in doc_obj, but we will never ask for it. 820 $data_name =~ s/^.*\.//; #$data_name =~ s/^\w*\.//; 821 } 822 # we always remove ex. (but not any subsequent namespace) - ex. maybe there in doc_obj, but we will never ask for it. 823 $data_name =~ s/^ex\.([^.]+)$/$1/; #$data_name =~ s/^ex\.//; 824 823 825 return $data->[1] if (scalar(@$data) >= 2 && $data_name eq $field); 824 826 } … … 842 844 } 843 845 844 # Remove theany namespace if we are being told to ignore them846 # Remove any namespace if we are being told to ignore them 845 847 if($ignore_namespace) { 846 $field =~ s/^ \w*\.//;848 $field =~ s/^.*\.//; 847 849 } 848 850 … … 851 853 852 854 my $data_name = $data->[0]; 853 # Remove the any namespace if we are being told to ignore them 855 856 # Remove any namespace if we are being told to ignore them 854 857 if($ignore_namespace) { 855 $data_name =~ s/^\w*\.//; 856 } 857 $data_name =~ s/^ex\.//; # we always remove ex. - it maybe there in doc_obj, but we will never ask for it. 858 $data_name =~ s/^.*\.//; 859 } 860 # we always remove ex. (but not any subsequent namespace) - ex. maybe there in doc_obj, but we will never ask for it. 861 $data_name =~ s/^ex\.([^.]+)$/$1/; 862 858 863 push (@metadata, $data->[1]) if ($data_name eq $field); 859 864 }
Note:
See TracChangeset
for help on using the changeset viewer.