A Drupal-based framework for discovering and exploring data storage resources at the University of Virginia Library.
This is a main application repository that integrates multiple components:
- Main Drupal Application: This repository (
uvalib/drupal-dsf
) contains the Drupal site configuration, themes, and overall application structure - Finder Module: The core finder functionality is maintained in a separate repository (
uvalib/CD-finder-uva
) and pulled in as a Composer dependency - Theme: The custom Bootstrap theme (
uva_dsf_bs
) is also maintained separately
The finder module is automatically installed via Composer from:
- Repository:
https://github.com/uvalib/CD-finder-uva.git
- Installation Path:
web/modules/custom/finder/
- Composer Package:
uvalib/cd-finder-uva
The finder module is forked from the original Cornell University implementation and customized for UVA Library's needs.
This project uses a multi-repository architecture. When developing features that involve the finder module:
- Make changes in the finder module: Work directly in
web/modules/custom/finder/
(this is a git repository) - Create feature branches in both repositories: Maintain synchronized branches between
drupal-dsf
andcd-finder-uva
- Update composer dependencies: Reference the appropriate branch in
composer.json
# Example: Working with a feature branch
# 1. Create feature branch in finder module
cd web/modules/custom/finder
git checkout -b feature/my-new-feature
# 2. Make changes and commit
git add .
git commit -m "Add new feature"
git push origin feature/my-new-feature
# 3. Update composer.json in main repository to reference feature branch
cd ../../../..
# Edit composer.json: "uvalib/cd-finder-uva": "dev-feature/my-new-feature"
composer update uvalib/cd-finder-uva
git clone [email protected]:uvalib/drupal-dsf.git
cd drupal-dsf
ddev start
./scripts/update-db-from-remote.sh
ddev drush cr
ddev launch
- DDEV
- Git
- Composer
This project uses DDEV for local development. DDEV provides a consistent development environment using Docker containers.
Getting an error that the Bootstrap theme isn't installed when accessing your local Drupal site? Then install composer required items:
composer install
The custom theme uva_dsf_bs
is located in web/themes/custom/uva_dsf_bs
. This theme is maintained in a separate GitHub repository and is included as a Composer dependency.
Theme development should be done in the theme's own repository at:
- Theme repository: uvalib/uva_dsf_bs
Any theme changes should be committed and pushed to the theme repository, not to this project directly.
- Finder Module Documentation - Detailed setup and configuration guide
- Drupal Documentation
- DDEV Documentation