hyrax 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac7cd95127ab939b39d3876e7649754e8923ba68
4
- data.tar.gz: ee582d21b75be19fa313d98adf812bc87e6a64f3
3
+ metadata.gz: 1a9306e4b4844dbd7eeca0918cc90bbd199bb3ed
4
+ data.tar.gz: 4872c02a907df3571ecc9e4d906fa73fcb516919
5
5
  SHA512:
6
- metadata.gz: 20c7064951b8b10f45a66fb7a97542d27590308b0f875c72ced5001301929c9a323506ac03f95007f89975491484dee4e453b18703c801647a12e0ffb72a369b
7
- data.tar.gz: bdbbc06ec054a31e7b96935c07198b2bcaf75a497fa0731be47495623de19978790cc9b2e28bd377d4c5ca2cbd05c2671a16283941baf1a6f523822edc78de4a
6
+ metadata.gz: 88598e671c211babf2a3ecbb20832c5d31599f5d7d2bc1023ff09728850733313bf838c4f1ef79204aa4ee0d05327b61b9299f5c43bee69d1883973e87d83895
7
+ data.tar.gz: 58b7bc88ffac9e2202b22f4c3e27af8817733a99522a479d5d565d816240e4b9f86f066ac4e3f3a80c9e8f4aa08c1e0f08754b649a7f4c17bf08b9551dd97fe0
data/README.md CHANGED
@@ -62,7 +62,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
62
62
  # Getting started
63
63
 
64
64
  This document contains instructions specific to setting up an app with __Hyrax
65
- v2.2.3__. If you are looking for instructions on installing a different
65
+ v2.2.4__. If you are looking for instructions on installing a different
66
66
  version, be sure to select the appropriate branch or tag from the drop-down
67
67
  menu above.
68
68
 
@@ -161,7 +161,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
161
161
  Generate a new Rails application using the template.
162
162
 
163
163
  ```
164
- rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.3/template.rb
164
+ rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.4/template.rb
165
165
  ```
166
166
 
167
167
  Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
@@ -103,6 +103,7 @@
103
103
  //= require hyrax/batch_select
104
104
  //= require hyrax/tabbed_form
105
105
  //= require hyrax/turbolinks_events
106
+ //= require hyrax/i18n_helper
106
107
 
107
108
  // this needs to be after batch_select so that the form ids get setup correctly
108
109
  //= require hyrax/batch_edit
@@ -22,6 +22,7 @@ Hyrax = {
22
22
  this.sortAndPerPage();
23
23
  this.sidebar();
24
24
  this.batchSelect();
25
+ this.internationalizationHelper();
25
26
  },
26
27
 
27
28
  // Add WYSIWYG editor functionality to editable content blocks
@@ -84,6 +85,11 @@ Hyrax = {
84
85
  }
85
86
  },
86
87
 
88
+ internationalizationHelper: function () {
89
+ var InternationalizationHelper = require('hyrax/i18n_helper');
90
+ new InternationalizationHelper();
91
+ },
92
+
87
93
  // The work edit page
88
94
  workEditor: function () {
89
95
  var element = $("[data-behavior='work-form']")
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Helper class for internationalization event handling
3
+ */
4
+ export default class InternationalizationHelper {
5
+ constructor() {
6
+ this.addLangClickListener();
7
+ }
8
+
9
+ /**
10
+ * Handle the event of selecting a new language from top bar, language select element.
11
+ * This updates the html@lang attribute, which is important for screen readers
12
+ */
13
+ addLangClickListener() {
14
+ $('#user_utility_links')
15
+ .find('a.dropdown-item')
16
+ .on('click', e => {
17
+ let locale = e.target.dataset['locale'];
18
+ if (!locale) {
19
+ return;
20
+ }
21
+ $('html').attr('lang', locale);
22
+ });
23
+ }
24
+ }
@@ -6,6 +6,10 @@
6
6
  z-index: $zindex-navbar + 1;
7
7
  }
8
8
 
9
+ header > .navbar {
10
+ margin-bottom: 0;
11
+ }
12
+
9
13
  .navbar + .navbar,
