We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4656d60 commit ec15771Copy full SHA for ec15771
1 file changed
src/managers/CitationManager/citationManagerStore.js
@@ -64,12 +64,15 @@ export const useCitationManagerStore = defineComponentStore(
64
/**
65
* status processed citations
66
*/
67
- const totalCitations = computed(() => citations.value?.length ?? 0);
+ const structuredCitations = computed(() =>
68
+ (citations.value || []).filter((citation) => citation?.isStructured),
69
+ );
70
+ const totalCitations = computed(() => structuredCitations.value.length);
71
const processedCitations = computed(
72
() =>
- (citations.value || []).filter(
- (c) =>
- c?.processingStatus ===
73
+ structuredCitations.value.filter(
74
+ (citation) =>
75
+ citation?.processingStatus ===
76
pkp.const.citationProcessingStatus.PROCESSED,
77
).length,
78
);
0 commit comments