Review request for - ${request.preprint.title}
@@ -129,7 +131,9 @@ export const createPage = ({ })}" > A review was requested for - ${request.preprint.title} @@ -222,7 +226,9 @@ export const createPage = ({PREreview of - ${prereview.preprint.title}
@@ -230,7 +236,9 @@ export const createPage = ({ ${formatList('en')(prereview.reviewers)} ${prereview.club ? html`of the ${getClubName(prereview.club)}` : ''} reviewed - ${prereview.preprint.title} diff --git a/src/legacy-routes/index.ts b/src/legacy-routes/index.ts index 47a2ff9af..f4964003b 100644 --- a/src/legacy-routes/index.ts +++ b/src/legacy-routes/index.ts @@ -6,7 +6,7 @@ import * as O from 'fp-ts/lib/Option.js' import * as RTE from 'fp-ts/lib/ReaderTaskEither.js' import type * as TE from 'fp-ts/lib/TaskEither.js' import { constant, flow, pipe, tuple } from 'fp-ts/lib/function.js' -import { NotFound } from 'http-errors' +import httpErrors from 'http-errors' import type { ResponseEnded, StatusOpen } from 'hyper-ts' import { route } from 'hyper-ts-routing' import * as RM from 'hyper-ts/lib/ReaderMiddleware.js' @@ -384,7 +384,11 @@ const legacyRouter: P.Parser
+
${preprint.title.text}
@@ -123,7 +127,7 @@ export const createPage = ({
? html`
Abstract
-
+
${fixHeadingLevels(3, preprint.abstract.text)}
`
@@ -185,7 +189,7 @@ function showReview(review: Prereview) {
You can request a PREreview of - ${preprint.title}. A PREreview - is a review of a preprint and can vary from a few sentences to a lengthy report, similar to a journal-organized - peer-review report. + ${preprint.title}. A + PREreview is a review of a preprint and can vary from a few sentences to a lengthy report, similar to a + journal-organized peer-review report.
${user diff --git a/src/review-page/review-page.ts b/src/review-page/review-page.ts index 33024bb0f..898be5226 100644 --- a/src/review-page/review-page.ts +++ b/src/review-page/review-page.ts @@ -3,7 +3,7 @@ import { format } from 'fp-ts-routing' import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js' import { flow, pipe } from 'fp-ts/lib/function.js' import type { Orcid } from 'orcid-id-ts' -import { getLangDir } from 'rtl-detect' +import rtlDetect from 'rtl-detect' import { match } from 'ts-pattern' import { getClubName } from '../club-details.js' import { type Html, fixHeadingLevels, html, plainText, rawHtml } from '../html.js' @@ -34,7 +34,7 @@ export const createPage = ({ id, review }: { id: number; review: Prereview }) =>${review.structured ? 'Structured ' : ''}PREreview of - ${review.preprint.title}
@@ -86,7 +86,7 @@ export const createPage = ({ id, review }: { id: number; review: Prereview }) =>Review request for - ${request.preprint.title}
@@ -44,7 +44,7 @@ export const createPage = ({ currentPage, totalPages, language, field, reviewReq })}" > A review was requested for - ${request.preprint.title} diff --git a/src/reviews-page/reviews-page.ts b/src/reviews-page/reviews-page.ts index db9989ad2..ea61d5a21 100644 --- a/src/reviews-page/reviews-page.ts +++ b/src/reviews-page/reviews-page.ts @@ -7,7 +7,7 @@ import { snd } from 'fp-ts/lib/ReadonlyTuple.js' import { flow, pipe } from 'fp-ts/lib/function.js' import { isString } from 'fp-ts/lib/string.js' import iso6391, { type LanguageCode } from 'iso-639-1' -import { getLangDir } from 'rtl-detect' +import rtlDetect from 'rtl-detect' import { match } from 'ts-pattern' import { getClubName } from '../club-details.js' import { type Html, html, plainText, rawHtml } from '../html.js' @@ -41,7 +41,9 @@ export const createPage = ( ${formatList('en')(prereview.reviewers)} ${prereview.club ? html`of the ${getClubName(prereview.club)}` : ''} reviewed - ${prereview.preprint.title} diff --git a/src/router.ts b/src/router.ts index 4042aee5e..b2736406e 100644 --- a/src/router.ts +++ b/src/router.ts @@ -11,7 +11,7 @@ import * as RA from 'fp-ts/lib/ReadonlyArray.js' import * as T from 'fp-ts/lib/Task.js' import { constVoid, constant, flow, pipe } from 'fp-ts/lib/function.js' import { isString } from 'fp-ts/lib/string.js' -import { NotFound } from 'http-errors' +import httpErrors from 'http-errors' import type { ResponseEnded, StatusOpen } from 'hyper-ts' import { route } from 'hyper-ts-routing' import type { SessionEnv } from 'hyper-ts-session' @@ -1969,4 +1969,4 @@ const router: P.ParserAs you’ve already started a PREreview of - ${preprint.title}, we’ll take - you to the next step so you can carry on. + ${preprint.title}, + we’ll take you to the next step so you can carry on.
+
${preprint.title.text}
@@ -96,7 +96,7 @@ export const startPage = (preprint: Preprint, user?: User) =>
${
preprint.abstract
? html`
-
+
${fixHeadingLevels(2, preprint.abstract.text)}
`
@@ -106,7 +106,7 @@ export const startPage = (preprint: Preprint, user?: User) =>
You can write a PREreview of
- ${preprint.title.text}. A PREreview is a review of a preprint and can vary from a few sentences to a lengthy report, similar to a
journal-organized peer-review report.
diff --git a/src/zenodo.ts b/src/zenodo.ts
index f096899e2..2d2dfbe5d 100644
--- a/src/zenodo.ts
+++ b/src/zenodo.ts
@@ -17,7 +17,7 @@ import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js'
import type * as T from 'fp-ts/lib/Task.js'
import { constVoid, flow, identity, pipe } from 'fp-ts/lib/function.js'
import { toUpperCase } from 'fp-ts/lib/string.js'
-import { type HttpError, NotFound } from 'http-errors'
+import httpErrors, { type HttpError } from 'http-errors'
import { Status } from 'hyper-ts'
import * as D from 'io-ts/lib/Decoder.js'
import type { LanguageCode } from 'iso-639-1'
@@ -562,7 +562,7 @@ function recordToPrereview(
return pipe(
RTE.Do,
RTE.apS('preprintId', getReviewedPreprintId(record)),
- RTE.apSW('reviewTextUrl', RTE.fromOption(() => new NotFound())(getReviewUrl(record))),
+ RTE.apSW('reviewTextUrl', RTE.fromOption(() => new httpErrors.NotFound())(getReviewUrl(record))),
RTE.apSW(
'license',
RTE.fromEither(
@@ -609,7 +609,7 @@ function recordToPreprintPrereview(
record: Record,
): RTE.ReaderTaskEither | 'text-unavailable', PreprintPrereview> {
return pipe(
- RTE.fromOption(() => new NotFound())(getReviewUrl(record)),
+ RTE.fromOption(() => new httpErrors.NotFound())(getReviewUrl(record)),
RTE.chainW(reviewTextUrl =>
sequenceS(RTE.ApplyPar)({
authors: RTE.right(getAuthors(record)),
You can write a PREreview of
- ${preprint.title.text}. A PREreview is a review of a preprint and can vary from a few sentences to a lengthy report, similar to a
journal-organized peer-review report.
diff --git a/src/zenodo.ts b/src/zenodo.ts
index f096899e2..2d2dfbe5d 100644
--- a/src/zenodo.ts
+++ b/src/zenodo.ts
@@ -17,7 +17,7 @@ import * as RNEA from 'fp-ts/lib/ReadonlyNonEmptyArray.js'
import type * as T from 'fp-ts/lib/Task.js'
import { constVoid, flow, identity, pipe } from 'fp-ts/lib/function.js'
import { toUpperCase } from 'fp-ts/lib/string.js'
-import { type HttpError, NotFound } from 'http-errors'
+import httpErrors, { type HttpError } from 'http-errors'
import { Status } from 'hyper-ts'
import * as D from 'io-ts/lib/Decoder.js'
import type { LanguageCode } from 'iso-639-1'
@@ -562,7 +562,7 @@ function recordToPrereview(
return pipe(
RTE.Do,
RTE.apS('preprintId', getReviewedPreprintId(record)),
- RTE.apSW('reviewTextUrl', RTE.fromOption(() => new NotFound())(getReviewUrl(record))),
+ RTE.apSW('reviewTextUrl', RTE.fromOption(() => new httpErrors.NotFound())(getReviewUrl(record))),
RTE.apSW(
'license',
RTE.fromEither(
@@ -609,7 +609,7 @@ function recordToPreprintPrereview(
record: Record,
): RTE.ReaderTaskEither