Skip to content

Commit b9c30b3

Browse files
committed
doc fix: sample_id should not include prefix
1 parent 6c45bf5 commit b9c30b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/oai/provider.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
# repository_url 'http://localhost/provider'
5959
# record_prefix 'oai:localhost'
6060
# admin_email 'root@localhost'
61-
# sample_id 'oai:pubmedcentral.gov:13900'
61+
# # record_prefix will be automatically prepended to sample_id, so in this
62+
# # case it becomes: oai:localhost:13900
63+
# sample_id '13900'
6264
# source_model MyModel.new
6365
# end
6466
# ```
@@ -107,7 +109,7 @@
107109
# record_prefix 'oai:blog'
108110
# admin_email 'root@localhost'
109111
# source_model OAI::Provider::ActiveRecordWrapper.new(Post)
110-
# sample_id 'oai:pubmedcentral.gov:13900'
112+
# sample_id '13900' # record prefix used, so becomes oai:blog:13900
111113
# end
112114
# ```
113115
#

0 commit comments

Comments
 (0)