- Timestamp:
- 1999-04-21T16:01:55+12:00 (25 years ago)
- Location:
- trunk/gsdl/perllib/classify
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/AZClassify.pm
r231 r240 71 71 72 72 # write out top level entry 73 $self->output_entry ($handle, $self->{'OID'}, "$self->{'metaname'} Classification", \@contents);73 $self->output_entry ($handle, $self->{'OID'}, $self->{'metaname'}, \@contents, "List"); 74 74 75 75 # write out the entries for each sub-classification … … 79 79 80 80 # write out top level entry 81 $self->output_entry ($handle, $self->{'OID'}, "$self->{'metaname'} Classification", \@classlist);81 $self->output_entry ($handle, $self->{'OID'}, $self->{'metaname'}, \@classlist, "List"); 82 82 } 83 83 } … … 184 184 sub output_entry { 185 185 my $self = shift (@_); 186 my ($handle, $OID, $title, $contentsref ) = @_;186 my ($handle, $OID, $title, $contentsref, $classifytype) = @_; 187 187 188 188 print $handle "[$OID]\n"; 189 189 print $handle "<doctype>classify\n"; 190 print $handle "<hastext>0\n"; 191 print $handle "<title>$title\n"; 190 print $handle "<hastxt>0\n"; 191 print $handle "<Title>$title\n"; 192 print $handle "<classifytype>$classifytype\n" if defined $classifytype; 192 193 if (scalar @$contentsref) { 193 194 print $handle "<contains>", join (";", @$contentsref), "\n"; -
trunk/gsdl/perllib/classify/Hierarchy.pm
r231 r240 109 109 # top level of classification 110 110 map { $_ = "\".$_"; } sort numerically @$topcontents; 111 $self->output_entry ($handle, $self->{'OID'}, "$self->{'metaname'} Classification",112 $topcontents );111 $self->output_entry ($handle, $self->{'OID'}, $self->{'metaname'}, 112 $topcontents, "Hierarchy"); 113 113 } 114 114 115 115 sub output_entry { 116 116 my $self = shift (@_); 117 my ($handle, $OID, $title, $contentsref ) = @_;117 my ($handle, $OID, $title, $contentsref, $classifytype) = @_; 118 118 119 119 print $handle "[$OID]\n"; 120 120 print $handle "<doctype>classify\n"; 121 print $handle "<hastext>0\n"; 122 print $handle "<title>$title\n"; 121 print $handle "<hastxt>0\n"; 122 print $handle "<Title>$title\n"; 123 print $handle "<classifytype>$classifytype\n" if defined $classifytype; 123 124 if (scalar @$contentsref) { 124 125 print $handle "<contains>", join (";", @$contentsref), "\n"; -
trunk/gsdl/perllib/classify/list.pm
r214 r240 45 45 print $handle "<doctype>classify\n"; 46 46 print $handle "<hastxt>0\n"; 47 print $handle "<title>Document Listing\n"; 47 print $handle "<classifytype>List\n"; 48 print $handle "<Title>Document Listing\n"; 48 49 if (scalar (@{$self->{'list'}}) > 0) { 49 50 print $handle "<contains>", join (";", @{$self->{'list'}}), "\n";
Note:
See TracChangeset
for help on using the changeset viewer.