samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

add new configurations for identifying parameters related to pagination of linked data results #281

Closed elrayle closed 4 years ago

elrayle commented 4 years ago

New authority level configs

New search level configs

configs in qa_replacement_patterns subsection

These configs identify parameters that are passed to QA and play a specific role.

Using configs for pagination support

start_record and requested_records are used to identify the page number and the number of records to display on a page. For example...

start_record = 1 AND requested_records = 10 equates to page 1 records 1..10
start_record = 11 AND requested_records = 10 equates to page 2 records 11..20
start_record = 21 AND requested_records = 10 equates to page 3 records 21..30
etc.

The total number of pages can be calculated by getting the total number of search results from triple...

<service_uri> <total_count_ldpath> total_count .
number_of_pages = total_count / requested_records