RSS发布

可译的
要设置RSS订阅源,您必须具有以下角色之一:
  • 通用系统管理员
  • 仓储管理员
  • 编目管理员

An RSS (Rich Site Summary) feed pushes records to the discovery interface (Primo), identifying new items published or added to the inventory.您可以用此创建一个新书列表。

RSS订阅源中包含的图书馆单册由RSS发布配置文件中的配置设置和相对日期范围决定。

Internet Explorer fully supports RSS, Firefox offers some support, and Chrome does not support RSS at all.要使用非IE浏览器的RSS,查看该浏览器的帮助以找到附加组件或解决方案。

新RSS订阅源工作流程

创建新RSS订阅源包括以下步骤:

  1. Create a physical items set (see Saving and Reusing Search Queries) to identify the set of records within which you expect to locate your list of new books.配置RSS发布配置文件时,您将需要此结果集的名称。

Only logical sets can be used with the RSS Profile.运行配置文件时不会列出单列式结果集。

  1. Create the RSS discovery URL (see Creating the RSS Discovery URL).
  2. After you have identified all the parts and created the RSS discovery URL that you need to use for your new book list process, enter the URL in rss_discovery_url(see Configuring Other Settings).
  3. Create an RSS publishing profile that includes a definition of new that is between 90 and 2 days ago (see the Max number of days ago and Min number of days ago settings described in Configuring an RSS Publishing Profile below).
  4. Create the RSS feed URL (see Creating the RSS Feed URL)
  5. 也可以确认已将新书添加/接收到您的数据库(在您上面保存的结果集内)。
  6. Confirm that the RSS publishing profile successfully completed processing on the Monitor Jobs page (see Viewing Completed Jobs).
  7. 通过在浏览器中输入URL并在Primo中查看结果来使用RSS订阅源URL查看新书列表。See Viewing Scheduled Jobs.

配置RSS发布配置文件

要配置RSS订阅源:
  1. Open Resources > Publishing > Publishing Profiles.
  2. Select Add Profile and select the RSS option.显示空白RSS配置文件的发布配置文件详情页面。
  3. 使用下表配置RSS发布配置文件。
    RSS发布配置文件
    字段描述
    配置文件详情
    配置文件名称RSS订阅源发布配置文件的唯一名称。用于识别发布配置文件页面列表中的配置文件。
    配置文件描述有关发布配置文件页面上显示的配置文件的更多信息。
    状态
    • 有效(黄色勾选标记),表示正在使用或可以使用,或
    • 无效(清除勾选标记),意味着它目前无法使用。
    计划当您要运行此发布配置文件时。
    电子邮件通知当RSS作业完成时,哪些用户和电子邮件地址接收电子邮件通知。点击打开调度作业的电子邮件通知页面。选择是否发送成功作业和/或包含错误的作业的通知。
    RSS订阅源参数
    RSS订阅源名称用于生成订阅源链接的名称。不要在名称中使用空格。
    语言来自语言代码表的下拉列表。默认值为空。一旦选择了值,它将成为后续使用配置文件的默认值。
    RSS订阅源题名发布配置文件列表中配置文件的名称。
    这也出现在RSS订阅源结果中。
    RSS订阅源说明发布配置文件列表中显示的配置文件的描述。
    这也出现在RSS订阅源结果中。
    显示位置名称是否在输出中包含完整的位置名称,或仅包含位置代码。

    RSS 版本2.0

    选择该复选框使用RSS 2.0 XML发布RSS feed。

    选择群体
    结果集名称应用RSS功能的纸本单册结果集。
    过去最大天数查找订阅源新单册的过去最大天数。New is determined by the item's Receiving date identified on the Physical Item Editor page.
    默认天数为60。这个数字不能超过90。
    过去最少天数查找新单册的过去最小天数。默认值为2,两天是确保与Primo同步的最小值。This number cannot exceed the Max number of days ago.
  4. Select Save.发布配置文件列表页面显示,并列出新RSS订阅源发布配置文件。

创建RSS发现URL

RSS发现URL定义Alma用于生成RSS发布订阅源中列出的单册的深度链接的基址URL。

For {{suprima}}, use the following template to define your RSS discovery URL:

http://<Primo_domain>/discovery/search?vid=<view_code>&tab=<search_slot>&search_scope=<scope_code>&query=any,contains,@@ALMA_MMS_ID@@

An example of a functional RSS discovery URL may look something like the following for {{suprima}}:

https://myprimo.exlibrisgroup.com/discovery/search?vid=MY_INST:MINES&tab=Everything&search_scope=MyInst_and_CI&query=any,contains,@@ALMA_MMS_ID@@

For Primo, use the following template to define your RSS discovery URL:

