<commit_before>import React, { PropTypes } from 'react'
import { injectIntl, intlShape, defineMessages } from 'react-intl'
import { Link } from 'react-router'
import MetaItem from '../../MetaItem'
import isEmpty from '../../../utils/emptyObject'

const WorkSerie = ({ workserie }) => {
  if (!isEmpty(workserie)) {
    return (
      <MetaItem label={messages.labelWorkSerie} data-automation-id="work_work_serie">
        <Link
          data-automation-id="work_series_link"
          to={`/search?query=series%3A"${workserie.mainTitle}"`}>
          {workserie.mainTitle}
        </Link>
      </MetaItem>
    )
  }
  return null<commit_msg>patron-client: display all title parts in work series<commit_after>import React, { PropTypes } from 'react'
import { injectIntl, intlShape, defineMessages } from 'react-intl'
import { Link } from 'react-router'
import MetaItem from '../../MetaItem'
import isEmpty from '../../../utils/emptyObject'
import title from '../../../utils/title'

const WorkSerie = ({ workserie }) => {
  if (!isEmpty(workserie)) {
    return (
      <MetaItem label={messages.labelWorkSerie} data-automation-id="work_work_serie">
        <Link
          data-automation-id="work_series_link"
          to={`/search?query=series%3A"${workserie.mainTitle}"`}>
          {title(workserie)}
        </Link>
      </MetaItem>
    )
  }
  return null
{'fraction_non_alphanumeric': 0.156158357771261, 'fraction_numerical': 0.001466275659824047, 'mean_word_length': 3.11144578313253, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4264850', 'n_tokens_mistral': 417, 'n_tokens_neox': 425, 'n_words': 90}