File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
publication/lib/field_publication_web Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ defmodule FieldPublicationWeb.IIIFHelper do
4
4
URI . decode ( identifier )
5
5
|> String . split ( "/" )
6
6
7
- "#{ FieldPublication.FileService . get_raw_image_data_path ( project ) } /#{ uuid } "
7
+ "#{ FieldPublication.FileService . get_raw_image_data_path ( project ) } /ptif/ #{ uuid } "
8
8
end
9
9
10
10
def handle_404 ( conn , plug_info ) do
11
11
response_body =
12
12
if Plug.Conn . request_url ( conn ) |> String . ends_with? ( ".json" ) do
13
- plug_info
13
+ Jason . encode! ( plug_info )
14
14
else
15
15
File . read! (
16
16
Application . app_dir ( :field_publication , "priv/static/images/image_not_found.png" )
@@ -20,7 +20,7 @@ defmodule FieldPublicationWeb.IIIFHelper do
20
20
Plug.Conn . resp (
21
21
conn ,
22
22
404 ,
23
- Jason . encode! ( response_body )
23
+ response_body
24
24
)
25
25
end
26
26
end
You can’t perform that action at this time.
0 commit comments