Display linked content in Tark4 archive from a preview

Build 1501 on 14/Nov/2017  This topic last edited on: 18/Mar/2016, at 12:12

You may want to display linked content in archive, e.g. starting from a preview of a found archived page, display all linked stories and/or images. Moreover, you may start from a preview of a found archived story, and then display all pages where it appears and all the images that were linked to the story. Finally, you may start from a preview of a found archived image, and then display all pages where it appears and all the stories to which the image was linked to.

Display related images/stories of an archived page, displayed in the preview

The preview shows the page and two expanders: Related Images and Related Stories:

Click to toggle graphic size

Expand Related images. You can review the image content, download it or add it to clipboard:

Expand Related stories. You can read the story content, add the story to clipboard or zoom the text:

Moreover, you can download the PDF of the archived page.

Display related stories/pages for an archived image, displayed in the preview

Click to toggle graphic size

Expand Related stories. Now you can read the story content, add the story to clipboard or zoom the text:

tark4linkedcontent2

 Expand Published on page, and you can review or download the PDF of the archived page.

 tark4linkedcontent3

Display related images/pages for an archived story, displayed in the preview

Click to toggle graphic size

Expand Related images and you can download an images by clicking on it, add it to clibboard and read the caption:

tark4linkedcontent5

 Expand Published on page, and you can review or download the PDF of the archived page.

 Changes in the configuration

The following files have been modified.

..\config\global\gn4\ted4_config.xml 

..\config\global\gn4\shell4_config.xml 

..\config\global\gn4_tark4_common\xsl_xaml.xsl

In ted4_config.xml, the InfoPanel code has been reduced to the call to a feed placeholder that calls an xsl configuration file. The changed parts looks like:

     <InfoPanel Name="Image" ObjectTypeName="image">

      <DataTemplate>

        <l:XamlFeedItemPreviewControl Height="Auto" FeedName="XamlDisplay" ObjectId="{Binding Path=[image.id]}"/>

      </DataTemplate>

         ...

In xsl_xaml.xsl, the matching of archive objects document, story and image has been rewritten.

In shell4_config.xml, in directory style for Tark4, under base queries Tark4ShellMainTab and Tark4PageNavTab, a new column is added to show story's related package.

See also

Display linked content in Tark4 archive from a listing