weixin_39895486
2020-12-09 07:54 阅读 0

[OMP] Remote galley links are not displayed unless there is a downloadable galley

With OMP 3.1.0-0, we published a book that’s only available online. When only the one remote galley was available, the catalog page displayed no content access links at all. When we added a dummy download file, both the download and the remote galley were presented on the catalog page.

该提问来源于开源项目:pkp/pkp-lib

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • weixin_39895486 weixin_39895486 2020-12-09 07:54

    This line in the template says make the item files section if there are files, but then make a link for each format. No files means no links, even if there are formats. What’s the right logic to replace that? Hmm…

    点赞 评论 复制链接分享
  • weixin_39831001 weixin_39831001 2020-12-09 07:54

    I guess check if a remote format exists and add it to the conditional {if $nonChapterFiles|}. But I guess you'll also need to check if the remote format is attached to a chapter, if you can attach remotes formats to chapters... a bit hazy on all of that and it gets pretty complicated.

    点赞 评论 复制链接分享
  • weixin_39895486 weixin_39895486 2020-12-09 07:54

    , I don’t think remote formats, or even formats per se, are attached to chapters, are they? Non-remote formats can have files, and some or all of those files might be associated with specific chapters, but a remote format is always whole-book and should always be presented, I think.

    点赞 评论 复制链接分享
  • weixin_39831001 weixin_39831001 2020-12-09 07:54

    That sounds right . I think there's some talk of giving remote formats a dummy file in the system, for usage stats and other areas where remote formats introduce inconsistencies. So if that goes forward an additional check will be needed.

    Your code looks good. Is there a PR somewhere? We may be able to get this into 3.1.1.

    点赞 评论 复制链接分享
  • weixin_39831001 weixin_39831001 2020-12-09 07:54

    Thanks !

    点赞 评论 复制链接分享

相关推荐