Merge pull request #979 from Gluejar/maintenance2022

Maintenance2022
pull/94/head
Eric Hellman 2022-01-14 14:28:41 -05:00 committed by GitHub
commit 24ddd2ba68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -961,6 +961,8 @@ class BasePandataLoader(object):
#be careful about overwriting the work description
if metadata.description and len(metadata.description) > len(work.description):
if isinstance(metadata.description, list):
metadata.description = '\n'.join(metadata.description)
# don't over-write reasonably long descriptions
if len(work.description) < 500:
work.description = metadata.description.replace('\r\n', '\n')

View File

@ -219,7 +219,7 @@ function put_un_in_cookie2(){
<div class="jsmodule">
<h3 class="module-title">News</h3>
<div class="jsmod-content">
<a href="https://blog.unglue.it/2021/07/02/the-ebook-turns-50-fef-monographs-fund/">The Ebook Turns 50; FEF Monographs Fund.</a>
<a href="https://blog.unglue.it/2022/01/05/100000-open-access-ebooks/">The 100,000 Open Access Ebooks.</a>
</div>
</div>
<div class="jsmodule">