25 Jun 2019

Exporting content from Publisher

Exporting Content via RSS feeds

It is possible to export content from Publisher and this content can be pre-filtered on metadata. To syndicate the content you will need to create an RSS user (and if you want to filter the content, then you would need to select the user's preferences in order to do this.) If you want to have a number of different feeds, you will need to have a number of different RSS users. 

Please note that as of our June 23 release, we now support the latest version. This will not impact any existing feeds that you currently have. If you have RSS icons on your Publisher dashboards and wish to have this be the updated version, please contact customer support. For more information on these changes, click here

Creating a standard RSS feed

To create a standard RSS feed, you need to:

  1. Create an RSS User - Create a user in the organisation. A good example of this is RSSALL@clientdomain.com
  2. RSS Feeds - Copy the email address of the user you just created and navigate to System administration > System Settings > RSS feeds and click Add User

  1. Adding an RSS user - Whilst adding an RSS user, you must add the following details:
    • Pair name - This is the name of the RSS feed. For example: 'Feed for all available modules'
    • Email address - This is the email address of the user. For example, RSSALL@clientdomain.com
    • RSS IP - This option enables you to restrict feed access to an IP address OR Restrict IP enables you to block certain IP addresses
    • RSS feed permissions - Once the RSS user has been created, navigate to More actions > Module permissions and select the modules you want the feed to be able to access

  1.  Click the ellipsis on the RSS and click either Copy previous rss link or Copy latest rss link as per the above screen. 

Please note that Copy previous rss link is the older version of the RSS specification, and Copy latest rss link is the newer version of the RSS Specification

  1. You will receive a link, similar to this:

    https://clientdomain.highq.com/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO9YBaF%2B4cQlElEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT3%2FsxlUR9heIgRK9vpaWizzQ%3D&maxrecords=0&rqf=as

Changing the variables of an RSS feed

Records in a feed 

If you want to specify a maximum number of items in an RSS feed, then you need to change the 'maxrecords' parameter with the new value.

The values are as follows:

  1. '-1' means all records (i.e '&mxr=-1' or '&maxrecords =-1')
  2. '0' means first 100 records (i.e '&mxr=0' or '&maxrecords =0')
  3. Any other numeric value defines the specific number of items in the RSS feed (e.g. '&maxrecords =10' equals the first 10 items)

So for example, you could use:

https://clientdomain.highq.com/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO9YBaF%2B4cQlElEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT3%2FsxlUR9heIgRK9vpaWizzQ%3D&maxrecords=10&rqf=as

Additional details

Additionally, you can also add a 'ful' parameter, which will add the complete set of available data to the RSS feed.

By appending '&ful=1' to the RSS link, you can return a more complete set of details for the feed. This can be very useful if you need to import items from your Publisher instance.

So for example, you could use:

https://clientdomain.highq.com/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO9YBaF%2B4cQlElEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT3%2FsxlUR9heIgRK9vpaWizzQ%3D&maxrecords=10&rqf=as&ful=1

Sorting content by modified date

To sort the content by modified date you need to append '&sortByModifiedDate=true' or '&smd=true' with '&ful=1' or '&fulldetails=1' to the RSS link, i.e append '&smd=true&ful=1' 

So for example, you could use:

https://clientdomain.highq.com/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO9YBaF%2B4cQlElEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT3%2FsxlUR9heIgRK9vpaWizzQ%3D&maxrecords=10&rqf=as&smd=tru&ful=1

Narrowing a feed by a particular metadata

From the User system administration page, you need to set the system preferences for your RSS 'feed user' for example RSSALL@clientdomain.com via the More actions menu.
Select the metadata preferences for the RSS user and click Save. These will now be pulled through to the RSS Feed.

 

Example feed

Below are some examples of feeds:

https://clientdomain/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO8uW29998rwZlEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT31x1QHZfc6N6PVhNL%2B4NsnA%3D&maxrecords=0&rqf=as

view-source:https://clientdomain/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO8uW29998rwZlEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT31x1QHZfc6N6PVhNL%2B4NsnA%3D&maxrecords=0&rqf=as

Version 5.5

As of version 5.5, we have introduced the following improvements to the RSS feed, ensuring the easier consumption of content:

Batches for the RSS feed

We have introduced the ability to access RSS Syndication in batches. This means that if you have over 100,000 articles and you are trying to access them all, it is now scaleable and results are returned as expected.

We have also introduced the ability to call batches of articles. This can be done by appending '&pgno=0' to the RSS link, and by setting up the 'maxrecords=10' parameter, you can return a batch of the content for the feed. This can be very powerful if you need to import a large number of items from your Publisher instance.

For example, you could use:

https://clientdomain.highq.com/clientdomain/RSSAuth.action?kydt=v%2FUQWqGWsO9YBaF%2B4cQlElEmiHWjy4Nnd4Q2Z4tUJDD5eOQpPoGT3%2FsxlUR9heIgRK9vpaWizzQ%3D&maxrecords=10&rqf=as&ful=1&pgno=2

Please note that the first page / batch will use '&pgno=0' then '&pgno=1' and so on. If you use 'maxrecords=10' this would mean that 10 articles would be shown within these pages (until they run out).

Permalink URL

We also have the option to show related materials into our RSS feed.

Currently, the permalink URL is a front-end vanity link. Whereas within the RSS feed, this is the back-end URL and this contains extra parameters to help identify where you click the link from (e.g. email/RSS which helps for log in/permission purposes) however, there is no difference in terms of what the content is. Examples of this are below:

Permalink e.g.

https://clientdomain.highq.com/clientdomain/insights/antitrust-vertical-merger-guidelines

RSS feed URL e.g.

https://clientdomain.highq.com/clientdomain/dispatchContent.action?key=BcJlhLtdCv6%2FJTDZxvL23UhmyE6WUXVgzGAckwosUSmlWlttVf7c5dw%2Fc9jGWruxmzF4%2Fk20N54nHczOItrck93OjGmtaEjr&nav=FRbANEucS95NMLRN47z%2BeeOgEFCt8EGQ%2FHLCIrtYuIY%3D&uid=kpypw3ykExQ%3D

 

We have introduced the option to have the permalink URL included rather than the back-end URL, and this will be managed within the super admin setting named "Enable RSS permalink URL".

When the super admin setting "Enable RSS permalink URL" is set to true, the RSS

will be the permalink URL:

Please note that when the "Enable RSS permalink URL" super admin setting is enabled, this will invalidate the "onlineservices.loginrequired.rssfeed" super admin setting. When the"onlineservices.loginrequired.rssfeed" super admin setting is set to "false", this allows users from the RSS feed to view 'Restricted Modules' content without the requirement to log in. This requires the back-end URL parameters, therefore you can either have the ability to review restricted content without logging in OR you can have the permalink URL for the RSS feed

When the super admin setting "Enable RSS permalink URL" is set to false the RSS

will be the back-end URL:

Please note that the GUID will always remain as the back-end URL link

Also, please note that the Related Materials URL's also change with the super admin settings

 

Inclusion of related materials and attachments in the Publication permalink URLs

To be included in the RSS feed with their own :

Related materials 

  • Articles - These will respect the permissions of the article
  • Uploaded Documents - This is the same as the Attachment content pieces - if you have the RSS Feed -> Edit RSS feed -> RSS IP check box is selected, then the user can automatically download, however, if the RSS IP check box is unselected, then it will redirect the user to the login page
  • External URL's - Access to this will be dependant on the external source (if it requires an external log in)

Attachments 

  • Uploaded Documents - This is the same as the Attachment content pieces - if you have the RSS Feed -> Edit RSS feed -> RSS IP check box is selected, then that user can automatically download, however, if the RSS IP check box is unselected, then it will redirect the user to the login page

Please note that when attachments are included in the Related Materials section they will appear with the "related material" category:

Content based on a specific date

Adding date function

To add a date function, (take the RSS link below for example):

  1. Add the parameters to fulfil your date range
    • modified Since = All content since this date
    • modified Before = All content before this date
  2. Both parameters need the following date format 'YYYYMMDDHHmm'. For example: 22 March 2012 15:00 would be 201203221500
  3. Once you have decided what the additional code should be, you must append it in this way. For example, the additional code could be &modifiedSince=201203221500

The example RSS would then be:
https://publisher.highqsolutions.com/publisher/RSSAuth.action?kydt=V0%2BASO82k5JjGLHKAm %2BhbH26Pm6vJtg5rL21MOB7xjlEjnk3tUyvPH8IRqio7Qc5qua2MGD7nrPd%0D %0AzoxprWhI6w%3D%3D&maxrecords=0&rqf=as&modifiedSince=201203221500
 

Include the last modify date of the content in the RSS feed

To include the last modify date of the content in the RSS feed, you must append '&includeLastmdifiedDate=true' or '&lmd=true' with '&ful=1' or '&fulldetails=1' to the RSS link.
For example: append '&lmd=true&ful=1' to the link of the RSS feed


Sort content by modified date

To sort the content by modify date, you must append '&sortByModifiedDate=true' or '&smd=true' with '&ful=1' or '&fulldetails=1' to the RSS link.
For example, append '&smd=true&ful=1' to the link of the RSS feed


Include Status of the content

To include the status of the content, you must append '&includeStatus=true' or '&ins=true' in with '&ful=1' or '&fulldetails=1' to the RSS link, which will add one more tag in the RSS feed ()

For example, append 'includeStatus=true&ful=1' to the link of the RSS feed


Include Archive content in the RSS feed

To include archived content, you must append '&includeArchived=true' or '&ina=true' in with '&ful=1' or '&fulldetails=1' to the RSS link.

For example, append '&includeArchived=true&ful=1' to the link of the RSS feed

 

Changes to the latest version of the RSS:

Below is a list of the changes implemented with the latest version of the RSS. (June 2023)

1. Remove the < last.ModifiedDate> Thu, 25 Aug 2022 08:28:23 +0200< /LastModifiedDate> as both are no longer needed. < lastBuildDate> will suffice:

Please note that we have added spaces in some of the code snippets, please do not use spaces when you are searching and removing these snippets

2. Type="text/html" contentLength="5" is no longer needed within link tags:

3. Author name is now included within brackets as well as the email address:

4. Replace & to a "& amp;" within any URLs/links (as it gets converted to & in the RSS process): 

5. Enclose tag is only required for mp3 or video and therefore is removed for anything other than those types. Additionally the medium="image" OriginalImage="true" are no longer required and have been removed:

Please note that you will notice that the RSS feed URL now has "&ver=1" for option 1 (previous RSS link) and "&ver=2" for option 2 (latest RSS link).
If you are an existing client with an existing RSS feed syndicated from your instance to another website, the "&ver=1" or "&ver=2" is not needed to ensure that existing feeds don't break on upgrade. However, if you want to make use of the newer version from the dashboard, please contact customer support as this will mean that when the "&ver=1" or "&ver=2" isn't included, it will automatically show the latest version not the older version.
So, if you are wanting to move gradually to the new version, it's recommended to first update your RSS URL before contacting customer support to ensure that existing feeds don't break

Exporting content via an API

As of the September 2023 release you can now retrieve content through APIs instead of relying solely on RSS feeds. This will empower developers with comprehensive access to the necessary content elements for effective integration. This is available via Swagger documentation by adding "/showSwaggerUI.action" to your instance URL: e.g. https:////showSwaggerUI.action

Please note that this setting needs to be switched on via HighQ support

Was this article helpful?