Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/Wizard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Feature: wizard
Then I enter "John Lewis Voting Rights Act" into the wizard query box
Then the "the wizard primary button" element should exist
And I hard click on "the wizard primary button"
And I wait 10 seconds
And I wait 15 seconds
Then I should see "Okay, you’re looking for:"
And I should see "John Lewis Voting Rights Act"
And I should see "We found the following public information:"
Expand Down
2 changes: 1 addition & 1 deletion js/components/wizard_component_rich_text.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function RichText({ children = '', html = '', mid }) {

const hrefOrigin = href.split('/').slice(0, 3).join('/');
if (hrefOrigin !== location.origin) {
return `<a ${attrs} target="_blank">${inner}</a>`;
return `<a ${attrs} rel="noopener" target="_blank">${inner}</a>`;
}

return m0;
Expand Down
1 change: 1 addition & 0 deletions js/components/wizard_page_summary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ function Summary() {
<a
href="/how-wizard-works.html"
target="_blank"
rel="noopener"
className="w-how-wizard-works"
>
Learn more about why you got these results.
Expand Down
4 changes: 2 additions & 2 deletions js/models/wizard_law_enforcement_records.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const lawEnforcementRecordsJourney = question('q20', [
'County or state prison records',
),
answer(
'literal:Federal prison (view the <a target="_blank" href="https://www.bop.gov/mobile/locations/">list of federal prisons</a>)',
'literal:Federal prison (view the <a rel="noopener" target="_blank" href="https://www.bop.gov/mobile/locations/">list of federal prisons</a>)',
summary('m64'),
'Federal prison records',
),
Expand Down Expand Up @@ -157,7 +157,7 @@ const lawEnforcementRecordsJourney = question('q20', [
'literal:Court records',
question('q28', [
answer(
'literal:Federal (use the <a href="https://www.uscourts.gov/federal-court-finder/search" target="_blank">Federal Court Finder</a>)',
'literal:Federal (use the <a href="https://www.uscourts.gov/federal-court-finder/search" rel="noopener" target="_blank">Federal Court Finder</a>)',
summary('m57'),
'Federal court case records',
),
Expand Down
23 changes: 22 additions & 1 deletion js/stores/agency_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,28 @@ class AgencyComponentStore extends Store {
(agencyComponent) => !(agencyComponent.agency.id in centralizedAgencyIndex),
)
.sort((a, b) => collator.compare(a.title, b.title)),
);
)
.map((/** @type FlatListItem */ a) => {
if (!a.title) {
console.warn('agencyComponentStore: agency has no title', a);
a.title = '';
}
if (!a.abbreviation) {
console.warn('agencyComponentStore: agency has no abbreviation', a);
a.abbreviation = '';
}
if (a.agency) {
if (!a.agency.name) {
console.warn('agencyComponentStore: parent agency has no name', a);
a.agency.name = '';
}
if (!a.agency.abbreviation) {
console.warn('agencyComponentStore: parent agency has no abbreviation', a);
a.agency.abbreviation = '';
}
}
return a;
});
}

getFlatItemUrl(flatItem) {
Expand Down
4 changes: 4 additions & 0 deletions www.foia.gov/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Header setifempty Cache-Control "max-age=300, public, must-revalidate"
Header setifempty Cache-Control "max-age=0, public, must-revalidate"
{% endif %}

<IfModule mod_headers.c>
Header set Cross-Origin-Opener-Policy "same-origin"
</IfModule>

# Longer cache time for static assets
<FilesMatch "\.(eot|gif|ico|jpe?g|json|pdf|png|svg|swf|ttf|txt|woff2?|xls|xml|zip)$">
Header set Cache-Control "max-age=86400, public, must-revalidate"
Expand Down
2 changes: 1 addition & 1 deletion www.foia.gov/developer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ curl -g -v -H 'X-API-Key: <your-api-key>' https://api.foia.gov/api/agency_compon

## The FOIA XML Schema

<p>Federal agencies publish FOIA information in accordance with guidelines prepared by the U. S. Department of Justice Office of Information Policy. These guidelines, available <a href="http://www.justice.gov/oip/foiapost/guidance-annualreport-052008.pdf" target="_blank">here</a>, describe the format and meaning of FOIA annual report information. In addition, a <em>FOIA Annual Report XML schema</em> has been developed allowing agency FOIA annual report information to be represented and exchanged in a standardized format. This XML schema closely follows the structure and terminology of the guidance document, and conforms to the NIEM standard (<a href="http://niem.gov" target="_blank">http://niem.gov</a>).&nbsp;</p>
<p>Federal agencies publish FOIA information in accordance with guidelines prepared by the U. S. Department of Justice Office of Information Policy. These guidelines, available <a href="http://www.justice.gov/oip/foiapost/guidance-annualreport-052008.pdf" rel="noopener" target="_blank">here</a>, describe the format and meaning of FOIA annual report information. In addition, a <em>FOIA Annual Report XML schema</em> has been developed allowing agency FOIA annual report information to be represented and exchanged in a standardized format. This XML schema closely follows the structure and terminology of the guidance document, and conforms to the NIEM standard (<a href="http://niem.gov" rel="noopener" target="_blank">http://niem.gov</a>).&nbsp;</p>
<p>All agency data available through reports and graphs on the <a href="{{ site.baseurl }}/data.html">FOIA.gov</a> website is also available for public download as XML documents conforming to the FOIA Annual Report XML schema at the link below. This enables any kind of offline processing, storage, comparison, or mashup which may be desired.&nbsp;&nbsp; </p>
<p>The entire IEPD package may also be downloaded directly by clicking on the following link [<a href="{{ site.baseurl }}/iepd/FOIA_Annual_Report_v2.2.zip">Download IEPD</a>].</p>
<p>Within this IEPD package you can find the XML schema defined in <em>exchange_files/schema/extension/FoiaAnnualReportExtensions.xsd</em>. Note that this definition inherits from others, which can be found in the package as well, under <em>exchange_files/schema/Subset/niem/</em>.</p>
Expand Down
2 changes: 1 addition & 1 deletion www.foia.gov/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>Search Government Websites</h2>

If you do not find what you are looking for online, or if you want to request more information on a given topic, you can submit a FOIA request to the agencies’ Contacts.
</p>
<form class="usa-search add-bottom-margin-one" accept-charset="UTF-8" action="https://search.foia.gov/search" id="search-bar" method="get">
<form class="usa-search add-bottom-margin-one" accept-charset="UTF-8" action="https://search.usa.gov/search" id="search-bar" method="get">
<div role="search">
<label class="usa-sr-only" for="query">Search federal agencies</label>
<input name="utf8" type="hidden" value="✓">
Expand Down
Loading