http://<Primo_domain>/primo_library/libweb/action/dlSearch.do?institution=<institution_code>&vid=<view_code>&tab=<tab_code>&search_scope=<scope_name>&query=any,contains,<source_code>@@ALMA_IND@@
  • Primo_domain – Specify the domain that you use for Primo's UI.
  • institution_code – Specify Primo's institution code, which is defined with the Institution Wizard in the Primo Back Office.For more details, see Institution Wizard.
  • view_code – Specify Primo's view code, which is defined with the Views Wizard in the Primo Back Office.For more details, see Configuring Primo Views.
  • tab_code – Specify the view's tab code, which is defined with the Views Wizard in the Primo Back Office.For more details, see Configuring View Tabs.如果未指明,系统会使用视图的默认值。
  • scope_name – Specify the name of the scope to which you want to search, which is defined with the Views Wizard in the Primo Back Office.For more details, see Configuring Search Scopes.如果未指明,系统会使用视图的默认值。
  • source_code – Specify the source code, which is defined with the Data Sources page in the Primo Back Office (see Configuring the Data Source).如果您的机构为合作网络中的成员,该值留空。

For more information on using the parameters for the Brief Search deep link, see Brief Search Deep Link in the Developer Network.

Primo的功能性RSS发现URL的示例如下所示:

http://demo.primo.exlibrisgroup.com:1701/primo_library/libweb/action/dlSearch.do?institution=EXLDEV1_INST&vid=Alma&tab=default_tab&search_scope=Alma&query=any,contains,primo_alma@@ALMA_IND@@
如果您正在使用新Primo用户界面且不是从旧界面转换过来的,使用以下模板定义RSS发现URL:
https://<Primo_domain>/primo-explore/search?institution=<institution_code>&vid=<view_code>&tab=<tab_code>&search_scope=<scope_name>&query=any,contains,<source_code>@@ALMA_IND@@

Once you have defined your RSS discovery URL, you can enter it in the rss_discovery_url parameter that is located on the Mapping Table page of Other Settings(Administration > General Configuration > Configuration Menu > General Configuration section).

创建RSS订阅源URL

RSS订阅源URL从RSS订阅源中检索记录。After each run of the RSS publishing job, the RSS feed includes records in the results with items whose receiving date is within the minimum/maximum number of days ago range that you set in the RSS publishing profile.这些记录构成了您的新书列表。读者可以通过点击位于Primo或其他图书馆页面的RSS订阅源URL链接注册RSS订阅源。以下模板用于创建RSS订阅源URL,这些URL能够通过查看RSS发布配置文件的完成作业验证:

http://<Alma_domain>/rep/getFile?institution_code=<institution_code>&file=<RSS_feed_name>&type=RSS
  • Alma_domain – Specify your Alma domain (see Your Alma Domain Names).
  • institution_code – Specify the code that is assigned to your institution in Alma.
  • RSS_feed_name – Specify the name of the RSS feed, which is defined in the RSS publishing profile:
    RSS_Feed_Name_from_the_RSS_Publishing_Profile_NewUI_02_TC

以下是RSS订阅源URL的示例:

http://demo.alma.exlibrisgroup.com:1801/rep/getFile?institution_code=EXLDEV1_INST&file=library_science_RSS_name&type=RSS

发布RSS订阅源作业

当您完成RSS订阅源发布配置文件后,发布RSS订阅源作业将根据配置文件中定义的计划运行。

要查看作业进程,使用以下方式查找:

For completed jobs, select Report from the row actions list to open the Job Report page.

The job report looks as the below:RSS job report.png

Counters displayed in the job report:

  • New records (P)- Number of records that actually published with the logical set criteria (Receiving date).
  • Filtered records- Not relevant here, ignore this counter.

In addition to the files created as a result of the Publishing RSS Feed job, Alma generates a summary link (displayed on the Job Report page) for each RSS job in the following format:http://<Alma domain>/rep/getFile?institution_code=<Alma Institution Code>&file=<RSS feed name>&type=RSS.This is the same URL format described in Creating the RSS Feed URL.

要查看RSS Feed结果并订阅

The examples below were taken using Internet Explorer.其他浏览器中的结果会看起来有些微不同。Ex Libris is not responsible for various browsers capabilities to subscribe to a RSS feed.

要查看RSS feed发布配置文件(例如,新图书列表)的结果并订阅:
  1. Select the link provided on the Job Report page, or copy/paste the RSS feed URL that you created in the section Creating the RSS Feed URL into a browser.任何一种方法将打开与下图格式相似的页面,其中包含与发布概要文件中您提供的日期跨度条件匹配的单册列表。This is your new books list.untitled RSS feed.png
  2. Select "Subscribe to this feed" and fill in the details.Subscribe to this feed.pngA message opens the confirms that you have successfully subscribed.successfully subscribed to feed.png
  3. 选择“查看我的feed”查看结果。Your new RSS feed results list opens.the final feed.png
  4. 要查看RSS feed结果列表中的单册,选择列表中的记录链接。单册在您的发现工具/Primo中打开。

发布的数据的格式

这是XML文件结构的示例:

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> <rss> <channel> <link></link> <description></description> <language></language> <item> <title></title> <link></link> <author></author> <description> <language></language> <format></format> <mattype></mattype> <pubDate></pubDate> <arrivalDate></arrivalDate> </item> </channel> </rss>

如果没有纸本单册满足发布标准(根据逻辑结果集定义或根据发布配置文件中定义的“过去最大天数”和“过去最小天数”),作为发布结果创建的XML页面为空。This is an example of such an empty page:blank RSS.png