AdaptiveDB front-end
I have Martin's ADB set up with all data now accessible and editable. I made a couple of changes to his code though.
in js/gui.js I changed the style info:
function highlightRow(sender){ if (lastHighlightedRow != null){ lastHighlightedRow.style.backgroundColor = ''; } sender.style.backgroundColor = '#e0e0ff'; lastHighlightedRow = sender; }
to:
function highlightRow(sender){ if (lastHighlightedRow != null){ lastHighlightedRow.style.backgroundColor = ''; } sender.style.backgroundColor = '#8894AA'; sender.style.color = '#FFFFFF'; sender.style.fontWeight = 'bold'; lastHighlightedRow = sender; }
and in db/db_recordlist.php I adjusted how the "Action" table cell was formatted by moving the
from after the first button to after the word "Action"
The stylesheet has also been modified.
I'm going to try to make it easy on editors by offering two "views" of certain data such that, say, viewing the Event/Character data only shows one instance of an event, with a list of associated characters. To add a citation, editors will need to go to a different tab and add citations to each event-character relationship. In the latter case, each event will show up once for each character associated with it, along with a citation.