Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BXC-4768 ignore pdf children #114

Merged
merged 3 commits into from
Nov 8, 2024
Merged

BXC-4768 ignore pdf children #114

merged 3 commits into from
Nov 8, 2024

Conversation

krwong
Copy link
Contributor

@krwong krwong commented Nov 6, 2024

https://unclibrary.atlassian.net/browse/BXC-4768

  • detect when object is Document-PDF and skip over its children
  • set ENTRY_TYPE_FIELD / cdm2bxc_entry_type to doc-pdf

ResultSet rs = stmt.executeQuery("select " + joinedFields
+ " from " + CdmIndexService.TB_NAME + " order by " + CdmFieldInfo.CDM_ID + " asc");
rs.next();
assertEquals(17926, rs.getInt(CdmFieldInfo.CDM_ID));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it isn't actually ignoring the children of the document pdf, since "page 1" is one of them? My impression is we would not want any of the pages that appear in the cpd file to be in the index, or that we would have to ignore those pages somehow in other steps. So it might be that we need to do something like we do for compounds here:

for (var pageEl : childRoot.getChildren("page")) {

but instead of assigning each child a parent, we delete the child

@bbpennel bbpennel merged commit 11bb596 into main Nov 8, 2024
2 checks passed
@bbpennel bbpennel deleted the BXC-4768-ignore-pdf-children branch November 8, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants