Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
05573be1
Commit
05573be1
authored
2 years ago
by
Anusha Ranganathan
Browse files
Options
Downloads
Patches
Plain Diff
Removed abilities and metadata not used by rdms
parent
82db6bf4
No related branches found
No related tags found
2 merge requests
!19
Develop
,
!4
Customise dataset show page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyrax/app/views/hyrax/datasets/_attribute_rows.html.erb
+17
-116
17 additions, 116 deletions
hyrax/app/views/hyrax/datasets/_attribute_rows.html.erb
with
17 additions
and
116 deletions
hyrax/app/views/hyrax/datasets/_attribute_rows.html.erb
+
17
−
116
View file @
05573be1
...
...
@@ -12,124 +12,25 @@
<!-- Accordion body -->
<div
id=
"description"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<%
if
can?
:read_identifier
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:doi
,
label:
'DOI'
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_title
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:title
,
label:
t
(
'Title'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_alternative_title
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:alternative_title
,
label:
t
(
'rdms.fields.alternative_title'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_creator
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:complex_person
,
render_as: :nested_person
,
label:
t
(
'rdms.fields.complex_person'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_resource_type
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:resource_type
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_abstract
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:abstract
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_description
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:description
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_keyword
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:keyword
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_subject
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:subject
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_publisher
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:publisher
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_language
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:language
,
render_as: :faceted
,
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_date
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:date_created
,
render_as: :linked
,
search_field:
'date_created_tesim'
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:date_modified
,
label:
t
(
'hyrax.base.show.last_modified'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_date
,
render_as: :nested_date
,
label:
t
(
'rdms.fields.complex_date'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_identifier
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:complex_identifier
,
render_as: :nested_identifier
,
label:
t
(
'rdms.fields.complex_identifier'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_funding_reference
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:complex_funding_reference
,
render_as: :nested_funding_reference
,
label:
t
(
'rdms.fields.complex_funding_reference'
),
html_dl:
true
)
%>
<%
end
%>
<%
if
can?
:read_related
,
presenter
.
model_name
.
name
.
constantize
%>
<%=
presenter
.
attribute_to_html
(
:complex_relation
,
render_as: :nested_relation
,
label:
t
(
'rdms.fields.complex_relation'
),
html_dl:
true
)
%>
<%
end
%>
<%=
presenter
.
attribute_to_html
(
:doi
,
label:
'DOI'
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:title
,
label:
t
(
'Title'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:alternative_title
,
label:
t
(
'rdms.fields.alternative_title'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_person
,
render_as: :nested_person
,
label:
t
(
'rdms.fields.complex_person'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:resource_type
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:abstract
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:description
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:keyword
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:subject
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:publisher
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:language
,
render_as: :faceted
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:date_created
,
render_as: :linked
,
search_field:
'date_created_tesim'
,
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:date_modified
,
label:
t
(
'hyrax.base.show.last_modified'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_date
,
render_as: :nested_date
,
label:
t
(
'rdms.fields.complex_date'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_identifier
,
render_as: :nested_identifier
,
label:
t
(
'rdms.fields.complex_identifier'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_funding_reference
,
render_as: :nested_funding_reference
,
label:
t
(
'rdms.fields.complex_funding_reference'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_relation
,
render_as: :nested_relation
,
label:
t
(
'rdms.fields.complex_relation'
),
html_dl:
true
)
%>
</div>
<!-- panel body -->
</div>
<!-- Accordion body -->
</div>
<!-- Description accordion -->
<!-- Method accordion -->
<div
class=
"panel panel-default"
>
<!-- Accordion header -->
<div
class=
"panel-heading"
data-toggle=
"collapse"
data-target=
"#experimentalMethod"
>
<h4
class=
"panel-title"
>
<a
class=
"accordion-toggle"
>
Method
</a>
</h4>
</div>
<!-- Accordion header -->
<!-- Accordion body -->
<div
id=
"experimentalMethod"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<%=
presenter
.
attribute_to_html
(
:characterization_methods
,
render_as: :faceted
,
label:
t
(
'rdms.fields.characterization_methods'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:computational_methods
,
render_as: :faceted
,
label:
t
(
'rdms.fields.computational_methods'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:origin_system_provenance
,
label:
t
(
'rdms.fields.origin_system_provenance'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:properties_addressed
,
render_as: :faceted
,
label:
t
(
'rdms.fields.properties_addressed'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:synthesis_and_processing
,
render_as: :faceted
,
label:
t
(
'rdms.fields.synthesis_and_processing'
),
html_dl:
true
)
%>
</div>
<!-- panel body -->
</div>
<!-- Accordion body -->
</div>
<!-- Method accordion -->
<!-- Instruments accordion -->
<div
class=
"panel panel-default"
>
<!-- Accordion header -->
<div
class=
"panel-heading"
data-toggle=
"collapse"
data-target=
"#instrument"
>
<h4
class=
"panel-title"
>
<a
class=
"accordion-toggle"
>
Instruments
</a>
</h4>
</div>
<!-- Accordion header -->
<!-- Accordion body -->
<div
id=
"instrument"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<%=
presenter
.
attribute_to_html
(
:complex_instrument
,
render_as: :nested_instrument
,
label:
t
(
'rdms.fields.instrument'
),
html_dl:
true
)
%>
</div>
<!-- panel body -->
</div>
<!-- Accordion body -->
</div>
<!-- Instruments accordion -->
<!-- Specimen details accordion -->
<div
class=
"panel panel-default"
>
<!-- Accordion header -->
<div
class=
"panel-heading"
data-toggle=
"collapse"
data-target=
"#specimenType"
>
<h4
class=
"panel-title"
>
<a
class=
"accordion-toggle"
>
Specimen details
</a>
</h4>
</div>
<!-- Accordion header -->
<!-- Accordion body -->
<div
id=
"specimenType"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<%=
presenter
.
attribute_to_html
(
:material_type
,
label:
t
(
'rdms.fields.material_type'
),
html_dl:
true
)
%>
<%=
presenter
.
attribute_to_html
(
:complex_specimen_type
,
render_as: :nested_specimen_type
,
label:
t
(
'rdms.fields.complex_specimen_type'
),
html_dl:
true
)
%>
</div>
<!-- panel body -->
</div>
<!-- Accordion body -->
</div>
<!-- Specimen details accordion -->
</div>
<!-- Accordion wrapper -->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment