PTFS-Europe / rebus-list-2

rebus:list 2+ issue tracker repository
0 stars 0 forks source link

Inaccuracy in Book Section template #264

Closed fionaborthwick1 closed 7 years ago

fionaborthwick1 commented 7 years ago

From University of Sunderland:

In the template adding the line as below displays the message as ‘Read 19 pages starting at page 10’ . Ideally we would like the programme to calculate the number of pages as it seems to do on RL1 and read ‘Pages 10-29’. Is this a change that can be made?

<h5><csl-author></csl-author></h5>
<h6><span hide-if-empty><csl-issued></csl-issued></span> <span hide-if-empty><csl-edition></csl-edition></span></h6>
<h4><span hide-if-empty>Chapter: <csl-chapter-number></csl-chapter-number>.</span> Read <csl-number-of-pages></csl-number-of-pages> pages starting at page <csl-page-first></csl-page-first></h4>
<p><csl-type></csl-type></p>
<rebus-collapse expand-text='+Citation' collapse-text="-Citation" element-class="panel panel-default" heading-class="expand-collapse panel-heading" body-class="panel-body">
    <p hide-if-empty><rebus-citeproc></rebus-citeproc></p>
</rebus-collapse>

image

fionaborthwick1 commented 7 years ago

Discussed at meeting yesterday - this is really quite an important issue for Sunderland.

mrenvoize commented 7 years ago

Another bit of polish that's been on the list for months but we've not had the time to get to.

AndrewIsh commented 7 years ago

We have now added a new material template element <csl-page-last> which will display the last page of a page range if the material has both "start page" and "number of pages" populated.

The desired display could be achieved by using the following template:

<div hide-if-empty>
    Pages <csl-page-first></csl-page-first>-<csl-page-last></csl-page-last>
</div>

It will be live on customer instances on 06/06/17

AndrewIsh commented 7 years ago

Closing