Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAI-PMH: ListRecordsのresumptionToken対応 #766

Closed
1 task
masao opened this issue Sep 25, 2015 · 9 comments
Closed
1 task

OAI-PMH: ListRecordsのresumptionToken対応 #766

masao opened this issue Sep 25, 2015 · 9 comments

Comments

@masao
Copy link
Member

masao commented Sep 25, 2015

resumptionTokenに対応して保存すべきクエリ等を確認すること。
#710 からの派生。

@masao masao added this to the 1.1.x milestone Sep 25, 2015
@nabeta
Copy link
Member

nabeta commented Nov 22, 2015

Solr 4.7からcursorMarkパラメータを使ったページネーションが使えるので、このパラメータをresemptionTokenとして使用する。
https://github.com/sunspot/sunspot#cursor-based-pagination

nabeta added a commit to next-l/enju_oai that referenced this issue Dec 29, 2015
@nabeta
Copy link
Member

nabeta commented Dec 29, 2015

Solr 4.7からcursorMarkパラメータを使ったページネーションが使えるので、このパラメータをresemptionTokenとして使用する。

上記の実装を行いました。開発用サーバに反映済みです。
http://dev.next-l.jp/oai/provider.xml?verb=ListIdentifiers&metadataPrefix=oai_dc

なお、sunspot_solrを使用する場合、2.2.2(Solr5.0.0同梱)以降が必要です。

@yegusa
Copy link

yegusa commented Mar 26, 2016

現在のステータス:

  • 私は確かめ方がわかりません。

@nabeta nabeta modified the milestones: 1.2.0, 1.2.0.beta.4 Aug 20, 2016
@nabeta
Copy link
Member

nabeta commented Aug 20, 2016

テストを書く。

@masao masao removed the checking label Aug 21, 2016
@masao
Copy link
Member Author

masao commented Aug 21, 2016

確認してみましたが、resumptionTokenの呼び出しで badArgument のエラーを出してしまいますね。
https://www.openarchives.org/OAI/2.0/guidelines-harvester.htm#resumptionToken にある通り、必要なパラメータを保存しなくてはならないので、まだ resumptionToken パラメータの実装ができていない状態です。

@nabeta nabeta modified the milestones: 1.2.0.beta.4, 1.2.x Oct 16, 2016
@yegusa yegusa modified the milestones: 1.2.x, 1.2.0 Oct 16, 2016
@nabeta nabeta modified the milestones: 1.2.0, 1.2.x Nov 11, 2016
@nabeta nabeta removed this from the 1.2.0 milestone Nov 11, 2016
@nabeta
Copy link
Member

nabeta commented May 19, 2019

resumptionTokenをEnju側で覚えておく必要があるのですが、この実装が面倒です。
resumptionToken対応をやめるか、それともOAI-PMHそのもの対応をやめてResourceSyncに置き換えるかしたほうがよいかもしれません。

@nabeta
Copy link
Member

nabeta commented Aug 25, 2022

OAI-PMHの実装は、oai gemを使って書き直すことにします。
https://github.com/code4lib/ruby-oai

@nabeta
Copy link
Member

nabeta commented Aug 27, 2022

OAI-PMHの実装は、oai gemを使って書き直すことにします。

mainブランチにマージしました。動作例は以下です。
https://enju.next-l.jp/oai?verb=ListRecords&resumptionToken=dcndl.f(2021-11-23T08:01:21Z).u(2022-08-22T06:06:13Z):102

@nabeta
Copy link
Member

nabeta commented Aug 18, 2023

完了しているため、クローズします。

@nabeta nabeta closed this as completed Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants