Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge of typesetting plugin to core #4543

Open
wants to merge 335 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
335 commits
Select commit Hold shift + click to select a range
5e9daea
changed completed branch to match others.
ajrbyers Mar 12, 2020
14c940c
Split typesetter block into three blocks.
ajrbyers Mar 12, 2020
dd34d55
Cancel and reset now add log entries.
ajrbyers Mar 13, 2020
e1d6512
Assigning a proofreader adds an explicit log entry
ajrbyers Mar 13, 2020
166d222
Merge pull request #16 from BirkbeckCTP/feature-decision_form
ajrbyers Mar 14, 2020
30e2069
Adding Proofing to new round checks/methods.
ajrbyers Mar 14, 2020
68ecca7
Merge pull request #17 from BirkbeckCTP/feature-cancel_proofing
mauromsl Mar 16, 2020
2f3c804
#18: New round cancels^Cypesetting assignments
mauromsl Mar 16, 2020
9b5104e
#18: Fix typo
mauromsl Mar 16, 2020
4fad20b
Merge pull request #25 from BirkbeckCTP/18-Bigfix
ajrbyers Mar 16, 2020
699e912
Adds missing migration
mauromsl Mar 16, 2020
082d05a
Proofreaders can be assigned without typesetters. Closes #21
ajrbyers Mar 15, 2020
5434bd8
Updated wording.
ajrbyers Mar 16, 2020
282035c
Added some pep8 fixes
ajrbyers Mar 17, 2020
f59540f
Closes #23
ajrbyers Mar 17, 2020
fd2d92f
Adds row hook for conversion plugins
mauromsl Mar 18, 2020
52b95f3
Updated handshake urls. Getting closer to 0.1!
ajrbyers Apr 1, 2020
6dba03f
Fixes jump and handshake urls.
ajrbyers Apr 3, 2020
afeaf36
Completes work on feature-hooks.
ajrbyers Apr 15, 2020
1d600d8
Adds support for typesetting corrections
mauromsl Apr 16, 2020
cc2a814
Add validation to AssignTypesetter files
mauromsl Apr 16, 2020
9c36a5e
Feature emails (#29)
ajrbyers Apr 20, 2020
44db3dd
Completing a task marks it as accepted.
ajrbyers Apr 21, 2020
0b5387c
Added check to see if there is an existing accepted date.
ajrbyers Apr 22, 2020
b2165c7
Corrections should not be a required form element
mauromsl Apr 28, 2020
6ca75f4
Added a migration to updated any old typesetting handshake urls
ajrbyers Apr 28, 2020
163f68f
#39: bugfix
ajrbyers Apr 28, 2020
876775f
Updated dashboard block.
ajrbyers Apr 29, 2020
f9635a8
#36 for comments
ajrbyers Apr 29, 2020
992418d
Fixed permission on proofreader list.
ajrbyers Apr 29, 2020
07202e7
Adds editors to the list of potential proofreders
ajrbyers Apr 29, 2020
64b01e8
Closes #46
ajrbyers Apr 29, 2020
877df06
Fixes a typo
mauromsl Apr 29, 2020
f9caf40
50 fixes action page logic and expands a row in typesetting review.
ajrbyers Apr 30, 2020
f3feb69
Added completed lists to Typesetter and Proofreader lists.
ajrbyers Apr 30, 2020
c135dd3
#51 hide actions for all old rounds
ajrbyers Apr 30, 2020
bd9b094
#55 updates typesetting template.
ajrbyers Apr 30, 2020
48bf96a
#60: Fix callabale not being called
mauromsl Apr 30, 2020
4b8b0a3
#62 Editing proofing assignment now uses jqte boxes.
ajrbyers May 1, 2020
4cf8e62
#48 decouples save_galley from production logic so we can have a sing…
ajrbyers May 1, 2020
09cca30
Added message for missing galley file
ajrbyers May 1, 2020
e6505b5
Removed save_galley and revert to using production save_galley.
ajrbyers May 1, 2020
bb09180
Added article pks to kanban card titles
ajrbyers May 1, 2020
eb16fb9
#63 adds links to send unsent notifications
ajrbyers May 1, 2020
7e9c4eb
Fixes a minor logic issue on the actions section
ajrbyers May 4, 2020
b182dcf
67 assign typesetter now filters out uncompleted proofing tasks.
ajrbyers May 4, 2020
0e080f1
Completed previous
ajrbyers May 4, 2020
2cd9d01
Switched to plugin decorator.
ajrbyers May 4, 2020
63cf08f
64 adds counts to dashboard.
ajrbyers May 4, 2020
91d20f0
Adds our own permission stuff in the plugin.
ajrbyers May 5, 2020
503fd51
Added a new delete file view
ajrbyers May 6, 2020
994a70f
Use .delete() counter
ajrbyers May 14, 2020
ba9f761
Removed print statement
ajrbyers May 14, 2020
9e75cf6
Added some tests!
ajrbyers May 14, 2020
c96f512
Removed print statement
ajrbyers May 14, 2020
89b0ca6
pep8 yay
ajrbyers May 14, 2020
8081771
Made changes as discussed inn #77
ajrbyers May 15, 2020
9aa2a8f
Removed print
ajrbyers May 15, 2020
7f90c14
Added redirect when file check is anon
ajrbyers May 15, 2020
17d2db7
Fix permissions for create galley
mauromsl May 15, 2020
2eff542
#80 changed the word Galley for Typeset files where applicable.
ajrbyers Jul 10, 2020
3e49d08
#81 changes closed for completed
ajrbyers Jul 10, 2020
ee398fe
#81 changes wording on assign typesetter page.
ajrbyers Jul 10, 2020
92a1a44
#81 tweaked help
ajrbyers Jul 10, 2020
088d4fa
#81 changed new typesetting file modal wording.
ajrbyers Jul 10, 2020
9e1adb0
#81 Updated tranform modal.
ajrbyers Jul 10, 2020
8ec7979
#81 added statement under Current Typeset Files.
ajrbyers Jul 10, 2020
43c0f31
#81 added missing full stops.
ajrbyers Jul 10, 2020
ea7cec5
#81 Updated add new round modal.
ajrbyers Jul 10, 2020
175c9ba
#82 updated the Assign a Typesetter page.
ajrbyers Jul 10, 2020
22157fe
Changes based on review from @rhb123.
ajrbyers Jul 10, 2020
f9b4245
#83 Changed section 1 info and added an enrolment button.
ajrbyers Jul 13, 2020
34361e9
#83 altered GalleyProofing.task help text.
ajrbyers Jul 13, 2020
fa815d7
#83 updated typesetting_notify_typesetter email.
ajrbyers Jul 13, 2020
92c8370
#83 removed jqte - its not really needed her anyway. Fixes Proofing T…
ajrbyers Jul 13, 2020
7241ea8
#83 moved error block to top of the page.
ajrbyers Jul 13, 2020
cdc70d2
Merge remote-tracking branch 'origin/master' into 57-production_manag…
mauromsl Jul 13, 2020
a2f06c4
#57: Avoids cross-journal URL forgery for file access
mauromsl Jul 13, 2020
63ec19f
#57: Minor change
mauromsl Jul 13, 2020
e60fa0c
Merge pull request #76 from BirkbeckCTP/57-production_manager_perms
mauromsl Jul 13, 2020
800001d
#85 changes made to text as recommended
ajrbyers Jul 28, 2020
a803756
#95 added subject emails.
ajrbyers Jul 30, 2020
56a686c
#57: Fixes wrong url in template
mauromsl Jul 30, 2020
e0728f6
Merge pull request #104 from BirkbeckCTP/95-email_subjects
mauromsl Jul 31, 2020
f3b00c3
Merge pull request #96 from BirkbeckCTP/85-update
mauromsl Jul 31, 2020
83cff22
#86 re-ordered the dashboard buttons.
ajrbyers Jul 28, 2020
6e6b013
#89 made changes to action button logic.
ajrbyers Jul 29, 2020
89a5ccd
#98 fixes role counter for typesetter.
ajrbyers Jul 28, 2020
8ffc179
#84 added onclick confirm when deleting a typesetting assignment
ajrbyers Jul 13, 2020
c82d397
#84 added back button
ajrbyers Jul 13, 2020
6689566
#87 dates in ISO format and time hidden where not need.
ajrbyers Jul 28, 2020
439c74c
made time easier to read
ajrbyers Aug 1, 2020
528fa44
#88: Fix tasks cancellable after completion
mauromsl Aug 3, 2020
0bfe384
#88: Small rewording
mauromsl Aug 3, 2020
43c0f36
#88: Handle files on task complete
mauromsl Aug 3, 2020
54e8ad5
#91 Added hooks to display tasks on author page.
ajrbyers Jul 30, 2020
4c45484
Bump version v0.3
mauromsl Aug 3, 2020
98c53ea
Rewording of typesetting accept text
mauromsl Sep 9, 2020
5b8543b
Allows typesetter to use new preview system
mauromsl Sep 9, 2020
6ff0ff0
Adds missing table header
mauromsl Sep 9, 2020
f53082f
Minor rewording
mauromsl Sep 9, 2020
61aab4b
Adds missing commas
mauromsl Sep 9, 2020
b8b0208
Bump version 1.0
mauromsl Sep 9, 2020
2fb9716
Updates settings.json for birkbeckctp/janeway#1953
ajrbyers Jan 20, 2021
fc604c5
Adds email URLs to templates for 1.3.9
mauromsl Jan 21, 2021
80d5f89
Updated JSON
mauromsl Jan 21, 2021
d7dc82e
Adds link to typesetting task completed email
mauromsl Jan 21, 2021
9029353
Adds migration for d7dc82ea6a0bebe4d0418427d37aa5b4cc137c39
mauromsl Jan 21, 2021
7c46c69
Merge branch 'master' into fix-emails
mauromsl Jan 21, 2021
283ccc3
Alert typesetter of missing images
mauromsl Jan 21, 2021
2049c66
Make edit galley button more prominent
mauromsl Jan 21, 2021
0dff5bb
Add round number to typesetter dashboard
mauromsl Jan 21, 2021
b158aa9
Add warning about missing projected issue
mauromsl Jan 26, 2021
47efda9
Merge pull request #112 from BirkbeckCTP/fix-emails
ajrbyers Jan 26, 2021
f36b7cb
Merge pull request #113 from BirkbeckCTP/typesetter-improvements
ajrbyers Jan 26, 2021
7b0ac7b
Handle corrections where galley has been deleted
mauromsl Jan 26, 2021
d08221f
Add galley label to correction
mauromsl Jan 26, 2021
159bad5
Editors can make proofreading comments available to typesetters
mauromsl Jan 26, 2021
17e5f4f
typesetter can access proofs based on editor decission
mauromsl Jan 26, 2021
bbf7fab
Check typesettingassignment before cancelling it
mauromsl Feb 4, 2021
5c4b05d
Merge pull request #114 from BirkbeckCTP/typesetter-improvements
ajrbyers Feb 5, 2021
ca258ff
#117 merges migrations and fixes time-to-due messages.
ajrbyers Feb 5, 2021
c3e4ea4
#119: support image paths without '/figure'
mauromsl Feb 24, 2021
589ea31
Merge pull request #120 from BirkbeckCTP/119-Bugfix
ajrbyers Feb 24, 2021
0348886
Allow typesetters to upload source files
mauromsl Feb 26, 2021
4c6f063
Add source files to typesetting_article view
mauromsl Feb 26, 2021
3fea11f
Handle ZippedGalleyError
mauromsl Feb 26, 2021
b36f538
Fix some typos
mauromsl Feb 26, 2021
ada2c95
When Typesetting is added to a fresh 1.4 install 0012_auto_20210121_1…
Mar 8, 2021
987016d
Adds logic for sending supp files to crossref
mauromsl Mar 24, 2021
0f59e72
Add Supplementary file upload interface
mauromsl Apr 20, 2021
1d55170
Port crossref component logic from production
mauromsl Apr 20, 2021
f81bcf8
Adds view for minting supp file DOIs
mauromsl Apr 20, 2021
d597263
Adds supp file minting modal interface
mauromsl Apr 20, 2021
6e35fd2
Add supplementary files to typesetter interface
mauromsl Apr 20, 2021
ba56154
Form for selecting supp files from article documents
mauromsl Apr 20, 2021
a9ae598
Address review commetns
mauromsl Apr 23, 2021
4d059f4
Render the notes from the editor in the proofreader's view
mauromsl May 27, 2021
986b059
Handle assignments with no due date
mauromsl Jul 20, 2021
3927c26
Closes 1_4 updates
ajrbyers Jul 28, 2021
8fbae12
Remove erroneous print statement.
ajrbyers Aug 11, 2021
7d15f28
Updated the migrations.
ajrbyers Aug 25, 2021
3bda6a0
Adds a complete button for editors.
ajrbyers Aug 25, 2021
b57c260
Pass user arg through to complete.
ajrbyers Aug 25, 2021
2f906ff
Updated template sub titles to new format.
ajrbyers Jun 17, 2021
fd7983d
Fixes bug where you cannot view manage interface for a proofing assig…
ajrbyers Sep 3, 2021
8cdb3fa
Adds a management view
mauromsl Sep 9, 2021
1097fa4
When Typesetting is added to a fresh 1.4 install 0012_auto_20210121_1…
Mar 8, 2021
afac3b2
Closes 1_4 updates
ajrbyers Jul 28, 2021
aeec88b
Remove erroneous print statement.
ajrbyers Aug 11, 2021
dc5dcb7
Updated the migrations.
ajrbyers Aug 25, 2021
2da8c75
Merge pull request #139 from BirkbeckCTP/14-migration_update
mauromsl Sep 13, 2021
f378068
Bump ersion
mauromsl Sep 13, 2021
86492df
Allows typeset files to marked as not for public
ajrbyers Oct 4, 2021
3aabf71
#142 can_manage_file checks for staff and editor before worrying abou…
ajrbyers Oct 19, 2021
dfdacc5
Merge pull request #143 from BirkbeckCTP/142-bugfix
mauromsl Oct 19, 2021
2d6a08a
RC-5: Typesetters can now see images and download links for galleys.
ajrbyers Oct 20, 2021
eaa53a6
Fixed a typo in help_text
ajrbyers Nov 8, 2021
bf35c0d
Removed empty migration
ajrbyers Nov 8, 2021
304c4c0
Added figure/data files to the typesetter files pannel
ajrbyers Nov 30, 2021
38eb71f
Merge pull request #150 from BirkbeckCTP/typesetter_figures_bugfic
mauromsl Dec 1, 2021
48720ad
Remove random text
mauromsl Dec 1, 2021
80cfcfb
Adds tables_in_galley to the preview context
ajrbyers Feb 2, 2022
7a2b5c2
Address comment
ajrbyers Feb 2, 2022
affc5b4
Add installation instructions to run migrate and restart the webserve…
hardyoyo Mar 17, 2022
0113b57
Allow editing supplementary files labels
mauromsl Mar 17, 2022
a6a05d6
#2737 adds support for the core Archived stage.
ajrbyers Jun 16, 2022
8384d67
#162: Fix security redirects not working on path mode
mauromsl Jul 14, 2022
fd072f4
#158 swaps date_modified for last_modified
ajrbyers Jul 22, 2022
87ef0fc
#2753 Add to proofreading assignment completion
joemull Jun 21, 2022
16de5f8
#2753 Fix typo
joemull Jun 22, 2022
3563ad0
#164 Fixes a bug that caused authors to have permission denied when t…
joemull Jul 19, 2022
75ab52c
BirkbeckCTP/janeway#2753 Rewrite view logic as elements on inherited …
joemull Jul 19, 2022
409c8be
Light copyedits
joemull Aug 3, 2022
42cbdfd
BirkbeckCTP/janeway#2822 Warn editors of inactive typesetter or proof…
joemull Aug 3, 2022
97c2e1f
Merge pull request #165 from BirkbeckCTP/158-date_modified_to_last_mo…
joemull Sep 9, 2022
3f581a9
#2737 moves filtering to a manager.
ajrbyers Sep 13, 2022
6476b32
WIP
ajrbyers Sep 14, 2022
a986a25
Merge branch 'master' into 2737-archive_button
ajrbyers Oct 4, 2022
80f74cc
Merge branch '2737-archive_button' of github.com:BirkbeckCTP/typesett…
ajrbyers Oct 4, 2022
4405f26
Removed unused import
ajrbyers Oct 4, 2022
efd2d18
Merge pull request #159 from BirkbeckCTP/2737-archive_button
ajrbyers Oct 4, 2022
46f3a5b
Bump version and compatible version
ajrbyers Oct 4, 2022
7b462f8
Brings typesetting up to base of Django 3.2
ajrbyers Nov 17, 2022
bfadf8c
#176 Brush up typesetting admin views
joemull Dec 9, 2022
e749895
#176 Only use date_hierarchy if model has one date field
joemull Jan 11, 2023
86e325b
#176 Clean up fields and methods after browsing checks
joemull Jan 24, 2023
068804a
#176 Use Django's built-in truncation filters
joemull Feb 28, 2023
9a9eae4
#175 updated can_preview_typesetting_article
ajrbyers Mar 27, 2023
321ecde
Merge branch 'master' into django_three_two
mauromsl Mar 27, 2023
5d8edd8
Merge pull request #183 from BirkbeckCTP/django_three_two
mauromsl Mar 27, 2023
fc6dafb
Bumps Janeway minimum version to 1.5.0
mauromsl Mar 27, 2023
73fc85b
Fix bug that caused erroneous warning about no projected issue #171
joemull May 2, 2023
1e2dbb2
Merge pull request #187 from BirkbeckCTP/171-bugfix-no-projected-issue
joemull May 19, 2023
a3e67bb
Catch all assigned issues rather than relying on primary_issue Birkbe…
joemull May 22, 2023
b3e33ae
#148 Test whether proofing metadata matches published metadata
joemull Mar 30, 2023
7b89f27
Use IDs rather than classes to build comparison documents BirkbeckCTP…
joemull May 19, 2023
70e8c59
birkbeckctp/janeway#3486 component DOI minting now using the same tim…
ajrbyers Sep 22, 2023
682a9f9
Clarified open v closed
S-Haime Dec 19, 2023
83f65fe
#198 adds a better fix for this issue.
ajrbyers Jan 31, 2024
0d2e8b8
birkbeckctp/janeway#3979 adds changes required to the typesetting plu…
ajrbyers Feb 22, 2024
4b0a407
Merge pull request #204 from BirkbeckCTP/3979_change
joemull Mar 4, 2024
5540fcb
#198 updated header for complete/cancelled typesetting assignments
ajrbyers Mar 14, 2024
913efa4
Adds missing migration for GalleyProofing.manager
joemull Mar 15, 2024
655bdbf
Remove migration.
ajrbyers Mar 15, 2024
19e4fcb
Merge pull request #205 from BirkbeckCTP/missing-migration-galley-pro…
joemull Mar 15, 2024
7fa087a
Bumps plugin version to 1.4 and minimum Janeway version to 1.5.1
joemull Mar 15, 2024
6df768c
#129 display which figure/data files a typesetter will see and clear …
ajrbyers Dec 15, 2023
3c767ba
Fixes typo
ajrbyers Mar 14, 2024
fb0dc09
#179 added last mod dates to files in typesetter view.
ajrbyers Dec 15, 2023
1365706
Merge pull request #195 from BirkbeckCTP/3486-bugfix
joemull Mar 19, 2024
eea5710
Remove erroneously uploaded file.
ajrbyers Apr 2, 2024
397672a
Updated variable name.
ajrbyers Apr 2, 2024
e29585f
Merge pull request #203 from BirkbeckCTP/198-bugfix-better
StephDriver Apr 4, 2024
b0ee7a2
#4146: Migration that fixes galleys and metrics with no type
mauromsl Apr 30, 2024
378506b
Bump version and JANEWAY_VERSION
mauromsl Apr 30, 2024
eb47926
Compatibility changes for django 4.2
mauromsl Jun 4, 2024
1d7aab0
Bump version 1.6
mauromsl Jun 4, 2024
3551ae1
Email subjects should have char type BirkbeckCTP/janeway#4258
joemull Jun 12, 2024
61c90ec
Use article.safe_title in emails BirkbeckCTP/janeway#4258
joemull Jun 12, 2024
b641acb
Use article.safe_title in workflow page subtitle BirkbeckCTP/janeway#…
joemull Jun 12, 2024
8212175
Implement bleach in typesetting models #166
joemull Jul 17, 2024
70797e3
Upgrade forms for easier file management #166
joemull Jul 17, 2024
8f249fc
Prevent duplicate Request Corrections button #166
joemull Jul 17, 2024
22a0cca
Touch up galleys table #166
joemull Jul 17, 2024
85842fd
Touch up proofreader table #166
joemull Jul 17, 2024
81bbecc
Fix float bug on several upload buttons #166
joemull Jul 17, 2024
35c278d
Pre-select the typesetter if they are the only choice #166
joemull Jul 17, 2024
0b9c4de
Use TinyMCE on proofreader's form #166
joemull Jul 17, 2024
5330c94
Fix typo in edit form #166
joemull Jul 17, 2024
e51463b
Overhaul file management in TS assignments #166
joemull Jul 17, 2024
b455e34
Remove block as suggested in review #166
joemull Jul 24, 2024
48901f3
Auto-select files for existing assignments #166
joemull Jul 24, 2024
247a4ed
Pre-check data and figure files #166
joemull Jul 26, 2024
607aca4
Prevent duplicates in galley list #166
joemull Aug 19, 2024
7a2e29b
Add skip link to metadata for typesetter #166
joemull Aug 19, 2024
f1cf50c
Display typesetting guide to editor and update UI copy #31
joemull Sep 23, 2024
c17433c
Display typesetting guide to typesetter #31
joemull Sep 23, 2024
1137d66
Bump Janeway min version
mauromsl Sep 26, 2024
b191757
Display the typesetting task on the review page.
ajrbyers Sep 4, 2024
f10f0df
#217 alters layout and adds files table
ajrbyers Sep 26, 2024
26da887
#217 make phrasing the same
ajrbyers Sep 27, 2024
b1a2911
#217 adds galley files to display
ajrbyers Sep 27, 2024
7fd3c7a
fix: ensure processed_value is used for timestamp suffix (#223)
ajrbyers Nov 20, 2024
d2ec0ef
#4012 fixes gaps showing underlines
ajrbyers Oct 29, 2024
038db4d
Fix error with extends in account templates #4526
joemull Dec 5, 2024
a370183
Add 'src/typesetting/' from commit '7fd3c7aa61eac5b69588d286ffea51406…
ajrbyers Dec 6, 2024
7820b4d
Initial merge commit for typesetting.
ajrbyers Dec 19, 2024
e6c3ffa
fix: removes try/except import of typesetting plugin from document ma…
ajrbyers Dec 20, 2024
e77e897
chore: move typesetting event registration to core (#3277)
ajrbyers Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions src/core/include_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,32 @@
logger = get_logger(__name__)

urlpatterns = [
path('submit/', include('submission.urls')),
path('', include(journal_urls)),
path('review/', include('review.urls')),
path('metrics/', include('metrics.urls')),
path('identifiers/', include('identifiers.urls')),
path('production/', include('production.urls')),
path('proofing/', include('proofing.urls')),
path('api/', include('api.urls')),
path('api-auth/',
include('rest_framework.urls', namespace='rest_framework')),
path('cms/', include('cms.urls')),
path('transform/', include('transform.urls')),
path('copyediting/', include('copyediting.urls')),
path('rss/', include('rss.urls')),
path('feed/', include('rss.urls')),
path('cron/', include('cron.urls')),
path('install/', include('install.urls')),
path('discussion/', include('discussion.urls')),
path('feed/', include('rss.urls')),
path('i18n/', include('django.conf.urls.i18n')),
path('api/', include('api.urls')),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('identifiers/', include('identifiers.urls')),
path('install/', include('install.urls')),
path('metrics/', include('metrics.urls')),
path('news/', include('comms.urls')),
path('oidc/', include('mozilla_django_oidc.urls')),
path('production/', include('production.urls')),
path('proofing/', include('proofing.urls')),
path('reports/', include('reports.urls')),
path('repository/', include('repository.urls')),
path('review/', include('review.urls')),
path('rss/', include('rss.urls')),
path('submit/', include('submission.urls')),
path('transform/', include('transform.urls')),
path('typesetting/', include('typesetting.urls')),
path('utils/', include('utils.urls')),
path('workflow/', include('workflow.urls')),
path('discussion/', include('discussion.urls')),
path('oidc/', include('mozilla_django_oidc.urls')),

# Root Site URLS
re_path(r'^$', press_views.index, name='website_index'),
Expand Down
1 change: 1 addition & 0 deletions src/core/janeway_global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
'security',
'submission',
'transform',
'typesetting',
'utils',
'workflow',

Expand Down
15 changes: 5 additions & 10 deletions src/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,16 +1662,11 @@ class Meta:
'jump_url': 'article_copyediting',
'stage': submission_models.STAGE_EDITOR_COPYEDITING,
'article_url': True},
{'name': 'production',
'handshake_url': 'production_list',
'jump_url': 'production_article',
'stage': submission_models.STAGE_TYPESETTING,
'article_url': False},
{'name': 'proofing',
'handshake_url': 'proofing_list',
'jump_url': 'proofing_article',
'stage': submission_models.STAGE_PROOFING,
'article_url': False},
{'name': 'typesetting',
'handshake_url': 'typesetting_articles',
'jump_url': 'typesetting_article',
'stage': submission_models.STAGE_TYPESETTING_PLUGIN,
'article_url': True},
{'name': 'prepublication',
'handshake_url': 'publish',
'jump_url': 'publish_article',
Expand Down
12 changes: 12 additions & 0 deletions src/events/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,18 @@ class Events:
# raised when a user access request is evaluated by staff.
ON_ACCESS_REQUEST_COMPLETE = 'on_access_request_complete'

# Typesetting Events
ON_TYPESETTING_COMPLETE = "on_typesetting_complete"
ON_TYPESETTING_ASSIGN_NOTIFICATION = "on_typesetting_assign_notification"
ON_TYPESETTING_ASSIGN_DECISION = "on_typesetting_assign_decision"
ON_TYPESETTING_ASSIGN_CANCELLED = "on_typesetting_assign_cancelled"
ON_TYPESETTING_ASSIGN_DELETED = "on_typesetting_assign_deleted"
ON_TYPESETTING_ASSIGN_COMPLETE = "on_typesetting_assign_complete"
ON_PROOFREADER_ASSIGN_NOTIFICATION = "on_proofreader_assign_notification"
ON_PROOFREADER_ASSIGN_CANCELLED = "on_proofreader_assign_cancelled"
ON_PROOFREADER_ASSIGN_RESET = "on_proofreader_assign_reset"
ON_PROOFREADER_ASSIGN_COMPLETE = "on_proofreader_assign_complete"

DEPRECATED_EVENTS = {
ON_AUTHOR_PUBLICATION,
}
Expand Down
65 changes: 60 additions & 5 deletions src/events/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
from events import logic as event_logic
from journal import logic as journal_logic
from identifiers import logic as id_logic
from typesetting.notifications import emails

# wire up event notifications

from events import logic as event_logic # We always import this as event_logic

# Submission
event_logic.Events.register_for_event(event_logic.Events.ON_ARTICLE_SUBMITTED,
transactional_emails.send_submission_acknowledgement,
Expand Down Expand Up @@ -187,10 +185,67 @@
event_logic.Events.register_for_event(event_logic.Events.ON_WORKFLOW_ELEMENT_COMPLETE,
workflow.workflow_element_complete)


# Typesetting Events

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_ASSIGN_NOTIFICATION,
emails.send_typesetting_assign_notification,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_ASSIGN_DECISION,
emails.send_typesetting_assign_decision,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_ASSIGN_CANCELLED,
emails.send_typesetting_assign_cancelled,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_ASSIGN_DELETED,
emails.send_typesetting_assign_deleted,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_ASSIGN_COMPLETE,
emails.send_typesetting_assign_complete,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_PROOFREADER_ASSIGN_NOTIFICATION,
emails.send_proofreader_assign_notification,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_PROOFREADER_ASSIGN_CANCELLED,
emails.send_proofreader_assign_transaction_email,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_PROOFREADER_ASSIGN_RESET,
emails.send_proofreader_assign_transaction_email,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_PROOFREADER_ASSIGN_COMPLETE,
emails.send_proofreader_assign_transaction_email,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_TYPESETTING_COMPLETE,
emails.send_typesetting_complete,
)

# wire up the core task destroyer
# N.B. this is critical to the operation of the task framework. It automatically tears down tasks that have registered
# N.B. this is critical to the operation of the task framework.
# It automatically tears down tasks that have registered
# for event listeners
event_logic.Events.register_for_event('destroy_tasks', core_models.Task.destroyer)
event_logic.Events.register_for_event(
'destroy_tasks',
core_models.Task.destroyer,
)

event_logic.Events.register_for_event(
event_logic.Events.ON_ARTICLE_ASSIGNED_TO_ISSUE,
Expand Down
59 changes: 25 additions & 34 deletions src/journal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
)
from identifiers import models as id_models
from journal import logic, models, issue_forms, forms, decorators
from journal.logic import get_best_galley, get_galley_content
from journal.logic import get_best_galley
from metrics.logic import store_article_access
from review import forms as review_forms, models as review_models
from submission import encoding
Expand All @@ -61,7 +61,7 @@
from utils import models as utils_models, shared, setting_handler
from utils.logger import get_logger
from events import logic as event_logic
from repository import models as repo_models
from typesetting import models as typesetting_models

logger = get_logger(__name__)

Expand Down Expand Up @@ -2517,46 +2517,37 @@ def document_management(request, article_id):
)

if 'proofing' in request.POST:
from core import files as core_files
file = request.FILES.get('proofing-file')
new_file = core_files.save_file_to_article(
new_file = files.save_file_to_article(
file,
document_article,
request.user,
label=label,
)
try:
typesetting_models = import_module('plugins.typesetting.models')
rounds = typesetting_models.TypesettingRound.objects.filter(
rounds = typesetting_models.TypesettingRound.objects.filter(
article=document_article,
)
if rounds:
current_round = rounds.first()
else:
current_round = typesetting_models.TypesettingRound.objects.create(
article=document_article,
)
if rounds:
current_round = rounds.first()
else:
current_round = typesetting_models.TypesettingRound.objects.create(
article=document_article,
)
request.user.add_account_role('proofreader', request.journal)
proofing = typesetting_models.GalleyProofing.objects.create(
round=current_round,
manager=request.user,
proofreader=request.user,
due=timezone.now(),
accepted=timezone.now(),
completed=timezone.now(),
)
proofing.annotated_files.add(new_file)
messages.add_message(
request,
messages.SUCCESS,
_('Proofing file uploaded.'),
)
except ModuleNotFoundError:
messages.add_message(
request,
messages.SUCCESS,
_('Saved file.'),
)
request.user.add_account_role('proofreader', request.journal)
proofing = typesetting_models.GalleyProofing.objects.create(
round=current_round,
manager=request.user,
proofreader=request.user,
due=timezone.now(),
accepted=timezone.now(),
completed=timezone.now(),
)
proofing.annotated_files.add(new_file)
messages.add_message(
request,
messages.SUCCESS,
_('Proofing file uploaded.'),
)

if 'supp' in request.POST:
from production import logic as prod_logic
Expand Down
Binary file removed src/static/common/img/icons/orcid.gif
Binary file not shown.
Binary file added src/static/common/img/icons/orcid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/submission/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def get_jats_article_types():
STAGE_AUTHOR_COPYEDITING = 'Author Copyediting'
STAGE_FINAL_COPYEDITING = 'Final Copyediting'
STAGE_TYPESETTING = 'Typesetting'
STAGE_TYPESETTING_PLUGIN = 'typesetting_plugin'
STAGE_PROOFING = 'Proofing'
STAGE_READY_FOR_PUBLICATION = 'pre_publication'
STAGE_PUBLISHED = 'Published'
Expand Down Expand Up @@ -302,6 +303,7 @@ def get_jats_article_types():
(STAGE_AUTHOR_COPYEDITING, 'Author Copyediting'),
(STAGE_FINAL_COPYEDITING, 'Final Copyediting'),
(STAGE_TYPESETTING, 'Typesetting'),
(STAGE_TYPESETTING_PLUGIN, 'typesetting_plugin'),
(STAGE_PROOFING, 'Proofing'),
(STAGE_READY_FOR_PUBLICATION, 'Pre Publication'),
(STAGE_PUBLISHED, 'Published'),
Expand Down
2 changes: 2 additions & 0 deletions src/templates/admin/core/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ <h2>Proofing Corrections</h2>
</div>
{% endif %}

{% include "typesetting/elements/dashboard.html" %}

{% for element in request.journal.workflow_plugin_elements %}
{% if element.settings.dashboard_template %}
{% include element.settings.dashboard_template %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/common/elements/orcid_registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if orcid %}
<p>
ORCiD
<a href="{{ orcid }}"><img alt="ORCID logo" src="{% static 'common/img/icons/orcid.gif' %}"> {{ orcid }}</a>&nbsp;
<a href="{{ orcid }}"><img alt="ORCID logo" src="{% static 'common/img/icons/orcid.png' %}"> {{ orcid }}</a>&nbsp;
[<a href="{% url 'core_register' %}">remove</a>]
</p>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load foundation %}
{% load i18n %}

Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/core/accounts/edit_profile.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load i18n %}

{% block title %}{% trans "Edit Profile" %}{% endblock title %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load i18n foundation %}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load foundation %}
{% load i18n %}

Expand Down
4 changes: 0 additions & 4 deletions src/themes/OLH/templates/core/accounts/public_profile.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load static %}
{% load i18n %}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/core/accounts/register.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load foundation %}
{% load i18n %}

Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/core/accounts/reset_password.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "core/base.html" %}
{% comment %}
This template is deprecated. Account pages are now part of the back-office.
{% endcomment %}

{% extends "core/base.html" %}
{% load foundation %}
{% load i18n %}

Expand Down
Loading