Skip to content

Commit

Permalink
Adjust algorithm for indexing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Aug 2, 2017
1 parent 4fa168d commit e4966bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iiif_manifest/manifest_builder/structure_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def build_range

def sub_ranges
@sub_ranges ||= record.ranges.each_with_index.map do |sub_range, child_index|
RangeBuilder.new(sub_range, parent, child_index + (index + 1))
RangeBuilder.new(sub_range, parent, child_index + (index + record.ranges.length))
end
end

Expand Down

0 comments on commit e4966bc

Please sign in to comment.