Skip to content

Commit

Permalink
[TGA-85] Remove article name field from AuthorApproval form
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Mar 19, 2024
1 parent 6a4a328 commit ef35d72
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 31 deletions.
1 change: 0 additions & 1 deletion client/extensions/tga-sign-off/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export interface IAuthorSignOffData {
sign_date: string;
version_signed: number;

article_name: string;
funding_source: string;
affiliation: string;
copyright_terms: string;
Expand Down
4 changes: 0 additions & 4 deletions server/templates/email_sign_off_copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
Thank you for authoring an article for 360info. We require you to agree to the following
terms and provide the information requested before we can publish your article.
</p>
<p>
<strong>Please add the name of the article</strong><br />
{{ form.article_name.data }}
</p>

<h2>About the article</h2>
<p>
Expand Down
3 changes: 0 additions & 3 deletions server/templates/email_sign_off_copy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ See below a copy of the answers you provided:
Thank you for authoring an article for 360info. We require you to agree to the following
terms and provide the information requested before we can publish your article.

*Please add the name of the article:*
{{ form.article_name.data }}

About the article
Please provide the following information regarding the above-mentioned article.
The information you provide may be published with the article.
Expand Down
2 changes: 1 addition & 1 deletion server/templates/sign_off_approval_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>An error occurred while processing your request.</h3>
function showModal() {
modalContainer.style.display = 'block';
setTimeout(() => {
document.getElementById('article_name').focus();
document.getElementById('funding_source').focus();
});
}
function hideModal() {
Expand Down
18 changes: 1 addition & 17 deletions server/templates/sign_off_approval_modal_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ <h2>Approval Details</h2>
terms and provide the information requested before we can publish your article.
</p>

<div class="form__row sd-margin-t--2">
<div class="sd-input sd-input--required">
<label class="sd-input__label">
Please add the name of the article
</label>
<div class="sd-input__input-container">
{{ form.article_name(
class="sd-input__input",
id="article_name",
required="true",
readonly=readonly
) }}
</div>
</div>
</div>

<h2>About the article</h2>
<p>
Please provide the following information regarding the above-mentioned article.
Expand Down Expand Up @@ -289,7 +273,7 @@ <h3>Author Consent</h3>
<div class="form__row sd-margin-t--2">
<div class="sd-input sd-input--required">
<label class="sd-input__label">
I agree to abide by these terms.
I agree to abide by these terms. (Please write your full name)
</label>
<div class="sd-input__input-container">
{{ form.consent_signature(
Expand Down
1 change: 0 additions & 1 deletion server/tga/sign_off/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class UserSignOffForm(FlaskForm):
version_signed = HiddenField("Item Version Signed")
sign_date = HiddenField("Signed Date")

article_name = StringField("Article Name", validators=[DataRequired()])
funding_source = StringField("Funding Source", validators=[DataRequired()])
affiliation = StringField("Affiliation", validators=[DataRequired()])
copyright_terms = StringField("Copyright Terms", validators=[DataRequired()])
Expand Down
1 change: 0 additions & 1 deletion server/tga/sign_off/sign_off_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def view_sign_off_request(item_id, user_id_str):
user_id=user_id_str,
version_signed=author_sign_off["version_signed"],
sign_date=author_sign_off["sign_date"],
article_name=author_sign_off["article_name"],
funding_source=author_sign_off["funding_source"],
affiliation=author_sign_off["affiliation"],
copyright_terms=author_sign_off["copyright_terms"],
Expand Down
2 changes: 0 additions & 2 deletions server/tga/sign_off/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def get_publish_sign_off_data(item: Dict[str, Any]) -> Optional[PublishSignOffDa
user_id=user_id,
sign_date=legacy_sign_off["sign_date"],
version_signed=item.get("version"),
article_name="",
funding_source=legacy_sign_off.get("funding_source"),
affiliation=legacy_sign_off.get("affiliation"),
copyright_terms="",
Expand Down Expand Up @@ -186,7 +185,6 @@ def update_item_publish_approval(item: Dict[str, Any], form: UserSignOffForm):
user_id=user_id,
sign_date=utcnow(),
version_signed=form.version_signed.data,
article_name=form.article_name.data,
funding_source=form.funding_source.data,
affiliation=form.affiliation.data,
copyright_terms=form.copyright_terms.data,
Expand Down
1 change: 0 additions & 1 deletion server/tga/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class AuthorSignOffData(TypedDict):
sign_date: datetime
version_signed: int

article_name: str
funding_source: str
affiliation: str
copyright_terms: str
Expand Down

0 comments on commit ef35d72

Please sign in to comment.