File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 show_email_sub = true
33 show_calendar_sub = (type == 'Event')
44 show_rss_sub = (type == 'Event')
5+ show_oai_pmh_sub = (type == 'Material')
56%>
67
78<% if show_calendar_sub || show_email_sub || show_rss_sub %>
3637 title ="<%= t ( 'subscriptions.button.events_rss_feed' ) %> " href ="<%= rss_url %> " />
3738 <% end %>
3839 <% end %>
40+ <% if show_oai_pmh_sub %>
41+ < li >
42+ < a href ="# " data-toggle ="modal " data-target ="#subscribe-oai-pmh-modal ">
43+ < i class ="fa fa-arrow-left "> </ i > <%= t ( 'subscriptions.button.to_oai_pmh' ) %>
44+ </ a >
45+ </ li >
46+ <% end %>
3947 </ ul >
4048 </ div >
4149
6876
6977 <%= render partial : 'subscriptions/subscribe_to_calendar_modal' if show_calendar_sub %>
7078 <%= render partial : 'subscriptions/subscribe_to_rss_modal' , locals : { url : rss_url } if show_rss_sub %>
79+ <%= render partial : 'subscriptions/subscribe_to_oai_pmh_modal' , locals : { url : oai_pmh_url } if show_oai_pmh_sub %>
7180<% end %>
Original file line number Diff line number Diff line change 1+ < div class ="modal fade " tabindex ="-1 " role ="dialog " aria-labelledby ="subscribe-oai-pmh-modal-title " id ="subscribe-oai-pmh-modal ">
2+ < div class ="modal-dialog " role ="document ">
3+ < div class ="modal-content ">
4+ < div class ="modal-header ">
5+ < button type ="button " class ="close " data-dismiss ="modal "
6+ aria-label ="<%= t ( 'subscriptions.modal.close' ) %> ">
7+ < span aria-hidden ="true "> ×</ span > </ button >
8+ < h4 class ="modal-title " id ="subscribe-oai-pmh-modal-title ">
9+ <%= t ( 'subscriptions.button.to_oai_pmh' ) %>
10+ </ h4 >
11+ </ div >
12+
13+ < div class ="modal-body ">
14+ < label for ="oai-pmh-link "> <%= t ( 'subscriptions.modal.url' ) %> </ label >
15+ < div class ="input-group input-group-lg ">
16+ < input id ="oai-pmh-link " type ="text " class ="form-control " value ="<%= url %> " readonly >
17+ < span class ="input-group-btn ">
18+ < button class ="btn btn-default clipboard-btn " type ="button " data-clipboard-target ="#oai-pmh-link "
19+ title ="<%= t ( 'subscriptions.modal.click_to_copy' ) %> ">
20+ < i class ="fa fa-clipboard " aria-hidden ="true "> </ i >
21+ </ button >
22+ </ span >
23+ </ div >
24+ < h3 > <%= t ( 'subscriptions.oai_pmh.instructions_header' ) %> </ h3 >
25+ < p > <%= t ( 'subscriptions.oai_pmh.instructions_body_html' ) %> </ p >
26+ </ div >
27+ </ div >
28+ </ div >
29+ </ div >
Original file line number Diff line number Diff line change @@ -1012,6 +1012,7 @@ en:
10121012 via_email : ' Subscribe via email'
10131013 add_to_calendar : ' Add to calendar'
10141014 to_rss : ' Subscribe to RSS feed'
1015+ to_oai_pmh : ' Harvest using OAI-PMH'
10151016 events_rss_feed : ' Events RSS feed'
10161017 email_title : ' Email Subscription'
10171018 submit_button : ' Subscribe'
@@ -1042,6 +1043,14 @@ en:
10421043 instructions_paragraph2_html : >-
10431044 Please note, it may take a while for newly created events in %{title} to synchronise with
10441045 your Google Calendar.
1046+ oai_pmh :
1047+ instructions_header : ' Exchange content using OAI-PMH'
1048+ instructions_body_html : >-
1049+ Use an <a href="https://www.openarchives.org/pmh/" target="_blank" rel="noopener">OAI-PMH</a> compatible
1050+ tool to harvest metadata using the OAI-PMH endpoint. In particular, this endpoint
1051+ can be used for exchanging content between different TeSS instances.
1052+ See the <a href="https://elixirtess.github.io/docs/" target="_blank" rel="noopener">TeSS documentation</a>
1053+ for more details.
10451054 unsubscribe :
10461055 success : ' You have successfully unsubscribed.'
10471056 frequency_options :
You can’t perform that action at this time.
0 commit comments