publish_my_data 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,5 +40,9 @@ module PublishMyData
40
40
  Dataset.find(Dataset.uri_from_data_graph_uri(self.graph_uri)) rescue nil
41
41
  end
42
42
 
43
+ def human_readable_name
44
+ label || uri.to_s
45
+ end
46
+
43
47
  end
44
48
  end
@@ -2,10 +2,10 @@
2
2
  - # - break up list of properties by graph
3
3
  - # - show inbound links
4
4
 
5
- - title = resource.label || resource.uri
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 "browse"
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
@@ -1,3 +1,3 @@
1
1
  module PublishMyData
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end