Since build 2280 in version 2.1, we introduced the search by the published status. On the Advanced search pane of Editorial, Wires and Articles, you can find the Published check-box.
When ticked, the listing displays only the published content; when empty, the listing displays only the not published content; when containing a black rectangle, the listing displays published and not published content.
In Type you can select Article, Editorial image, Image or Video. It doesn't work for any other type.
Here the instruction on how to add the Linked check box on the search panes. On the previous screenshot, the Published check box was added on the Advanced pane of the Editorial navigator. You can add it to other panes too. The changes include 1.the schema changes 2.the database upgrade 3.the recomputing for existing published items, 4.the configuration changes. 1.SCHEMA CHANGES There are changes in gn4.xsd and in Tark4Include.xsd. In GN4.xsd add the "nav" namespace in the schema definition if not already there. <xs:schema targetNamespace="urn:schemas-teradp-com:gn4tera" elementFormDefault="qualified" xmlns="urn:schemas-teradp-com:gn4tera" xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd" xmlns:gn4="urn:schemas-teradp-com:gn4tera" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gs="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" gs:modules="Editorial"> Modify the following two objects adding the part in red: <xs:group name="imgExtra"> In Tark4Include.xsd add the "nav" namespace in the schema definition: <xs:schema elementFormDefault="qualified" xmlns:nav='http://www.teradp.com/schemas/GN4/1/ObjNav.xsd' xmlns:gs="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <xs:group name="folderObjectExtra"> by adding the element: Pay attention to define the element inside the <xs:sequence> node where other elements are already present. Modify the image object: by adding the part in red. We left part of the element to understand where to place it: <gs:compute inherit="true"> <!-- Compute the isPublished --> Do the same thing on the video object: <xs:element name="video"> again we pasted a part of the element to understand where to place it <gs:compute inherit="true"> <!-- Simplified XSL transformation to compute size --> <video> <!-- Compute size --> ... <!-- Compute the isPublished --> <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>
2.UPGRADE THE DATABASE WITH THE NEW SCHEMA We suggest to run the schema update with the -nocompute option otherwise all folderObject 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 OBJECTS 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: <attribute path="[folderObject.isPublished]"> <ui label="Published"> <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: <attribute path="[folderObject.isPublished]"> <ui label="Published"> <template kind="CheckBox" opMode="Hidden"/> </ui> </attribute> |