Commit Graph

8508 Commits

Author SHA1 Message Date
Tim Donohue
bee893dd12 Merge pull request #2063 from CrisGuzmanS/issue/1190-1
aria-selected added to Item Edit "Status" Tab. Fixed ID: 470076
2023-02-07 16:56:41 -06:00
Tim Donohue
b87ea9a875 Merge pull request #1972 from the-library-code/TLC-380_browse_links_in_item_pages_PR
Browse links and "by regex" links in item display (Angular)
2023-02-07 14:18:44 -06:00
Nathan Buckingham
9435f1c4a7 Add done() to async tests 2023-02-07 13:59:57 -05:00
Tim Donohue
c099bc468d Add "debug" config and "allowStale" configs 2023-02-07 12:22:32 -06:00
Nathan Buckingham
369ffac39e Merge branch 'main' into w2p-99039_XSRFTokenGetRequest 2023-02-07 11:59:46 -05:00
Nathan Buckingham
ce6324a569 Fix lint and test issues 2023-02-07 11:50:42 -05:00
Yury Bondarenko
88cb397dc9 Fix direct CSR
By moving from environment.ts to config.yml we made it so the environment is _not_ up to date with the server configuration when main.js is first loaded.
Because of this the app behaved as if CSR always happened _after_ SSR, effectively breaking direct CSR.

Here the "criterion" for SSR/non-SSR HTML is changed from the related configuration property to the presence of Angular Universal transfer state.

This means we can correctly determine when to bootstrap the app for direct CSR, and it's' now "safe" to just send index.html by itself.
2023-02-07 15:25:20 +01:00
Art Lowel
06de559974 Retrieve the XSRF token first, and set it as both the XSRF header and cookie 2023-02-07 14:49:22 +01:00
Alexandre Vryghem
9deb7cbb60 Merge remote-tracking branch 'atmire/w2p-98211_advanced-workflow-actions-7.2' into w2p-98211_advanced-workflow-actions-main
# Conflicts:
#	src/app/my-dspace-page/my-dspace-search.module.ts
#	src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.html
#	src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-approved-search-result/claimed-approved-search-result-list-element.component.html
#	src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-approved-search-result/claimed-approved-search-result-list-element.component.spec.ts
#	src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-declined-search-result/claimed-declined-search-result-list-element.component.html
#	src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-declined-search-result/claimed-declined-search-result-list-element.component.spec.ts
2023-02-07 10:33:28 +01:00
Kim Shepherd
129342435f [TLC-249] Further test fixes 2023-02-07 17:48:06 +13:00
Kim Shepherd
8346232444 [TLC-249] Fix import typo (from merge conflict) 2023-02-07 17:22:59 +13:00
Kim Shepherd
08096e6829 [TLC-249] Lint 2023-02-07 17:12:02 +13:00
Kim Shepherd
76407866c0 [TLC-249] Update item status button logic to avoid nested subs 2023-02-07 17:05:21 +13:00
Kim Shepherd
e65bb88e23 [TLC-249] Attempting art's sub fix (doesn't work) 2023-02-07 17:05:21 +13:00
Kim Shepherd
639fe69c5f [TLC-380] Refactor to use new endpoints, better naming 2023-02-07 17:05:21 +13:00
Kim Shepherd
0a69560a8c [TLC-380] Refactor to use new endpoints, better naming 2023-02-07 17:05:21 +13:00
Kim Shepherd
e86f0d3d13 [TLC-380] WIP trying new routing / create flow 2023-02-07 17:05:21 +13:00
Kim Shepherd
ce84c3fe36 [TLC-380] Renaming, changes as per review feedback 2023-02-07 17:05:20 +13:00
Kim Shepherd
b779509bf0 [TLC-249] Identifier mock data updated in unit test 2023-02-07 17:03:49 +13:00
Kim Shepherd
b5c6e7f1b7 [TLC-249] Identifier mock data updated in unit test 2023-02-07 17:03:49 +13:00
Kim Shepherd
9471aa9897 [TLC-249] Update en.json5 with DOI status labels 2023-02-07 17:03:49 +13:00
Kim Shepherd
d6f458863f [TLC-249] Improve model of identifier data in workspace section 2023-02-07 17:03:49 +13:00
Kim Shepherd
39fb61ca85 [TLC-249] Lint fixes (imports, quotes) 2023-02-07 17:03:49 +13:00
Kim Shepherd
52a3776027 [TLC-249] Addressing review feedback #2
Update WorkspaceitemSectionIdentifiersObject model to include a
display types string array, so identifier types can be included or excluded
from the step as needed.

