Skip to content

JavaScript library for accessing and displaying information from the BRS M-Files service.

Notifications You must be signed in to change notification settings

mazurov/brs-framework

Repository files navigation

brs-framework

JavaScript library for accessing and displaying information from the BRS M-Files service.

Consists of two components:

  1. Read data from BRS's documents service
  2. UI components for filter and displaying documents. Based on the Kendo UI library.

Development

  • src: common library to handle M-Files and UI for it
  • js:
    • app-leg.js: main scripts for legislation frontend
    • app-nip.js: main scripts for NIP frontend

Run in development

You can test only one of the apps: legislation or nip. For selecting library you need to uncomment the selected apps script in /index.html:

Here we test only legislation app:

    <script src="js/app-leg.js" type="text/javascript"></script>
    <!-- <script src="js/app-nip.js" type="text/javascript"></script> -->

Deployment

  • Copy the files brs.js and files which starts with app-*.js to the web server
  • Include the brs.js and the selected app script to your page where you would like to display the frontend
  • Add empty div with id corresponds to the selected app:
    <div id="brs-builder-leg"></div>
    or
    <div id="brs-builder-nip"></div

About

JavaScript library for accessing and displaying information from the BRS M-Files service.

Topics

Resources

Stars

Watchers

Forks

Languages