Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma
    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Product Documentation
    4. Alma Online Help (Alma中文在线手册)
    5. Alma-Primo集成
    6. 设置Primo前端为只读

    设置Primo前端为只读

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    New updates to this page are now published in the new Knowledge Portal. Learn more in the FAQ.

     

    No headers
    可译的

    此程序仅适用于经典Primo界面,不支持新Primo界面和Primo VE。

    本节描述设置Primo前端为只读的必需步骤,这些步骤由与外部系统或用户数据交互的隐藏功能构成,如以下功能:
    • 通过Primo请求的OPAC
    • 访问我的帐户
    • 创建新标签
    • 创建或编辑复审
    • 保存查询
    • 添加单册到电子书架篮(作为认证用户)
    • 在主菜单订购单册
    这可能会在系统转换期间有用。
    要设置前端为只读:
    1. 创建名为readonly.css的文档并包含下列信息:

      * Readonly Attributes */

      /* Hide the e-shelf feature */
      .EXLMyShelf,.EXLResultsList td.EXLMyShelfStar, .EXLFacetContainer div.EXLFacetActionsV2 li.EXLFacetSaveToEShelfAction, .EXLTabHeaderButtons ol.EXLTabHeaderButtonSendToList li.EXLButtonSendToMyShelf {display: none;}

      /* Hide the My Account feature */
      .EXLMyAccount {display: none;}

      /* Hide the ability to add new Tags and reviews and to view your reviews and tags */
      .EXLTagsContainer p:first-child, .EXLReviewsContent p:first-child, div#myTags, .EXLTagsPageRecentTags, .EXLReviewsContent cite {display: none;}

      /* Hide the ability to place requests */
      .EXLTabsRibbon div li.EXLRequestTab {display:none;}
      .EXLLocationTableActions {display:none;}
      .EXLLocationTableHeaderActions {display:none;}

      /* Hide the ability to save queries */
      .EXLFacetContainer div.EXLFacetActionsV2 li.EXLFacetSaveSearchAction {display: none;}

      /* Create a readonly banner that displays a read-only message at the top of the Front End */
      div.readonly {padding: 0px; margin: 0px 0px 0px 0px; font-size: 80%;
      border-bottom: 1px solid #E1E1E1; border-top: 1px solid #E1E1E1;
      background-color: #d93f3b; color: #ffffff; text-align: center;
      line-height: 36px; font-weight: bold;}

    2. 保存文档至服务器。如果您没有服务器的访问权限,使用文档上传器(Primo首页 > Primo功能) 上传文档。
    3. 编辑CSS映射表格(Primo首页 > 高级配置 > 全部映射表 > 前端 子系统)。
    4. 在每个映射行的CSS URL字段中,附加readonly.css到CSS文档列表。例如:Primo_default.3.0.css;../uploaded_files/<YOUR_VIEW>/readonly.css
    5. 保存并配置您的更改到映射表格。
    6. 编辑用于页眉的静态HTML文档并添加下列内容:

      <script type="text/javascript">
      // To be added in your static HTML file header during the Alma cutover period
      //<![CDATA[
      (function() {
              // You can customize the message if you want
          var mess = 'Due to system upgrade some services may not be available.Please contact library staff for additional information and services.';
          
          $('body').prepend('<div class="readonly">' + mess + '</div>');
      }());

      //]]>
      </script>

    7. 保存修改的静态HTML文档到服务器。如果您没有服务器的访问权限,使用文档上传器(Primo首页 > Primo功能) 上传文档。您应当在前端页面顶端看到:
      readonly_output.png
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Alma作为用于认证的读者目录
      • 和外部系统集成
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      简体中文
      Product
      Alma
    2. Tags
      This page has no tags.
    1. © Copyright 2026 Ex Libris Knowledge Center
    2. Powered by NiCE Knowledge Management ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved