Skip to content

Commit ec15771

Browse files
pkp/pkp-lib#12155 only show processing status for structured citations (#876)
1 parent 4656d60 commit ec15771

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/managers/CitationManager/citationManagerStore.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ export const useCitationManagerStore = defineComponentStore(
6464
/**
6565
* status processed citations
6666
*/
67-
const totalCitations = computed(() => citations.value?.length ?? 0);
67+
const structuredCitations = computed(() =>
68+
(citations.value || []).filter((citation) => citation?.isStructured),
69+
);
70+
const totalCitations = computed(() => structuredCitations.value.length);
6871
const processedCitations = computed(
6972
() =>
70-
(citations.value || []).filter(
71-
(c) =>
72-
c?.processingStatus ===
73+
structuredCitations.value.filter(
74+
(citation) =>
75+
citation?.processingStatus ===
7376
pkp.const.citationProcessingStatus.PROCESSED,
7477
).length,
7578
);

0 commit comments

Comments
 (0)