Sort editions by edition date
The content of edition combo list in the search criteria zone on the Pages navigator in Fred4 is sorted, typically by edition date. The below code in Fred4_Config.XML (BaseQuery Name="Fred4Pages" > SearchList > searchObjectUI name="Search" and searchObjectUI name="Browse" manages the sort:
<attribute path="[page.editionRef]">
<ui>
<searchConditions>
<SearchNode Op="And" xsi:type="ConditionSearchNode"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd">
<Left Op="Equal" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="edition.isTemplate" />
<Right xsi:type="VariableSearchNode" Name="isTemplate" Type="Boolean" Optional="true"/>
</Left>
<Right Op="In" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="edition.titleRef" />
<Right xsi:type="VariableSearchNode" Name="titleId" Type="IdList" Optional="true"/>
</Right>
</SearchNode>
</searchConditions>
<template kind="CompactList" opMode="Hidden" >
<Sort>
<SortDescription PropertyName="[edition.date]" IsAscending="false" />
</Sort>
</template>
</ui>
</attribute>
In browser
<attribute name="objs">
<ui tab="contentTab" mode="Normal" labelPosition="None">
<template kind="Grid" xmlns="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd">
<Sort>
<SortDescription PropertyName="[folderObject.title]" IsAscending="true" />
</Sort>
<searchObjectUI>
<searchConditions>
<SearchNode xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd" xsi:type="SearchConditionList" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<List Op="In" Path="ObjectType.Id" >
<IdList>
<IdName Name="audio" />
<IdName Name="document" />
<IdName Name="image" />
<IdName Name="video" />
</IdList>
</List>
</SearchNode>
</searchConditions>
<attribute path="[archiveObject.folderRef]" op="In">
<ui>
<template kind="Tree" opMode="Hidden" showHomeFoldersOnTop="true" displayCompletePath="true" />
</ui>
</attribute>
<attribute path="[archiveObject.title]" />
<attribute path="[archiveObject.summary]" />
<attribute path="[archiveObject.alh_src]" op="In">
<ui>
<template kind="SimpleList" opMode="Hidden" />
</ui>
</attribute>
</searchObjectUI>
<DataTemplate>
<xp:Border VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="1" Background="White" BorderThickness="1,1,1,1" BorderBrush="Gray">
<xp:Grid>
<xp:Grid.RowDefinitions>
<xp:RowDefinition />
</xp:Grid.RowDefinitions>
<xp:Grid.ColumnDefinitions>
<xp:ColumnDefinition />
<xp:ColumnDefinition />
</xp:Grid.ColumnDefinitions>
<l:Image Grid.Row="0" Grid.Column="0" Margin="4,4,2,2" ImageId="{Binding Path=[image.thumbnail.id]}" />
<xp:StackPanel Grid.Row="0" Grid.Column="1">
<xp:StackPanel Orientation="Horizontal" >
<l:ObjectTypeIcon ObjectType="{Binding Path=ObjectType}" />
<xp:TextBlock FontWeight="Bold" Text="{Binding Path=[archiveObject.title]}"/>
</xp:StackPanel>
<xp:TextBlock Text="{Binding Path=[archiveObject.summary], Converter={StaticResource TrimTextConverter}, ConverterParameter=130: :...}" />
</xp:StackPanel>
</xp:Grid>
</xp:Border>
</DataTemplate>
<objectUI>
<default mode="Hidden" />
<attribute name="caption">
<ui mode="Normal">
<template kind="MultiLineString" xmlns="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd" useSpellChecker="yes">
<objectUI showInstruction="false">
<web maxCharsPerLine="60" maxRows="6"/>
</objectUI>
</template>
</ui>
</attribute>
</objectUI>
</template>
</ui>
</attribute>