Overview

This is a note about adding pagination support to the DTS (Distributed Text Services) viewer.

https://dts-viewer.vercel.app/ja/

Background

When providing a large number of resources through DTS, it appears that the view property is used to present pagination information, as shown below.

https://distributed-text-services.github.io/specifications/versions/unstable/#collection-endpoint

{}"""""""""}"]"}@d@@ctttd,m,vctitoooiue"iosdyltttbm.enV"plaall""]b.w""""""teeelleipte."@@fpnler:"cPC"nuir":itireaxstah:Cbt"dyrexsti":irioll{:{"psvtt"oloel"rie":eti"":ne"nndLes"l[""o::"tC"tre"h:a"::u":to:set:en/s""hrl"ntr[ga"""//t"el":"r{""pP/:aat1se/:e::iaappp-_ca1s/gp"iisadtp,1["dii//:leii0d"ftnadd/p_o/0eÉrsadptt/hpnd0c"/ttissdao"t0Po,cis//i"i,s,oloodccs,l/ie"lnctootuclvl"osllrsouNae,l/lli"lsalclceeb,l"tuteoccue,ieicltttco"otliietnnieoodia:/ocnn-ol?nt//tne"i/i??e/Ld?oiix{de=inddt?etld/==-iste=?llsdrtlieee,Cetedttrphsrt=ttvaaetlrrigrdsreeecete_etsse,edst__snsPe_rdd.a"o_deeegv,ipes__i}lo__ppt""uipdooh,hsloeiiut"ui_llbt}slpuu.p&uossispsi&&o:a&lpp//gpuaas/easggpv=g&eeei1ep==ca9=a25if"1g00f.,"e"0io,=,"cr1ag8t/"iv,oinasf//c1o6n7t8e7x4t5/815-"a]l,pha1.json",

I updated the DTS Viewer to support the view property described above.

Display Example

When a collection has the view property, pagination buttons are now displayed as shown below.

Summary

I hope this serves as a helpful reference for distributing digital text collections using the DTS (Distributed Text Services) API.