Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
archipelago:canta_base [2019/02/18 14:38]
giancarlo
archipelago:canta_base [2019/02/18 15:10]
giancarlo
Line 74: Line 74:
 </code> </code>
 </WRAP> </WRAP>
 +  * enable delegates script
 +<WRAP prewrap center>
 +<code>
 +sudo nano -w cantaloupe.properties
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +delegate_script.enabled = true
 +source.delegate = true
 +FilesystemSource.BasicLookupStrategy.path_prefix = /mnt/
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +sudo nano -w delegates.rb
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +  def source(options = {})
 +       identifier = context['identifier']
 +       if identifier.include? "http"
 +               'HttpSource'
 +       else
 +               'FilesystemSource'
 +       end
 +  end
 +</code>
 +</WRAP>
 +The identifier for local file in /mnt/data (i.e. test.png) must be data%2Ftest.png
 
 
archipelago/canta_base.txt ยท Last modified: 2019/02/18 18:26 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki