Newsagent/Syndicate

From Computer Science Wiki
Revision as of 15:02, 2 October 2013 by Mbasscp2 (talk | contribs)
Jump to navigation Jump to search
Newsagent
Author Chris Page
Contact Support
Repository github
Issue tracker github
OS Neutral (web based)
Will not work with IE8 or older
URL Newsagent
Navigation

As stated in the Feeds and Visibility documentation, all articles created in Newsagent must go into a feed with at one visibility level set for each article. Feeds must then be requested by any client - website, feed reader or aggregator, and so on - that is interested in the articles, and each client may specify which level of article they are interested in seeing in the feed.

Feeds are exposed by the system in two formats:

  • a 'HTML fragment' format suitable for directly embedding in pages, with css classes set on most elements to allow for styling to match the page the content is embedded in. This format is not supported for general use.
  • RSS 2.0 formatted feeds compatible with most feed readers and aggregators. This is the recommended format for fetching feeds from the system.

Available feeds

As briefly noted in Issue #5, a feed list page is a planned enhancement to Newsagent. That will simplify the process of obtaining feed URLs from the system.

The following feeds are currently published by the system. The URL given in the table below will include the 10 most recent articles at all visibility levels in the feed, to filter the feed so that only certain visibility levels are included, see the Feed options section below.

Feed name Description Base URL
employability Employability https://newsagent.cs.manchester.ac.uk/rss?feed=employability
general General https://newsagent.cs.manchester.ac.uk/rss?feed=general
industry Industry https://newsagent.cs.manchester.ac.uk/rss?feed=industry
mastersnews Masters News https://newsagent.cs.manchester.ac.uk/rss?feed=mastersnews
mondaymail Monday Mail https://newsagent.cs.manchester.ac.uk/rss?feed=mondaymail
people People https://newsagent.cs.manchester.ac.uk/rss?feed=people
research Research https://newsagent.cs.manchester.ac.uk/rss?feed=research
seminars Research - Seminars https://newsagent.cs.manchester.ac.uk/rss?feed=seminars
schools Schools and colleges https://newsagent.cs.manchester.ac.uk/rss?feed=schools
study Study https://newsagent.cs.manchester.ac.uk/rss?feed=study
cpd Study - CPD https://newsagent.cs.manchester.ac.uk/rss?feed=cpd
pgr Study - PGR https://newsagent.cs.manchester.ac.uk/rss?feed=pgr
pgt Study - PGT https://newsagent.cs.manchester.ac.uk/rss?feed=pgt
ugt Study - UGT https://newsagent.cs.manchester.ac.uk/rss?feed=ugt
ugty1 Study - UGT - Y1 https://newsagent.cs.manchester.ac.uk/rss?feed=ugty1
ugty2 Study - UGT - Y2 https://newsagent.cs.manchester.ac.uk/rss?feed=ugty2
ugty3 Study - UGT - Y3 https://newsagent.cs.manchester.ac.uk/rss?feed=ugty3
ugty4 Study - UGT - Y4 https://newsagent.cs.manchester.ac.uk/rss?feed=ugty4
web_ergonomics Web Ergonomics Lab https://newsagent.cs.manchester.ac.uk/rss?feed=web_ergonomics

Feed options

The RSS generator script supports a number of options that allow you to control the articles included in the feed. The most important option is the feed option:

feed=<comma separated list of feeds>
The feed option allows you to specify which Newsagent feed or feeds you are interested in fetching articles from. This can either be a single Newsagent feed name, as shown in the table above, or you can request articles in multiple Newsagent feeds by separating the names with commas, eg: feed=pgt,pgr,ugt will give you the articles published in the Study - PGT, Study - PGR, or Study - UGT Newsagent feeds. If you do not specify a feed at all, the system will give you articles published in all Newsagent feeds.

If you just ask for a Newsagent feed, you will get all published articles in that feed regardless of the visibility levels the author set on it. If you are only interested in a subset of articles with specific visibility levels, you should include the level option in the query:

level=<comma separated list of visibility levels>
The level option allows you to select only articles that have been set to be published at the specified level(s). This can either be a single level, eg: level=home or it can be a comma separated list levels=home,leader. Valid levels are currently home (Important (School Home Page)), leader (Medium (Section Leader Page)), and group (General (Group or Internal pages)). Omitting this option is equivalent to levels=home,leader,group (ie: select all levels). https://newsagent.cs.manchester.ac.uk/rss?feed=pgt,pgr&level=leader,group will produce a feed containing articles published in the PGT or PGR feeds at the Medium or General levels.