Adding the LegalSuite Matter Summary Widget to a WebSite

1) Introduction

The LegalSuite program is a desktop based app which allows attorneys to manage their legal practices.

An attorney may have thousands of Matters with numerous Parties involved in each Matter (such as the Client, Plaintiffs, Defendants, Mortgagors, Buyers, Sellers, Estate Agents etc.)

These Parties have a vested interest in the progress of a the Matter and often request updated information from the Attorney. Handling status update requests from Parties involved in a Matter can be an onerous and time consuming task. To solve this, LegalSuite has developed a Matter Summary Html Widget which can be embedded in an Attorney's website which will display the current status of a Matter in real time.

The Attorney can then give them a link to this page and all the Parties can then have 24/7 access to the latest information. This not only improves the level of service provided by the Attorney, but also avoids having to deal with numerous calls and requests on a daily basis.

Below are the instructions to achieve this.

2) Getting Started

You need to create a web page to display the widget and name it something like matter-summary.html.

The reason you need a separate web page is because the user will be sent a link to this page with a fileref parameter.

For example, if your website was called www.acmeattorneys.co.za, the user will be sent a link like this:

https://www.acmeattorneys.co.za/matter-summary.html?firmcode=ACME01&fileref=BRA1/0029

The web page must contain an iframe element to display the contents of the widget but it can also contain any logos, text and branding to match the look and feel of the attorney's website. Here is an example

<!doctype html>
<html lang="en">
<head>
<title>LegalSuite Matter Summary Widget Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>
<body>
<div style="padding-left: 20px">
<h2>Your Website</h2>
<p>Your content and branding can go here.</p>
</div>
<iframe
id="matter-summary-iframe"
src="https://legalsuite.net/widgets/loading.html"
style="min-height: 95vh;"
width="100%"
frameborder="0"
></iframe>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script>
$( document ).ready(function() {
// Get the Matter's File Ref from the Url
let queryParams = new URLSearchParams(window.location.search);
// Change the source of the iframe and add the File Ref parameter
$('#matter-summary-iframe').attr('src', 'https://widgets.legalsuite.net/mattersummary?login=0&firmcode=ACME01&fileref=' + queryParams.get('fileref'));
});
</script>
</body>
</html>

matter-summary.html

Note: We are using Bootstrap stylesheet to style the content above and below the widget in this simple example, but you can, and should, include whatever styles you use in your actual website to match the look and feel of the website so that it appears as if the widget is part of the Attorney's website.

As you can see in the example above, the iframe has its src parameter initially set to https://legalsuite.net/widgets/loading.html.

This will display a loading image to provide some feedback while the widget connects to the Attorney's SQL database.

3) Displaying the widget

To display the Matter Summary widget, you simply have to change the src parameter of the iframe.

The base url of the src parameter is https://widgets.legalsuite.net/mattersummary

Note #1: All LegalSuite clients have a firm code which is used to uniquely identify them on our API and retrieve their SQL login details. The firm code will be provided to you on request.

Note #2: All Matters in the LegalSuite program are identified by a File Reference. The fileref parameter is used to indicate which Matter to retrieve from the database.

You need to add the firmcode and fileref parameters to the query and an optional login parameter.

The firmcode can be hard coded

https://widgets.legalsuite.net/mattersummary?firmcode=ACME01

Since the File reference was passed in the url, you need to retrieve it from the url. You can do this using plain javascript or as shown in the example above, we are using jQuery to accomplish this.

In the example above, the jQuery code will change the src parameter of the iframe to

https://widgets.legalsuite.net/mattersummary?firmcode=ACME01&fileref=BRA1/0029&login=0

The Matter Summary widget will attempt to retrieve the Matter from the Client's database and display it in the iframe.

Matter Summary Example

4) Security

To protect sensitive data, the widget will require a login and password by default.

If the login parameter is not specified or set to 1, a login screen will appear, requesting the user to login.

https://widgets.legalsuite.net/mattersummary?login=1&firmcode=ACME01&fileref=BRA1/0029

https://widgets.legalsuite.net/mattersummary?firmcode=ACME01&fileref=BRA1/0029

If the login parameter is set to 0, the widget will display the Matter's details without any authentication.

https://widgets.legalsuite.net/mattersummary?login=0&firmcode=ACME01&fileref=BRA1/0029

The login screen looks like this:

Matter Summary Login Screen

Note: The login details for each Party are set in the LegalSuite program. The attorney will have to include these details in the email to the Party.

5) Tab Visibility Parameters

You can control which tabs/sections are displayed in the widget by using the following optional query parameters. All parameters default to true if not provided, preserving existing behavior.

Parameter Type Default Description
showParties boolean true Show/hide the Parties tab
showFileNotes boolean true Show/hide the File Notes tab
showDebtorsAccount boolean true Show/hide the Debtor's Account tab (collections matters only)
showSettlement boolean true Show/hide the Settlement Figures tab (collections matters only)
showProperties boolean true Show/hide the Properties tab (conveyancing matters only)
showConveyData boolean true Show/hide the Convey Data tab (conveyancing matters only)
showBondData boolean true Show/hide the Bond Data tab (conveyancing matters only)

Usage Examples

Default - all sections visible:

https://widgets.legalsuite.net/mattersummary?firmcode=ABC&fileref=MAT001

Hide file notes:

https://widgets.legalsuite.net/mattersummary?firmcode=ABC&fileref=MAT001&showFileNotes=false

Hide multiple sections:

https://widgets.legalsuite.net/mattersummary?firmcode=ABC&fileref=MAT001&showParties=false&showFileNotes=false

Collections matter - show only matter details:

https://widgets.legalsuite.net/mattersummary?firmcode=ABC&fileref=MAT001&showParties=false&showFileNotes=false&showDebtorsAccount=false&showSettlement=false

Note #1: The showDebtorsAccount and showSettlement parameters only apply to collections matters (docgenType='LIT' and docgenCode='MAG').

Note #2: The showProperties, showConveyData, and showBondData parameters only apply to conveyancing matters (docgenType='BON', 'CAN', or 'TRN').

Note #3: The Matter Details tab is always shown and cannot be hidden.

6) Conclusion

Inserting the Matter Summary Html Widget into an existing website should be a simple process of adding an iframe with the appropriate src url. The iframe contains all the UI and logic required and keeps the styling separate from the hosting website.

The UI is created using Boostrap 4 and cannot be modified but it is fairly generic and should not clash too much with the hosting website's look and feel.

If you need assistance, however, please contact LegalSuite Software and we will be glad to help.