specify / webportal-installer

The Specify Web Portal
GNU General Public License v2.0
8 stars 10 forks source link

Directions to override imageBaseUrl? #81

Open misilot opened 2 weeks ago

misilot commented 2 weeks ago

Can you provide directions on how to overwrite the imageBaseUrl?

I tried custom_settings//settings.json

{
    "imageBaseUrl": "https://biodis-assets.ksulib.net/"
}

as well as webportal-installer/build/setting_templates//settings.json

{
    "solrPageSize": 50,
    "imagePreviewSize": 200,
    "imageViewSize": 600,
    "imageInfoFlds": "",
    "imageBaseUrl": "https://biodis-assets.ksulib.net/",
    "backgroundURL": "resources/images/biodIS_logo.png",
    "bannerURL": null,
    "bannerTitle": "Kansas State biodIS Herbarium Portal",
    "bannerHeight": 120,
    "bannerWidth": 250
}

but the imageBaseUrl never gets applied to the actual ./home/specify/webportal-installer/build/html//resources/config/settings.json

mcruz-umich commented 1 week ago

According to my notes.... after using the Specify Data Exporter to export a "Specify Web Portal", I then opened the zip file and modified the contents inside: There is a file called: PortalInstanceSetting.json

An example of how I modified this is:

For accessing a remote specify attachment server: { "portalInstance": "002039a9-47a8-4c54-bfca-b498c2c7bcf9", "collectionName": "Fish", "imageBaseUrl": "http://specify-stor.lsait.lsa.umich.edu:8080", "imageInfoFlds": " catalogNumber stationFieldNumber" }

Then I re-zip and deploy that catalog.zip.

I do not know if this will help you or not. Message me directly and we can talk more.

Sincerely, Matthew

On Wed, Sep 25, 2024 at 4:22 PM Tom Misilo @.***> wrote:

Can you provide directions on how to overwrite the imageBaseUrl?

I tried custom_settings//settings.json

{ "imageBaseUrl": "https://biodis-assets.ksulib.net/" }

as well as webportal-installer/build/setting_templates//settings.json

{ "solrPageSize": 50, "imagePreviewSize": 200, "imageViewSize": 600, "imageInfoFlds": "", "imageBaseUrl": "https://biodis-assets.ksulib.net/", "backgroundURL": "resources/images/biodIS_logo.png", "bannerURL": null, "bannerTitle": "Kansas State biodIS Herbarium Portal", "bannerHeight": 120, "bannerWidth": 250 }

but the imageBaseUrl never gets applied to the actual ./home/specify/webportal-installer/build/html//resources/config/settings.json

— Reply to this email directly, view it on GitHub https://github.com/specify/webportal-installer/issues/81, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIWEL5HBPOQJZJHLTHZ7A2DZYMLQ3AVCNFSM6AAAAABO3KCGBWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DQOJSHA2DKMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Matthew Cruz, Application Architect Web and Application Development Services LSA Technology Services The University of Michigan

misilot commented 1 week ago

Thanks! I was hoping the overrides would work, and I was just missing something. I can look at injecting the it into our Docker build post the zip file being built.

mcruz-umich commented 1 week ago

Yeah, I seem to remember having trouble with that and I think I found that the code has an issue with implementing the override but it was so long ago it is hard to remember. I wish I could look at this more, but right now I cannot.

On Thu, Sep 26, 2024 at 2:53 PM Tom Misilo @.***> wrote:

Thanks! I was hoping the overrides would work, and I was just missing something. I can look at injecting the it into our Docker build post the zip file being built.

— Reply to this email directly, view it on GitHub https://github.com/specify/webportal-installer/issues/81#issuecomment-2377702430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIWEL5H675HQUFZYLME7QBLZYRJ3LAVCNFSM6AAAAABO3KCGBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXG4YDENBTGA . You are receiving this because you commented.Message ID: @.***>

-- Matthew Cruz, Application Architect Web and Application Development Services LSA Technology Services The University of Michigan