Skip to content

Commit

Permalink
Merge pull request #520 from mlibrary/bug-onlinejournals-full-record-…
Browse files Browse the repository at this point in the history
…not-displaying

Bug: Full ROnline Journals records do not display from lack of `indexing_date`.
  • Loading branch information
erinesullivan authored Jan 28, 2025
2 parents 5ca2e0c + 93caaad commit 7e564a3
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/modules/records/components/RecordFull/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ const FullRecord = () => {

const inDatastore = ['catalog', 'onlinejournals'].includes(datastoreSlug);

const { name: indexingName, value: indexingValue } = findWhere(record.fields, { uid: 'indexing_date' }) || {};

return (
<div className='container container-narrow full-record-page-container y-spacing'>
<Breadcrumb
Expand Down Expand Up @@ -200,17 +202,11 @@ const FullRecord = () => {
}}
/>
</div>
{inDatastore && (() => {
const { name: indexingName, value: indexingValue } = findWhere(record.fields, { uid: 'indexing_date' });
if (!indexingValue) {
return null;
}
return (
<p className='margin-top__none text-grey full-record__date-last-indexed'>
<span className='strong'>{indexingName || 'Date Last Indexed'}:</span> {indexingValue}
</p>
);
})()}
{indexingValue && (
<p className='margin-top__none text-grey full-record__date-last-indexed'>
<span className='strong'>{indexingName || 'Date Last Indexed'}:</span> {indexingValue}
</p>
)}
{datastoreUid === 'mirlyn' && <ViewMARC {...{ fields: record.fields }} />}
</div>
);
Expand Down

0 comments on commit 7e564a3

Please sign in to comment.