Skip to content

Commit

Permalink
Merge pull request #159 from codeforbtv/transfer-updates
Browse files Browse the repository at this point in the history
Remove VT Courts Online code
  • Loading branch information
doub1ejack authored Jul 29, 2021
2 parents f8fcf3a + be5e431 commit d4367f0
Show file tree
Hide file tree
Showing 10 changed files with 2,426 additions and 1,427 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

This project originated as a way for Vermont Legal Aid (VLA) to generate petitions more quickly during their expungement clinics.

VLA runs free clinics throughout the year, but copying information off state databases and filling out petitions by hand is slow. By creating a chrome extension that generates printable files at the push of a button, volunteer attorneys help more people clear their records in every clinic.
VLA runs free clinics throughout the year, but copying information off state databases and filling out petitions by hand is slow. By creating a chrome extension that generates printable files at the push of a button, volunteer attorneys help more people clear their records in every clinic.

# The Chrome extension

[<img src="https://uploads-ssl.webflow.com/5f4f5872323e026126988212/5f56321f2220c927ad18423e_ChromeWebStore_BadgeWBorder_v2_496x150.png" width=300/>](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn)

Printable petitions are generated using an extension for the Chrome browser.
Printable petitions are generated using an extension for the Chrome browser.

The extension essentially reads and (temporarily remembers) info as an attorney browses through case records. This information is automatically inserted into the specified petitions and a printable webpage is generated. The attorney can correct common data errors, insert petitioner names/dates/etc, and print petitions for submission to the state's attorneys.

Expand All @@ -30,22 +30,22 @@ But equally important are the things it **does not** do:

## Who can use Expunge-VT?

This tool was originally developed exclusively for use by VLA in their clincs in 2018. But as volunteer attorneys use the tool in clincs, they have started using it in their own practices as well.
This tool was originally developed exclusively for use by VLA in their clincs in 2018. But as volunteer attorneys use the tool in clincs, they have started using it in their own practices as well.

- **Anyone with data access...** The extension can only be used by people who already have access to state criminal databases - the extension does not grant any data access itself. But the extension will work for anyone who has access to criminal dockets through [VT Courts Online](https://secure.vermont.gov/vtcdas/user) or [Vermont Judiciary Public Portal](https://publicportal.courts.vt.gov/Portal).

- **... but primarily attorneys.** Although anyone with data access can use this tool to generate petitions, they will need to be reviewed (and possibly corrected or modified) by an attorney familiar with expungement statutues. There are a lot of intracasies in expunging & sealing records and conflicts and inaccuracies in the official records that require expert review.

## Demo Expunge-VT
Although you can't generate real petitions without data access, you can give it a test run on these three sample dockets. Just download [the extension from the Chrome Store](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn), navigate to one of these three pages, and click the icon to begin parsing the dockets.
## Demo Expunge-VT

1. [Sample 1](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample1.html)
1. [Sample 2](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample2.html)
1. [Sample 3](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample3.html)
Although you can't generate real petitions without data access, you can give it a test run on this sample docket. Just download [the extension from the Chrome Store](https://chrome.google.com/webstore/detail/expungevt/kkooclhchngcejjphmbafbkkpnaimadn), navigate to one of these three pages, and click the icon to begin parsing the dockets.

1. [Sample Docket](http://htmlpreview.github.io/?https://github.com/codeforbtv/expunge-vt/blob/master/sampleDocketHTML/sample1.html)

You can also view our working draft of [user documentation here](https://docs.google.com/document/d/1tsb6ATu75B6rkEfKKBy32mENy5KHYtM-_wrg36Plc50/edit?usp=sharing).

## Setup for local development

If you are a programmer and are interested in how the extension works, it's easy to run locally too. For more information on how you can pitch in (because that would be super helpful) visit the `#expunge-vt` channel in [Code for BTV's Slack](http://cfbtv-slackin.herokuapp.com/).

1. Clone the github repo, navigate to the `extensionDirectory` folder and run "npm install".
Expand All @@ -63,6 +63,7 @@ If you are a programmer and are interested in how the extension works, it's easy
1. Familiarlize yourself with [how chrome extensions work](./README_EXTENSIONS_OVERVIEW.md).

## Contact Us
This tool was created by Code for BTV, in partnership with [Vermont Legal Aid](https://www.vtlegalaid.org/).

This tool was created by Code for BTV, in partnership with [Vermont Legal Aid](https://www.vtlegalaid.org/).

Please send questions, comments, or feedback to expungevt@codeforbtv.org
6 changes: 1 addition & 5 deletions extensionDirectory/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ chrome.runtime.onInstalled.addListener(function () {
// Code for BTV has demo dockets for practicing
pageUrl: { hostContains: 'codeforbtv.org' },
}),
new chrome.declarativeContent.PageStateMatcher({
// VT Courts Online (VCOL)
pageUrl: { hostContains: 'secure.vermont.gov' },
}),
new chrome.declarativeContent.PageStateMatcher({
// Odyssey site
pageUrl: { hostContains: 'publicportal.courts.vt.gov' },
Expand All @@ -33,7 +29,7 @@ chrome.runtime.onInstalled.addListener(function () {
pageUrl: { urlContains: 'chrome-extension://' },
}),
new chrome.declarativeContent.PageStateMatcher({
// Activate extention on new tabs (helpful for navigating to VCOL and Odyssey)
// Activate extention on new tabs (helpful for navigating to Odyssey)
pageUrl: { urlContains: 'chrome://newtab/' },
}),
],
Expand Down
2 changes: 1 addition & 1 deletion extensionDirectory/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 5 additions & 12 deletions extensionDirectory/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@ docketData = {
rawDocket: null,
};

// select data from the current site
// parse data from the current site
switch (docketData.domain) {
// old Vermont Courts Online site
case 'secure.vermont.gov': {
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
break;
}
// new VT Judiciary Public Portal (aka Odyssey, aka Tyler Technologies)
case 'publicportal.courts.vt.gov': {
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
break;
}
case 'publicportal.courts.vt.gov':

// demo site used to test extension (see readme or codeforbtv.github.io/expunge-vt/)
case 'htmlpreview.github.io': {
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
break;
}
}

// If an expected site was not found, maybe it is being run on a local file?
if (docketData.url.startsWith('file')) {
docketData.domain = 'localhost';
docketData.rawDocket = document.getElementsByTagName('pre')[0].innerHTML;
docketData.rawDocket = document.getElementById('roa-content').innerHTML;
}

// Send message or alert user
Expand Down
10 changes: 0 additions & 10 deletions extensionDirectory/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@
<b>Vermont Judiciary Public Portal <i class="fas fa-external-link-alt"></i></b>
</p>
</a>
<a
id="vtCourtsOnlineA"
class="title-page__link"
target="_blank"
href="https://secure.vermont.gov/vtcdas/user"
>
<p id="vtCourtsOnline">
<b>VT Courts Online <i class="fas fa-external-link-alt"></i></b>
</p>
</a>
<a target="_blank" href="disclaimer.html" class="title-page__link">
<p style="padding-bottom: 20px;">
Terms &amp; Conditions <i class="fas fa-external-link-alt"></i>
Expand Down
Loading

0 comments on commit d4367f0

Please sign in to comment.