You can add the search by the merged status.
Here the instruction on how to add the Copied check box on the search panes. The changes include 1.The schema changes 2.The database upgrade 3.The recomputing for existing linked items, 4.The configuration changes. 1.SCHEMA CHANGES The changes on the schema are to be done on the custom version of the GN4.XSD and they regard the section of the schema related to the articleExtra. The addition is highlighted in yellow. After the change, the schema has to be saved, all GN4 applications stopped, and the schema reloaded in the database. IT IS RECOMMENDED TO DO THIS ON THE TEST SYSTEM PRIOR TO CHANGING THE PRODUCTION SERVER! <xs:group name="articleExtra"> <xs:annotation> <xs:documentation>Additional attributes of the 'article' object type</xs:documentation> <xs:appinfo> <gs:compute inherit="true"> <article xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <xsl:variable name="isPub" select="nav:referencing/nav:referencingBy[@attrName='pubDest.objs']/nav:refs"/> <!-- 'Fake' test of the handle attribute to generate a dependency --> <xsl:if test="string($isPub/@handle)"> <xsl:choose> <xsl:when test="$isPub/nav:refObject/gn4:pubDest"> <isPublished>true</isPublished> </xsl:when> <xsl:otherwise> <isPublished>false</isPublished> </xsl:otherwise> </xsl:choose> </xsl:if>
<xsl:variable name="isLin" select="gn4:txts/*/gn4:pageLayers"/> <!-- 'Fake' test of the handle attribute to generate a dependency --> <xsl:if test="string($isLin/@nav:handle)"> <xsl:choose> <xsl:when test="$isLin/gn4:item"> <isLinked>true</isLinked> </xsl:when> <xsl:otherwise> <isLinked>false</isLinked> </xsl:otherwise> </xsl:choose> </xsl:if>
<xsl:variable name="isCop" select=" count(nav:dests/nav:actionDesc)"/> <!-- 'Fake' test of the handle attribute to generate a dependency --> <xsl:if test="string($isCop/@handle)"> <xsl:choose> <xsl:when test="$isCop >=1"> <isCopied>true</isCopied> </xsl:when> <xsl:otherwise> <isCopied>false</isCopied> </xsl:otherwise> </xsl:choose> </xsl:if>
</article> </gs:compute> </xs:appinfo> </xs:annotation> <xs:sequence> <xs:group ref="archiveObjectExtra"/> <xs:element name="authorRef" type="reference" minOccurs="0" nillable="true" gs:refer="user"> <xs:annotation> <xs:documentation>Author of the article - </xs:documentation> </xs:annotation> </xs:element> <xs:element name="notes" type="tDescription" minOccurs="0"> <xs:annotation> <xs:documentation>Copy-flow notes</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:group>
Now, modify the object linkObjectExtra, by adding the highlighted part: <xs:group name="linkObjectExtra"> <xs:annotation> <xs:documentation>Additional attributes of the 'img' object type </xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="isLinked" type="xs:boolean" minOccurs="0" default="false" gs:compute="true"> <xs:annotation> <xs:documentation>Computed boolean: false: not linked - true: linked</xs:documentation> <xs:appinfo> <gs:ui mode="ReadOnly"/> </xs:appinfo> </xs:annotation> </xs:element> </xs:sequence> </xs:group> Pay attention to define the element inside the <xs:sequence> node where other elements are already present. 2.UPGRADE THE DATABASE WITH THE NEW SCHEMA We suggest to run the schema update with the -nocompute option otherwise all linkObject will be recomputed taking a very long time. Here is a sample of the command srv4 dbupdate -s ..\config\schemas\GN4.xsd -d "" -nocompute Remember to verify the path for your schema. Remember to perform the iisreset before proceeding. 3.RECOMPUTE FOR THE EXISTING ARTICLES Recompute only the necessary objects with the command: srv4 recompute -conditions gn4:article 4.MODIFY THE SEARCH PANES In the SHELL4_CONFIG.XML, locate the EditorialPages base query, expand it and then expand SearchList, and then expand searchObjectUI name="Advanced".Add the following code on the position you want, within the searchObjectUI name="Advanced": <attribute path="[linkObject.isCopied]"> <ui label="Copied"> <template kind="CheckBox" opMode="Hidden"/> </ui> </attribute> In the TED4_CONFIG.XML, locate the ArticlePicker base query, expand it and then expand SearchList, and then expand searchObjectUI name="Advanced".Add the following code on the position you want, within the searchObjectUI name="Advanced": <attribute path="[linkObject.isCopied]"> <ui label="Copied"> <template kind="CheckBox" opMode="Hidden"/> </ui> </attribute> Load the both configurations in the database and then try to find linked and not linked items. |