Skip to content

Commit f9788d6

Browse files
gcolsonbarmintor
authored andcommitted
handle incomplete lists for resumption tokens
comply with OAI-PMH specifications http://www.openarchives.org/OAI/openarchivesprotocol.html#FlowControl
1 parent ca48064 commit f9788d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/oai/provider/resumption_token.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def last=(value)
122122
end
123123

124124
def encode_conditions
125+
return "" if last_str.blank?
126+
125127
encoded_token = @prefix.to_s.dup
126128
encoded_token << ".s(#{set})" if set
127129
encoded_token << ".f(#{self.from.utc.xmlschema})" if self.from

0 commit comments

Comments
 (0)