10
14
  .navbar + .image-masthead {
11
15
  margin-top: -1 * $navbar-margin-bottom;
@@ -25,6 +25,7 @@ module Hyrax
25
25
  end
26
26
 
27
27
  def show
28
+ @curation_concern ||= ActiveFedora::Base.find(params[:id])
28
29
  presenter
29
30
  query_collection_members
30
31
  end
@@ -38,7 +38,7 @@ module Hyrax
38
38
 
39
39
  # The title of the webpage that shows this FileSet.
40
40
  def page_title
41
- first_title
41
+ "#{human_readable_type} | #{title.first} | ID: #{id} | #{I18n.t('hyrax.product_name')}"
42
42
  end
43
43
 
44
44
  # The first title assertion
@@ -1,18 +1,21 @@
1
- <nav id="masthead" class="navbar navbar-inverse navbar-static-top" role="navigation">
2
- <div class="container-fluid">
3
- <!-- Brand and toggle get grouped for better mobile display -->
4
- <div class="navbar-header">
5
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar-collapse" aria-expanded="false">
6
- <span class="sr-only">Toggle navigation</span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- <span class="icon-bar"></span>
10
- </button>
11
- <%= render '/logo' %>
12
- </div>
1
+ <header>
2
+ <nav id="masthead" class="navbar navbar-inverse navbar-static-top" role="navigation">
3
+ <div class="container-fluid">
4
+ <!-- Brand and toggle get grouped for better mobile display -->
5
+ <div class="navbar-header">
6
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar-collapse" aria-expanded="false">
7
+ <span class="sr-only">Toggle navigation</span>
8
+ <span class="icon-bar"></span>
9
+ <span class="icon-bar"></span>
10
+ <span class="icon-bar"></span>
11
+ </button>
12
+ <%= render '/logo' %>
13
+ </div>
13
14
 
14
- <div class="collapse navbar-collapse" id="top-navbar-collapse">
15
- <%= render '/user_util_links' %>
15
+ <div class="collapse navbar-collapse" id="top-navbar-collapse">
16
+ <%= render '/user_util_links' %>
17
+ </div>
16
18
  </div>
17
- </div>
18
- </nav>
19
+ </nav>
20
+ </header>
21
+
@@ -1,7 +1,7 @@
1
- <div id="sidebar" class="col-md-3 col-sm-4">
2
- <%= render 'search_sidebar' %>
1
+ <div id="content" class="col-md-9 col-md-push-3 col-sm-8 col-sm-push-4">
2
+ <%= render 'search_results' %>
3
3
  </div>
4
4
 
5
- <div id="content" class="col-md-9 col-sm-8">
6
- <%= render 'search_results' %>
5
+ <div id="sidebar" class="col-md-3 col-md-pull-9 col-sm-4 col-sm-pull-8">
6
+ <%= render 'search_sidebar' %>
7
7
  </div>
@@ -1,5 +1,5 @@
1
1
  <% if show_pagination? %>
2
- <div id="sortAndPerPage" class="sort-pagination" class="clearfix">
2
+ <div id="sortAndPerPage" class="sort-pagination clearfix">
3
3
  <%= render partial: "paginate_compact", object: @response %>
4
4
  </div>
5
5
  <% end %>
@@ -21,7 +21,7 @@
21
21
  <%= t('.more_toggle_content_html') %>
22
22
  </div>
23
23
 
24
- <h3>Current Collection Types</h3>
24
+ <h2>Current Collection Types</h2>
25
25
  <table class="table collection-types-table">
26
26
  <thead>
27
27
  <tr>
@@ -1,62 +1,62 @@
1
1
  <h1>Terms of Use for <%= ApplicationController.helpers.application_name %></h1>
2
2
 
3
- <p>
4
- 1. <strong>General:</strong> The Site is maintained by the <%= ApplicationController.helpers.institution_name_full %> Libraries and <%= ApplicationController.helpers.institution_name_full %> Information Technology Services (ITS), in support of our mission to disseminate information and research to scholars, educators and the public. As used in these Terms of Use, the terms "we, "us," and "our" refer to the Libraries, ITS, and <%= ApplicationController.helpers.institution_name_full %> ("<%= ApplicationController.helpers.institution_name %>"). Use of <%= ApplicationController.helpers.application_name %> (the Site and its contents) is subject to the following terms and conditions and all applicable laws. By using the Site or any of its content, you accept and agree to be bound by these Terms of Use and all applicable laws. If any of these Terms of Use are unacceptable to you, do not use the Site.
5
- </p>
6
-
7
- <p>
8
- 2. <strong>Changes to Terms of Use Are Binding:</strong> We may change these Terms of Use from time-to-time without advance notice. Your use of the Site or any of its content after any changes have been made will constitute your agreement on a prospective basis to the modified Terms of Use and all of the changes. Accordingly, you should read these Terms of Use from time-to-time for any changes.
9
- </p>
10
-
11
- <p>
12
- 3. <strong>Copyright and Use of <%= ApplicationController.helpers.application_name %> Content:</strong> The Site includes text, images, graphics, information, articles, multi-media objects, scholarly projects and other works protected by copyright, trademark and other laws ("Content"). Some of the Content on this site may include materials from older published works that have passed into the "public domain" under U.S. copyright law. Where such information is known, it is included specifically in the metadata associated with each item of Content. However, the Site itself and most of the materials held as Content on the Site are protected by copyright and other laws. These materials have been deposited to enable teaching, research, and other non-profit educational activities. Unless otherwise specified in the metadata attached to an item of Content, you may use the Site and the Content only for non-commercial, research, educational, or related academic purposes. Further, you have the responsibility to make your own assessment of the copyright or other legal concerns that might affect your use of <%= ApplicationController.helpers.application_name %> content and to assume personal responsibility for your uses of Content.
13
- </p>
14
-
15
- <p>
16
- 4. <strong>Special Permissions:</strong> <%= ApplicationController.helpers.application_name %> does not have the authority to grant or deny special permissions to use images or other Content found on the site beyond those uses that are specifically described in these Terms of Use or as noted specifically on individual items of Content. <%= ApplicationController.helpers.application_name %> staff are not able to undertake copyright investigations on behalf of Site users.
17
- </p>
18
-
19
- <p>
20
- 5. <strong><%= ApplicationController.helpers.application_name %> Access Levels:</strong> Where possible, <%= ApplicationController.helpers.application_name %> makes its Content available to the general public. However, some of the Content on this Site has been made available only to <%= ApplicationController.helpers.institution_name %> community users or other user subgroups by the depositor. Such Content cannot be used, downloaded, or distributed outside the <%= ApplicationController.helpers.institution_name %> community (or subgroup identified) without the specific permission of the depositor.
21
- </p>
22
-
23
- <p>
24
- 6. <strong>Use of <%= ApplicationController.helpers.application_name %> Site and Content:</strong> Unless otherwise specified in the metadata attached to an item, Content that has been made accessible to the general public may be used for non-commercial, research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship (including computational research uses such as data and text-mining, citation-extraction, or cross-referencing) as long as you do not sell the Content or sell advertising on any page on which the Content is displayed. If you make an item of Content available to others, you shall do so in accordance with the terms of the rights granted pursuant to the particular item of Content, or at a minimum, you will retain with the Content its title, the name of the author(s), a reference to these Terms of Use, any copyright notice included on the original, and any metadata associated with the original. You may not use a facsimile of the published version of an article that may be posted in <%= ApplicationController.helpers.application_name %> under these open access terms, unless the publisher so permits. You will not make any translation, adaptation or other derivative work of an item of Content except as authorized under U.S. law. You may not sublicense or otherwise transfer your rights in an item of Content, unless specifically authorized by the copyright license granted to the item of Content and will only make Content available to others for use by them under these Terms of Use. Links on the Site to third-party web sites are provided solely as a convenience to you. We do not approve or endorse the content of linked third-party sites, and you agree that we will have no responsibility or liability in connection with your use of any linked third-party sites. Nothing in these Terms of Use or on the Site will be construed as granting you any right or license to use any trademarks, service marks or logos displayed on the Site. You agree not to use or register any name, logo or insignia of <%= ApplicationController.helpers.institution_name_full %> or any of its subdivisions for any purpose except with our prior written approval and in accordance with any restrictions required by us.
25
- </p>
26
-
27
- <p>
28
- 7. <strong>Fair Use and Other Lawful Uses:</strong> Nothing in these Terms of Use is intended to restrict or limit you from making uses of Content that, in the absence of rights granted hereunder, would not infringe or violate anyone's copyright, trademark or other rights. To the extent permitted by law, adaptation of <%= ApplicationController.helpers.application_name %> Content to enable use and access by persons with disabilities is encouraged.
29
- </p>
30
-
31
- <p>
32
- 8. <strong>Reserved Rights; Obtaining Permissions:</strong> All rights in the Site and the Content that are not expressly granted are reserved. You agree to use the Site and the Content only in ways that comply with copyright and all other applicable laws, as well as with these Terms of Use, and that do not infringe or violate anyone's rights. If you wish to make any use of the Content that requires authorization under copyright, trademark or other rights, you agree to obtain all necessary permissions. You are responsible for determining whether permission is needed to make any use of the Content that you wish to make.
33
- </p>
34
-
35
- <p>
36
- 9. <strong>Disclaimer of Warranties:</strong> THE SITE AND THE CONTENT ARE PROVIDED "AS IS." TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, WE DISCLAIM ALL WARRANTIES OF ANY KIND (EXPRESS, IMPLIED OR OTHERWISE) REGARDING THE SITE OR THE CONTENT, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OWNERSHIP, AND NON-INFRINGEMENT. WE MAKE NO WARRANTY ABOUT THE ACCURACY, RELIABILITY, COMPLETENESS, TIMELINESS, SUFFICIENCY OR QUALITY OF THE SITE OR THE CONTENT, NOR THAT ANY PARTICULAR CONTENT WILL CONTINUE TO BE MADE AVAILABLE. WE DO NOT APPROVE OR ENDORSE ANY POSTED MATERIAL OR CONTENT PROVIDED BY OTHERS, INCLUDING <%= ApplicationController.helpers.institution_name.upcase %> AUTHORS. WE DO NOT WARRANT THAT THE SITE WILL OPERATE WITHOUT ERROR OR INTERRUPTION, OR THAT THE SITE OR ITS SERVER ARE FREE OF COMPUTER VIRUSES OR OTHER HARMFUL MATERIALS.
37
- </p>
38
-
39
- <p>
40
- 10. <strong>Limitations of Liability and Remedies:</strong> WE MAKE THE SITE AND THE CONTENT AVAILABLE FREE OF CHARGE. YOUR USE OF THE SITE AND THE CONTENT IS AT YOUR OWN SOLE RISK. IN NO EVENT SHALL WE BE LIABLE TO YOU, IN CONTRACT, TORT OR OTHERWISE, FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY OR OTHER DAMAGES OF ANY KIND ARISING OUT OF OR RELATING TO THE SITE OR THE CONTENT, OR YOUR USE OF THE SITE OR THE CONTENT, OR ANY THIRD PARTY RIGHTS IN THE CONTENT, EVEN IF THE SITE OR CONTENT IS DEFECTIVE OR WE ARE NEGLIGENT OR OTHERWISE AT FAULT, AND REGARDLESS WHETHER WE ARE ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE FOREGOING LIMITATIONS SHALL APPLY TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.
41
- </p>
42
-
43
- <p>
44
- 11. <strong>Indemnity:</strong> You agree to indemnify and hold harmless <%= ApplicationController.helpers.institution_name_full %> and its trustees, officers, fellows, students, employees and agents, from and against all claims, actions, suits, damages, liabilities and costs (including, without limitation, reasonable legal fees) arising from or relating to your use of the Site or any of the Content or your failure to comply with any provision of these Terms of Use.
45
- </p>
46
-
47
- <p>
48
- 12. <strong>Communications:</strong>
49
- <ul>
50
- <li>
51
- A. Copyright Complaints: We respect the intellectual property rights of others. If you believe your copyright has been violated on the Site, please notify us through <%= ApplicationController.helpers.institution_name %>'s designated agent under the Digital Millennium Copyright Act (see 17 U.S.C. Â&sect;512(c)(3).</li>
52
- <li> B. Other Site Issues: Please direct all other communications to <a href="<%= Hyrax::Engine.routes.url_helpers.contact_path %>">contact form</a>.</ul>
53
- </ul>
54
- </p>
55
-
56
- <p>
57
- 13. <strong>Applicable Law and Jurisdiction; Access from Outside the Commonwealth of Pennsylvania:</strong> The Site is controlled and operated from our facilities in and around University Park, PA. These Terms of Use, and any claim or dispute that arises from or relates to your use of the Site or the Content, will be governed by the laws of Pennsylvania, without regard to its conflicts of laws principles. You agree that all such claims and disputes will be heard and resolved exclusively in the courts of Centre County, Pennsylvania. You consent to the personal jurisdiction of such courts over you for this purpose, and waive and agree not to assert any objection to such proceedings in such courts (including any defense or objection of lack of proper jurisdiction or venue or inconvenience of forum). If you choose to access our website from locations other than Pennsylvania, you will be responsible for compliance with all local laws of those other locations.
58
- </p>
59
-
60
- <p>
61
- 14. <strong>Termination:</strong> The permissions granted to you will terminate automatically upon any breach by you of these Terms of Use. If we take down or otherwise cease to make a work available as an item of Content, the permission granted to you hereunder to use that Content thereafter will terminate at that time. <%= ApplicationController.helpers.application_name %> is maintained as a scholarly and educational resource by <%= ApplicationController.helpers.institution_name %> which may be modified or terminated by the University in its sole discretion.
62
- </p>
3
+ <ol>
4
+ <li>
5
+ <strong>General:</strong> The Site is maintained by the <%= ApplicationController.helpers.institution_name_full %> Libraries and <%= ApplicationController.helpers.institution_name_full %> Information Technology Services (ITS), in support of our mission to disseminate information and research to scholars, educators and the public. As used in these Terms of Use, the terms "we, "us," and "our" refer to the Libraries, ITS, and <%= ApplicationController.helpers.institution_name_full %> ("<%= ApplicationController.helpers.institution_name %>"). Use of <%= ApplicationController.helpers.application_name %> (the Site and its contents) is subject to the following terms and conditions and all applicable laws. By using the Site or any of its content, you accept and agree to be bound by these Terms of Use and all applicable laws. If any of these Terms of Use are unacceptable to you, do not use the Site.
6
+ </li>
7
+
8
+ <li>
9
+ <strong>Changes to Terms of Use Are Binding:</strong> We may change these Terms of Use from time-to-time without advance notice. Your use of the Site or any of its content after any changes have been made will constitute your agreement on a prospective basis to the modified Terms of Use and all of the changes. Accordingly, you should read these Terms of Use from time-to-time for any changes.
10
+ </li>
11
+
12
+ <li>
13
+ <strong>Copyright and Use of <%= ApplicationController.helpers.application_name %> Content:</strong> The Site includes text, images, graphics, information, articles, multi-media objects, scholarly projects and other works protected by copyright, trademark and other laws ("Content"). Some of the Content on this site may include materials from older published works that have passed into the "public domain" under U.S. copyright law. Where such information is known, it is included specifically in the metadata associated with each item of Content. However, the Site itself and most of the materials held as Content on the Site are protected by copyright and other laws. These materials have been deposited to enable teaching, research, and other non-profit educational activities. Unless otherwise specified in the metadata attached to an item of Content, you may use the Site and the Content only for non-commercial, research, educational, or related academic purposes. Further, you have the responsibility to make your own assessment of the copyright or other legal concerns that might affect your use of <%= ApplicationController.helpers.application_name %> content and to assume personal responsibility for your uses of Content.
14
+ </li>
15
+
16
+ <li>
17
+ <strong>Special Permissions:</strong> <%= ApplicationController.helpers.application_name %> does not have the authority to grant or deny special permissions to use images or other Content found on the site beyond those uses that are specifically described in these Terms of Use or as noted specifically on individual items of Content. <%= ApplicationController.helpers.application_name %> staff are not able to undertake copyright investigations on behalf of Site users.
18
+ </li>
19
+
20
+ <li>
21
+ <strong><%= ApplicationController.helpers.application_name %> Access Levels:</strong> Where possible, <%= ApplicationController.helpers.application_name %> makes its Content available to the general public. However, some of the Content on this Site has been made available only to <%= ApplicationController.helpers.institution_name %> community users or other user subgroups by the depositor. Such Content cannot be used, downloaded, or distributed outside the <%= ApplicationController.helpers.institution_name %> community (or subgroup identified) without the specific permission of the depositor.
22
+ </li>
23
+
24
+ <li>
25
+ <strong>Use of <%= ApplicationController.helpers.application_name %> Site and Content:</strong> Unless otherwise specified in the metadata attached to an item, Content that has been made accessible to the general public may be used for non-commercial, research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship (including computational research uses such as data and text-mining, citation-extraction, or cross-referencing) as long as you do not sell the Content or sell advertising on any page on which the Content is displayed. If you make an item of Content available to others, you shall do so in accordance with the terms of the rights granted pursuant to the particular item of Content, or at a minimum, you will retain with the Content its title, the name of the author(s), a reference to these Terms of Use, any copyright notice included on the original, and any metadata associated with the original. You may not use a facsimile of the published version of an article that may be posted in <%= ApplicationController.helpers.application_name %> under these open access terms, unless the publisher so permits. You will not make any translation, adaptation or other derivative work of an item of Content except as authorized under U.S. law. You may not sublicense or otherwise transfer your rights in an item of Content, unless specifically authorized by the copyright license granted to the item of Content and will only make Content available to others for use by them under these Terms of Use. Links on the Site to third-party web sites are provided solely as a convenience to you. We do not approve or endorse the content of linked third-party sites, and you agree that we will have no responsibility or liability in connection with your use of any linked third-party sites. Nothing in these Terms of Use or on the Site will be construed as granting you any right or license to use any trademarks, service marks or logos displayed on the Site. You agree not to use or register any name, logo or insignia of <%= ApplicationController.helpers.institution_name_full %> or any of its subdivisions for any purpose except with our prior written approval and in accordance with any restrictions required by us.
26
+ </li>
27
+
28
+ <li>
29
+ <strong>Fair Use and Other Lawful Uses:</strong> Nothing in these Terms of Use is intended to restrict or limit you from making uses of Content that, in the absence of rights granted hereunder, would not infringe or violate anyone's copyright, trademark or other rights. To the extent permitted by law, adaptation of <%= ApplicationController.helpers.application_name %> Content to enable use and access by persons with disabilities is encouraged.
30
+ </li>
31
+
32
+ <li>
33
+ <strong>Reserved Rights; Obtaining Permissions:</strong> All rights in the Site and the Content that are not expressly granted are reserved. You agree to use the Site and the Content only in ways that comply with copyright and all other applicable laws, as well as with these Terms of Use, and that do not infringe or violate anyone's rights. If you wish to make any use of the Content that requires authorization under copyright, trademark or other rights, you agree to obtain all necessary permissions. You are responsible for determining whether permission is needed to make any use of the Content that you wish to make.
34
+ </li>
35
+
36
+ <li>
37
+ <strong>Disclaimer of Warranties:</strong> THE SITE AND THE CONTENT ARE PROVIDED "AS IS." TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, WE DISCLAIM ALL WARRANTIES OF ANY KIND (EXPRESS, IMPLIED OR OTHERWISE) REGARDING THE SITE OR THE CONTENT, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OWNERSHIP, AND NON-INFRINGEMENT. WE MAKE NO WARRANTY ABOUT THE ACCURACY, RELIABILITY, COMPLETENESS, TIMELINESS, SUFFICIENCY OR QUALITY OF THE SITE OR THE CONTENT, NOR THAT ANY PARTICULAR CONTENT WILL CONTINUE TO BE MADE AVAILABLE. WE DO NOT APPROVE OR ENDORSE ANY POSTED MATERIAL OR CONTENT PROVIDED BY OTHERS, INCLUDING <%= ApplicationController.helpers.institution_name.upcase %> AUTHORS. WE DO NOT WARRANT THAT THE SITE WILL OPERATE WITHOUT ERROR OR INTERRUPTION, OR THAT THE SITE OR ITS SERVER ARE FREE OF COMPUTER VIRUSES OR OTHER HARMFUL MATERIALS.
38
+ </li>
39
+
40
+ <li>
41
+ <strong>Limitations of Liability and Remedies:</strong> WE MAKE THE SITE AND THE CONTENT AVAILABLE FREE OF CHARGE. YOUR USE OF THE SITE AND THE CONTENT IS AT YOUR OWN SOLE RISK. IN NO EVENT SHALL WE BE LIABLE TO YOU, IN CONTRACT, TORT OR OTHERWISE, FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY OR OTHER DAMAGES OF ANY KIND ARISING OUT OF OR RELATING TO THE SITE OR THE CONTENT, OR YOUR USE OF THE SITE OR THE CONTENT, OR ANY THIRD PARTY RIGHTS IN THE CONTENT, EVEN IF THE SITE OR CONTENT IS DEFECTIVE OR WE ARE NEGLIGENT OR OTHERWISE AT FAULT, AND REGARDLESS WHETHER WE ARE ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE FOREGOING LIMITATIONS SHALL APPLY TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.
42
+ </li>
43
+
44
+ <li>
45
+ <strong>Indemnity:</strong> You agree to indemnify and hold harmless <%= ApplicationController.helpers.institution_name_full %> and its trustees, officers, fellows, students, employees and agents, from and against all claims, actions, suits, damages, liabilities and costs (including, without limitation, reasonable legal fees) arising from or relating to your use of the Site or any of the Content or your failure to comply with any provision of these Terms of Use.
46
+ </li>
47
+
48
+ <li>
49
+ <strong>Communications:</strong>
50
+ <ol type="A">
51
+ <li>Copyright Complaints: We respect the intellectual property rights of others. If you believe your copyright has been violated on the Site, please notify us through <%= ApplicationController.helpers.institution_name %>'s designated agent under the Digital Millennium Copyright Act (see 17 U.S.C. Â&sect;512(c)(3).</li>
52
+ <li>Other Site Issues: Please direct all other communications to <a href="<%= Hyrax::Engine.routes.url_helpers.contact_path %>">contact form</a>.
53
+ </ol>
54
+ </li>
55
+
56
+ <li>
57
+ <strong>Applicable Law and Jurisdiction; Access from Outside the Commonwealth of Pennsylvania:</strong> The Site is controlled and operated from our facilities in and around University Park, PA. These Terms of Use, and any claim or dispute that arises from or relates to your use of the Site or the Content, will be governed by the laws of Pennsylvania, without regard to its conflicts of laws principles. You agree that all such claims and disputes will be heard and resolved exclusively in the courts of Centre County, Pennsylvania. You consent to the personal jurisdiction of such courts over you for this purpose, and waive and agree not to assert any objection to such proceedings in such courts (including any defense or objection of lack of proper jurisdiction or venue or inconvenience of forum). If you choose to access our website from locations other than Pennsylvania, you will be responsible for compliance with all local laws of those other locations.</li>
58
+
59
+ <li>
60
+ <strong>Termination:</strong> The permissions granted to you will terminate automatically upon any breach by you of these Terms of Use. If we take down or otherwise cease to make a work available as an item of Content, the permission granted to you hereunder to use that Content thereafter will terminate at that time. <%= ApplicationController.helpers.application_name %> is maintained as a scholarly and educational resource by <%= ApplicationController.helpers.institution_name %> which may be modified or terminated by the University in its sole discretion.
61
+ </li>
62
+ </ol>
@@ -2,7 +2,7 @@
2
2
  <div class="col-md-12">
3
3
  <div class="panel panel-default">
4
4
  <div class="panel-heading">
5
- <h3 class="panel-title"><%= t('.title') %></h3>
5
+ <h2 class="panel-title"><%= t('.title') %></h2>
6
6
  <div><%= t('.subtitle') %></div>
7
7
  </div>
8
8
  <div class="panel-body">
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  <div class="row">
8
8
  <div class="col-xs-6 proxy-search">
9
- <h4><%= t("hyrax.dashboard.authorize_proxies") %></h4>
9
+ <h2><%= t("hyrax.dashboard.authorize_proxies") %></h2>
10
10
  <div class="form-group">
11
11
  <label for="user"><%= t("hyrax.dashboard.proxy_user") %></label>
12
12
  <%= hidden_field_tag :user, nil, data: { grantor: current_user.to_param } %>
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
 
17
17
  <div class="col-xs-6">
18
- <h4><%= t("hyrax.dashboard.current_proxies") %></h4>
18
+ <h2><%= t("hyrax.dashboard.current_proxies") %></h2>
19
19
  <table class="table table-condensed table-striped" id="authorizedProxies">
20
20
  <tbody>
21
21
  <% user.can_receive_deposits_from.each do |depositor| %>
@@ -1,3 +1,4 @@
1
+ <% provide :page_title, @presenter.page_title %>
1
2
  <div class="container-fluid">
2
3
  <div class="row">
3
4
  <div class="col-xs-12 col-sm-4">
@@ -1,7 +1,8 @@
1
- <div class="btn-group">
1
+ <fieldset class="btn-group">
2
+ <legend class="sr-only"><%= facet_field_label(facet_field.field) %></legend>
2
3
  <button class="btn btn-default dropdown-toggle" type="button" id="<%= facet_field.field.parameterize %>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" aria-controls="<%= facet_field.field.parameterize + '-dropdown-options' %>">
3
4
  <%= facet_field_label(facet_field.field) %>
4
5
  <span class="caret"></span>
5
6
  </button>
6
7
  <%= yield %>
7
- </div>
8
+ </fieldset>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="<%= t("hyrax.document_language") %>">
2
+ <html lang="<%= I18n.locale.to_s %>">
3
3
  <head>
4
4
  <title>Single use link Not Found</title>
5
5
  </head>
@@ -9,7 +9,7 @@
9
9
  <% events.each do |event| %>
10
10
  <% next if event[:action].blank? or event[:timestamp].blank? %>
11
11
  <tr>
12
- <td><%= event[:action] %></td>
12
+ <td><%= sanitize event[:action] %></td>
13
13
  <% time = Time.zone.at(event[:timestamp].to_i) %>
14
14
  <td data-sort="<%= time.getutc.iso8601(5) %>">
15
15
  <relative-time datetime="<%= time.getutc.iso8601 %>" title="<%= time.to_formatted_s(:standard) %>">
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="<%= t("hyrax.document_language") %>">
2
+ <html lang="<%= I18n.locale.to_s %>">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
 
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="<%= t("hyrax.document_language", default: '') %>" prefix="og:http://ogp.me/ns#">
2
+ <html lang="<%= I18n.locale.to_s %>" prefix="og:http://ogp.me/ns#">
3
3
  <head>
4
4
  <%= render partial: 'layouts/head_tag_content' %>
5
5
  <%= content_for(:head) %>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="<%= t("hyrax.document_language", default: '') %>" prefix="og:http://ogp.me/ns#">
2
+ <html lang="<%= I18n.locale.to_s %>" prefix="og:http://ogp.me/ns#">
3
3
  <head>
4
4
  <%= render partial: 'layouts/head_tag_content' %>
5
5
  <%= content_for(:head) %>
@@ -9,7 +9,7 @@
9
9
  <li role="presentation" class="divider"></li>
10
10
  <% available_translations.each do |language, label| %>
11
11
  <li role="presentation" lang="<%= language %>">
12
- <%= link_to label, "?locale=#{language}", class: 'dropdown-item', role: 'menuitem', tabindex: '-1' %>
12
+ <%= link_to label, "?locale=#{language}", class: 'dropdown-item', role: 'menuitem', tabindex: '-1', data: { locale: language } %>
13
13
  </li>
14
14
  <% end %>
15
15
  </ul>
data/hyrax.gemspec CHANGED
@@ -51,7 +51,7 @@ SUMMARY
51
51
  spec.add_dependency 'hydra-derivatives', '~> 3.3'
52
52
  spec.add_dependency 'hydra-editor', '>= 3.3', '< 5.0'
53
53
  spec.add_dependency 'hydra-head', '>= 10.5.0'
54
- spec.add_dependency 'hydra-works', '~> 0.16'
54
+ spec.add_dependency 'hydra-works', '>= 0.16', '< 2.0'
55
55
  spec.add_dependency 'iiif_manifest', '>= 0.3', '< 0.5'
56
56
  spec.add_dependency 'jquery-datatables-rails', '~> 3.4'
57
57
  spec.add_dependency 'jquery-ui-rails', '~> 6.0'
data/lib/hyrax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hyrax
2
- VERSION = '2.2.3'.freeze
2
+ VERSION = '2.2.4'.freeze
3
3
  end
@@ -54,6 +54,14 @@ RSpec.describe 'collection', type: :feature, clean_repo: true do
54
54
  expect(page).not_to have_content(work2.title.first)
55
55
  end
56
56
 
57
+ it "returns json results" do
58
+ visit "/collections/#{collection.id}.json"
59
+ expect(page).to have_http_status(:success)
60
+ json = JSON.parse(page.body)
61
+ expect(json['id']).to eq collection.id
62
+ expect(json['title']).to match_array collection.title
63
+ end
64
+
57
65
  context "with a non-nestable collection type" do
58
66
  let(:collection) do
59
67
  build(:public_collection_lw, user: user, description: ['collection description'], collection_type_settings: :not_nestable, with_solr_document: true, with_permission_template: true)
data/template.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'hyrax', '2.2.3'
1
+ gem 'hyrax', '2.2.4'
2
2
  run 'bundle install'
3
3
  generate 'hyrax:install', '-f'
4
4
  rails_command 'db:migrate'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-09-07 00:00:00.000000000 Z
17
+ date: 2018-09-11 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -298,16 +298,22 @@ dependencies:
298
298
  name: hydra-works
299
299
  requirement: !ruby/object:Gem::Requirement
300
300
  requirements:
301
- - - "~>"
301
+ - - ">="
302
302
  - !ruby/object:Gem::Version
303
303
  version: '0.16'
304
+ - - "<"
305
+ - !ruby/object:Gem::Version
306
+ version: '2.0'
304
307
  type: :runtime
305
308
  prerelease: false
306
309
  version_requirements: !ruby/object:Gem::Requirement
307
310
  requirements:
308
- - - "~>"
311
+ - - ">="
309
312
  - !ruby/object:Gem::Version
310
313
  version: '0.16'
314
+ - - "<"
315
+ - !ruby/object:Gem::Version
316
+ version: '2.0'
311
317
  - !ruby/object:Gem::Dependency
312
318
  name: iiif_manifest
313
319
  requirement: !ruby/object:Gem::Requirement
@@ -1145,6 +1151,7 @@ files:
1145
1151
  - app/assets/javascripts/hyrax/fileupload.js
1146
1152
  - app/assets/javascripts/hyrax/flot_stats.js
1147
1153
  - app/assets/javascripts/hyrax/ga_events.js
1154
+ - app/assets/javascripts/hyrax/i18n_helper.es6
1148
1155
  - app/assets/javascripts/hyrax/initialize.js
1149
1156
  - app/assets/javascripts/hyrax/monkey_patch_turbolinks.js.coffee
1150
1157
  - app/assets/javascripts/hyrax/nav_safety.js