Update section template to work with the above new data

As per todonohue's feedback on 2022-01-18
2023-02-07 17:03:49 +13:00
Kim Shepherd
838cde4841 [TLC-249] Addressing review feedback
Adding comments and tidying some comments, imports
Expect text for status not integer
Send a 'type' parameter with a DOI registration
Rename item-status.register to registerDOI

As per todonohue's feedback on 2022-01-18
2023-02-07 17:03:49 +13:00
Kim Shepherd
d0b5fc257a [TLC-249] Update spec test for new config form data service 2023-02-07 17:03:49 +13:00
Kim Shepherd
21c9ef4ea2 [TLC-249] Ensure identifier data model mapped to type 2023-02-07 17:03:48 +13:00
Kim Shepherd
7795f92234 [TLC-249] Update data service usage since rebasing 2023-02-07 17:03:48 +13:00
Kim Shepherd
ed5ab710a3 [TLC-249] Update data service usage since rebasing 2023-02-07 17:03:48 +13:00
Kim Shepherd
8d70e1788b [TLC-249] Lint fixes 2023-02-07 17:03:48 +13:00
Kim Shepherd
e0c0d3c8e0 [TLC-337] Unit tests for register DOI component 2023-02-07 17:03:48 +13:00
Kim Shepherd
87bbe50732 [TLC-249] Linting 2023-02-07 17:03:48 +13:00
Kim Shepherd
5f6e20eaa4 [TLC-249] Register DOI operation and button in item status page 2023-02-07 17:03:47 +13:00
Kim Shepherd
a7586ca07a [TLC-249] LGTM unused import fixes 2023-02-07 17:01:39 +13:00
Kim Shepherd
0ab12d5ab5 [TLC-249] Lint fixes 2023-02-07 17:01:39 +13:00
Kim Shepherd
16fbc8e339 [TLC-249] Remove CRIS7 visibility refs from component, i18n 2023-02-07 17:01:39 +13:00
Kim Shepherd
0082d71658 [TLC-249] Show Identifier Step angular 7.x 2023-02-07 17:01:39 +13:00
Kim Shepherd
e8a53da766 [TLC-380] Fix item page field test to supply router 2023-02-07 15:30:14 +13:00
Kim Shepherd
ca6f799ee5 [TLC-380] Lint fixes on spec test 2023-02-07 15:30:14 +13:00
Kim Shepherd
7934118823 [TLC-380] Template link fixes, spec test fixes
Correct use of routerLink and queryParams
Removed unused method from browse service, specs
New spec tests for MetadataRepresentationListElementComponent
2023-02-07 15:30:14 +13:00
Kim Shepherd
5aab1af5f7 [TLC-380] Lint fixes 2023-02-07 15:30:14 +13:00
Kim Shepherd
63af2e079c [TLC-380] Refactor metadata rep list comp after rebase 2023-02-07 15:30:14 +13:00
Kim Shepherd
d86e8ed0a8 [TLC-380] Template link, spec test, doc fixup as per review 2023-02-07 15:30:14 +13:00
Kim Shepherd
6883b8c782 [TLC-380] Lint fixes for mock browse def service 2023-02-07 15:30:14 +13:00
Kim Shepherd
72afd0cafd [TLC-380] Simplify / strip browse service from components 2023-02-07 15:30:14 +13:00
Kim Shepherd
bf9041f25f [TLC-380] Fix mock service to return proper payload 2023-02-07 15:30:14 +13:00
Kim Shepherd
6ead2f0a7d [TLC-249] Lint fixes 2023-02-07 15:30:14 +13:00
Kim Shepherd
58673ed9ab [TLC-249] Lint fixes 2023-02-07 15:30:14 +13:00
Kim Shepherd
bdda84f884 [TLC-249] Larger refactor to field, item components for browse links 2023-02-07 15:30:14 +13:00
Kim Shepherd
2b1b2ef4cb [TLC-249] Fix circular dependency in browse services 2023-02-07 15:30:14 +13:00