NYULibraries/primo-endpoint

problem with "paste" in config

Closed this issue · 3 comments

ekate commented

For a new collection I need to paste several fields and strings to create a url as "available" field in primo.
available:
paste:
- "http://dlib.nyu.edu/findingaids/html/fales/mss_496/dsc"
- ref_ssi
- ".html"
The url is not constructed, e.g. the value of "available" field is empty. If I use ".html#" all works as expected. I think html is interpreted as variable name. Is it possible ? Could you please take a look. I add the branch called mss_496 which has a new config

dylex commented

That sounds right -- if there are only alphanumerics or "._" it's treated as a field name. If you change it to - string: ".html" does that work?

dylex commented

I think you could also write it all as "http://dlib.nyu.edu/findingaids/html/fales/mss_496/dsc/${ref_ssi}.html" if that helps.

ekate commented

Ah, okay. That work. Thanks