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

Add cmdlet Get-IshPublicationOutputContent to return directly linked content objects of this publication #126

Open
ddemeyer opened this issue Apr 22, 2021 · 0 comments

Comments

@ddemeyer
Copy link
Contributor

Quick drop from my personal notes to share an idea on community.sdl.com... Similar to cmdlet Get-IshFolderContent where you want to know which IshObjects (either IshPublicationOutput or IshDocumentObj) are in an IshFolder. People want to know which IshDocumentObj are directly linked to an IshPublicationOutput.

  • Note that I state directly, so only using the baseline, not using any complete mode like LatestAvailable or LatestReleased. So imagine that some sub-map doesn't have a version selected in the baseline of the incoming IshPublicationOutput, then any topic used in that sub-map will not be part of the result set of this cmdlet, although the topic might have a version selected in the used baseline. You could say that the topic was unreachable for the given saved baseline.
  • Baseline25.ExpandBaseline API function parameters coming from like pasLanguages, pasIllustrationLanguages, pasResourceLanguages and pasResolutions could come from the IshPublicationOutput fields. No cmdlet parameters option to overwrite yet, although this cmdlet would allow future -AutoComplete parameters used by Baseline25 sibling functions.

Starting point is cmdlet Get-IshPublicationOutputData which downloads the generated CHM/PDF/ZIP file, but this time we return the used content objects...

  • Parameter Set IshObjectsGroup but drop FolderPath
  • Output to the pipeline are IshDocumentObj that are directly reachable through baseline selected versions.
    • Root map linked xml content objects in the multiple requested languages
    • Root map linked image content object in the multiple requested languages and resolutions
    • Resource linked xml content objects in the multiple requested languages
    • Resource linked image content object in the multiple requested languages and resolutions
  • (Optional parameter -Language[] taking value/element to overwrite the default incoming IshPublicationOutput metadata field values. Although post filtering on the pipeline through For-Each { ... } is the alternative for now.)
  • (Optional parameter -Resolution[] taking value/element to overwrite the default incoming IshPublicationOutput metadata field values. Although post filtering on the pipeline through For-Each { ... } is the alternative for now.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant