A database of mostly unpublished (noncommercial) psychological tests and measures. Each record includes information on reliability, validity, scope, and availability. Most records contain the full text of the instrument.
Loading ...
title
Loading...
script>
document.addEventListener("DOMContentLoaded", function () {
// === Subject Filter ===
const subjectSelect = document.querySelector('select[name="s-lg-sel-subjects"]');
if (subjectSelect) {
subjectSelect.setAttribute("aria-label", "Filter databases by subject");
subjectSelect.removeAttribute("aria-labelledby");
}
// === Type Filter ===
const typeSelect = document.querySelector('select[name="s-lg-sel-az-types"]');
if (typeSelect) {
typeSelect.setAttribute("aria-label", "Filter databases by type");
typeSelect.removeAttribute("aria-labelledby");
}
// === Promote section to a landmark ===
const section = document.querySelector("section");
const heading = document.querySelector("h2.description-header");
if (section && heading) {
heading.id = "description-heading"; // Ensure heading has an ID
section.setAttribute("role", "region");
section.setAttribute("aria-labelledby", "description-heading");
}
// === Wrap description content in a complementary landmark ===
const descriptionHeading = document.querySelector("h2.description-header");
const descriptionContent = document.querySelector(".az-landing-bottom");
if (descriptionHeading && descriptionContent) {
const aside = document.createElement("aside");
aside.setAttribute("role", "complementary");
aside.setAttribute("aria-labelledby", "description-heading");
// Clone and append heading and content
descriptionHeading.id = "description-heading";
aside.appendChild(descriptionHeading.cloneNode(true));
aside.appendChild(descriptionContent.cloneNode(true));
// Replace original elements with the new aside
const parent = descriptionHeading.parentNode;
parent.replaceChild(aside, descriptionHeading);
parent.removeChild(descriptionContent);
}
// === Add complementary role to the button container ===
const buttonContainer = document.querySelector('.d-none.d-lg-block');
if (buttonContainer) {
buttonContainer.setAttribute("role", "complementary");
buttonContainer.setAttribute("aria-label", "Access Walden University Database");
}
// === Add navigation role to the alpha-filter button group ===
const alphaFilter = document.querySelector('.btn-group[aria-label="Alpha-list to filter by first letter of database name"]');
if (alphaFilter) {
alphaFilter.setAttribute("role", "navigation");
}
// === Add region role to the main content container ===
const mainContent = document.querySelector('#s-lg-az-content');
if (mainContent) {
mainContent.setAttribute("role", "region");
}
// === Check URL and add roles to specific elements ===
if (window.location.href.includes("academicguides.waldenu.edu/az/")) {
const publicHeader = document.querySelector('#s-lib-public-header');
const headerTitle = document.querySelector('#s-lib-public-header-title');
if (publicHeader) {
publicHeader.setAttribute("role", "region");
// Add aria-labelledby if the title element exists
if (headerTitle) {
publicHeader.setAttribute("aria-labelledby", "s-lib-public-header-title");
}
}
const publicMain = document.querySelector('#s-lib-public-main');
if (publicMain) {
publicMain.setAttribute("role", "main");
}
}
// === Remove aria-labelledby from specific custom boxes ===
const boxIds = [
"s-lg-az-custom-box-34276466-body",
"s-lg-az-custom-box-34276551-body",
"s-lg-az-custom-box-34276507-body"
];
boxIds.forEach(id => {
const element = document.getElementById(id);
if (element) {
element.removeAttribute("aria-labelledby");
}
});
});