publish_my_data 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,10 @@
|
|
2
2
|
- # - break up list of properties by graph
|
3
3
|
- # - show inbound links
|
4
4
|
|
5
|
-
- title = resource.
|
5
|
+
- title = resource.human_readable_name
|
6
6
|
- rdf_type_label = PublishMyData::RdfType.find(resource.rdf_type.first.to_s).label rescue nil
|
7
7
|
|
8
|
-
- highlight_in_menu "
|
8
|
+
- highlight_in_menu "catalogue"
|
9
9
|
- set_page_title("Resource: #{title}")
|
10
10
|
- page_kind 'resource'
|
11
11
|
- set_pmd_page_class 'resource'
|
@@ -16,7 +16,7 @@
|
|
16
16
|
= fullwidth do
|
17
17
|
= badge("resource")
|
18
18
|
= page_title(title)
|
19
|
-
= title_uri resource.uri
|
19
|
+
= title_uri resource.uri.to_s
|
20
20
|
= fullwidth do
|
21
21
|
=label(resource.read_predicate(RDF.type).many? ? 'Types' : 'Type')
|
22
22
|
%p= resource.read_predicate(RDF.type).map { |t| resource_uri_or_label(resource, t) }.join(", ").html_safe
|
@@ -27,4 +27,4 @@
|
|
27
27
|
=label("Dataset")
|
28
28
|
%p= link_to "#{resource.dataset.label || resource.dataset.uri}", dataset_path(resource.dataset)
|
29
29
|
|
30
|
-
= render 'publish_my_data/stripes/resource_data', resource: resource
|
30
|
+
= render 'publish_my_data/stripes/resource_data', resource: resource
|
@@ -7,9 +7,9 @@
|
|
7
7
|
%tr
|
8
8
|
%td
|
9
9
|
%h4= resource_uri_or_label(resource, resource.uri)
|
10
|
-
%h5.click_to_select.uri= resource.uri
|
10
|
+
%h5.click_to_select.uri= resource.uri.to_s
|
11
11
|
%p= resource.comment
|
12
12
|
|
13
13
|
- if (@pagination_params) && (pagination_required?(resources, @pagination_params))
|
14
14
|
Page
|
15
|
-
= paginate resources
|
15
|
+
= paginate resources
|