Skip to content
This repository was archived by the owner on Mar 8, 2018. It is now read-only.

[WIP] Per field sourcing#727

Open
chrismytton wants to merge 29 commits intomasterfrom
26-per-field-sourcing
Open

[WIP] Per field sourcing#727
chrismytton wants to merge 29 commits intomasterfrom
26-per-field-sourcing

Conversation

@chrismytton
Copy link
Member

⚠️ In progress

Fixes #26

@chrismytton chrismytton changed the title [WIP per field sourcing [WIP] per field sourcing Jan 26, 2015
@chrismytton chrismytton changed the title [WIP] per field sourcing [WIP] Per field sourcing Jan 26, 2015
@chrismytton
Copy link
Member Author

Still to do:

  • Make this work correctly with multiple languages
  • Figure out what's going on when you put quotes in the other_names field
  • Make it look pretty

@chrismytton chrismytton force-pushed the 26-per-field-sourcing branch from 8c62e3f to bb0df16 Compare January 26, 2015 16:05
@chrismytton chrismytton force-pushed the 26-per-field-sourcing branch from e6ddddd to d2c502c Compare February 5, 2015 17:35
@wrightmartin
Copy link
Contributor

@chrismytton do you want me to design in a new branch from here?

@chrismytton chrismytton force-pushed the 26-per-field-sourcing branch from d2c502c to c5e15f2 Compare March 2, 2015 11:52
@chrismytton chrismytton force-pushed the 26-per-field-sourcing branch from 2b392d4 to 27991f0 Compare March 10, 2015 10:46
chrismytton and others added 22 commits March 10, 2015 16:35
The per-field sourcing feature is opt-in so we want it to be disabled by
default.
At some point in the recent past, we switched from having read-mode
and edit-mode elements next to each other, interspersed around the
page, to having all the edit-mode elements in a separate template
and collected at the end of the page, away from the read-mode ones.

But many of the old read-mode and edit-mode elements were left in
the templates, despite never actually being shown to users.

This commit removes all the ones I could find. There might be more,
but it's a start.
By separating the "Show source" button from the source "display" popup,
we get more flexibilty over how the items are nested, which will come
in useful for the crazy floating in the person/organization header.

Separating the two elements requires the passing of some shared ID,
so the JavaScript knows which buttons and popups to wire together.

I wonder whether we could use the "field" attribute already passed
to display-editing.html, instead of generating our own separate
"sourceID" attribute?
@chrismytton chrismytton force-pushed the 26-per-field-sourcing branch from 27991f0 to c7efd08 Compare March 10, 2015 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for attribution of all data (per-field sourcing)

3 participants