Item citation proxied site


#1

What would be the best way to get a proper citation on a proxied Omeka site. So we proxy are site, and all citations look like this:

“Croton, Bruttium, Silver Stater,” Hallie Ford Museum of Art Exhibits , accessed April 15, 2019, http://lib-omeka.willamette.edu/hfma/omeka/items/show/61.

but they should be from the site we proxy:

“Croton, Bruttium, Silver Stater,” Hallie Ford Museum of Art Exhibits , accessed April 15, 2019, https://libmedia.willamette.edu/hfma/omeka/items/show/61.

Thanks,
Bill K.


#2

So my current solution is to edit the Item.php file in the application/models folder:

/// Fix citation URL for proxy on libmedia
$url = str_replace(‘http://lib-omeka’,‘https://libmedia’,$url);