Changeset 9519
- Timestamp:
- 2005-03-31T11:43:50+12:00 (19 years ago)
- Location:
- trunk/gsdl/perllib/classify
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/AZCompactList.pm
r9461 r9519 336 336 } 337 337 } 338 # what is this for?????? 339 my $date = $doc_obj->get_metadata_element($thissection,"Date"); 340 $self->{'reclassify'}->{$full_doc_OID} = [$doc_obj,$date]; 338 339 # This is used in reclassify below for AZCompactSectionList 340 my $sortmeta = $doc_obj->get_metadata_element($thissection, $self->{'sortname'}); 341 $self->{'reclassify'}->{$full_doc_OID} = [$doc_obj,$sortmeta]; 341 342 } 342 343 } … … 524 525 if (exists $self->{'classifiers'}->{$node_name}) 525 526 { 526 my ($doc_obj, $date) = @{$self->{'reclassify'}->{$doc_OID}};527 my ($doc_obj, $sortmeta) = @{$self->{'reclassify'}->{$doc_OID}}; 527 528 528 529 # record the metadata value offset temporarily, so eg AZList can 529 530 # get the correct metadata value (for multi-valued metadata fields) 530 531 $doc_obj->{'mdoffset'}=$mdoffset; 531 532 ## date appears to not be used in classifier call ####533 532 534 533 if ($doc_OID =~ m/^[^\.]*\.([\d\.]+)$/) … … 542 541 # classify can't handle multi-level section 543 542 $self->{'classifiers'}->{$node_name}->{'classifyobj'} 544 ->classify_section($section, $doc_obj, $ date);543 ->classify_section($section, $doc_obj, $sortmeta); 545 544 } 546 545 } -
trunk/gsdl/perllib/classify/AZCompactSectionList.pm
r9063 r9519 117 117 # buttonname is also used for the node's title 118 118 push @args, ("-buttonname", "$metavalue"); 119 push @args, ("-sort", "Date");119 push @args, ("-sort", $self->{'sortname'}); 120 120 121 121 if ($doclevel =~ m/^top(level)?/i) … … 198 198 if ($metavalue =~ m/^$resafe_node_name$/i) 199 199 { 200 my ($doc_obj,$date) = @{$self->{'reclassify'}->{$doc_OID}}; 201 202 ## date appears to not be used in classifier call #### 200 my ($doc_obj, $sortmeta) = @{$self->{'reclassify'}->{$doc_OID}}; 203 201 204 202 # SECTIONFIX? section must include multiple levels, e.g. '1.12' … … 209 207 # SECTIONFIX? classify can't handle multi-level section 210 208 #->classify($doc_obj, "Section=$1"); 211 ->classify_section($1, $doc_obj, $ date);209 ->classify_section($1, $doc_obj, $sortmeta); 212 210 } 213 211 else
Note:
See TracChangeset
for help on using the changeset viewer.