Skip to content

Commit be2a15d

Browse files
committed
Merge tag '25.15.1' into develop
Hotfix for disallowing submissions on OSF Preprint
2 parents b3c999e + 33b50da commit be2a15d

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [25.15.1] - 2025-08-21
8+
### Added
9+
- Modifications to prepare for disallowing submissions for OSF Preprint
10+
711
## [25.15.0] - 2025-08-15
812
### Added
913
- Fix search page result count

app/preprints/index/template.hbs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@
4848
</OsfLink>
4949
</div>
5050
</div>
51+
{{else}}
52+
{{#if (eq this.theme.id 'osf')}}
53+
<div local-class='submit-container'>
54+
<div local-class='or-container'>{{t 'preprints.header.or'}}</div>
55+
<OsfLink
56+
data-test-submit-button
57+
data-analytics-name='submit button'
58+
local-class='btn btn-success btn-lg'
59+
@route='preprints.select'
60+
>
61+
{{t 'preprints.header.submit_label' documentType=this.theme.provider.documentType.singular}}
62+
</OsfLink>
63+
<div local-class='example-container'>
64+
<OsfLink
65+
data-test-submission-see-submission-example
66+
data-analytics-name='See Submission Example'
67+
@route='resolve-guid'
68+
@models={{array (if this.theme.provider.example this.theme.provider.example 'khbvy')}}
69+
>
70+
{{t 'preprints.header.example'}}
71+
</OsfLink>
72+
</div>
73+
</div>
74+
{{/if}}
5175
{{/if}}
5276
{{/branded-header.row}}
5377
</BrandedHeader>

lib/osf-components/addon/components/osf-navbar/preprint-links/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</OsfLink>
1919
</li>
2020
{{/if}}
21-
{{#if this.theme.provider.allowSubmissions}}
21+
{{#if (or (eq this.theme.id 'osf') this.theme.provider.allowSubmissions)}}
2222
<li data-test-nav-submit-preprint-link>
2323
<OsfLink
2424
data-test-add-a-preprint-osf-navbar

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-osf-web",
3-
"version": "25.15.0",
3+
"version": "25.15.1",
44
"private": true,
55
"description": "Ember front-end for the Open Science Framework",
66
"homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",

0 commit comments

Comments
 (0)