Hyperlink item not showing hyperlink on public page

Howdy all! Hoping this is a quick “user error” issue.

Our organization uses Flickr to host our photographic archives. I’ve added them to Omeka using the “hyperlink” item type, with the link to the Flickr album added to the URL field under the Item Type Metadata tab. Everything looks correct on the backend…however, on the public side, the URL is not shown; the only things shown on the public page are Collection, Tags, Citation, and Output Formats. Any ideas as to why this might be or how I can fix it? (If need be, I can try using the Website item type instead of the URL item type, but that doesn’t seem like the best approach, just a “good enough” approach.)

Thanks!

Fiddly details:

Main site: Norwescon Historical Archives
Omeka Classic v3.2.2
Theme: Freedom v1.1.0
Sample public page: Norwescon 2 Photo Gallery
Screenshots of backend view for the sample page:

Full system information:

User
Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.2 Safari/605.1.15
Role super
System
Omeka 3.2.2
PHP 8.4.28 (cgi-fcgi)
OS Linux 6.18.59-grsec-noble+ x86_64
MySQL Server 8.4.11
MySQL Client mysqlnd 8.4.28
PHP Extensions
Regular bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dh_php_ext, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, random, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib
Zend Zend OPcache
Plugins
CSSEditor 1.2
DocsViewer 2.2
Dropbox 1.0
Html5Media 2.8.1
ItemOrder 2.2
MoreMediaTypes 1.4
SimplePages 3.3.1
TagsPlus 1.2
Themes
berlin 2.7.7
default 2.8.1
freedom 1.1.0 (current)
minimalist 2.5.4
seasons 2.8.1

Have you edited the theme at all? This looks like it’s missing the usual call to print the metadata entirely.

Nope, no theme file edits, and all other item types that I’ve used display all metadata as expected.

But that’s a good catch: The Dublin Core section is missing as well. Now I’m wondering if there’s a bug in the theme files for this item type. Hmm…

@djwudi thanks for the details. This doesn’t look like a bug in Freedom. From the HTML on your site, your copy of themes/freedom/items/show.php differs from the released theme: it prints the item metadata inside the Files section, so metadata only shows on items that have files attached. Hyperlink items usually have no files, so nothing shows, not even Dublin Core. Your item 100, for example, shows its metadata only because it has a PDF.

In every released version of Freedom, including 1.1.0, the metadata is printed before the Files section, whether or not the item has files. I tested a Hyperlink item with no files on a stock install of Freedom 1.1.0, and the Dublin Core and URL fields display as expected.

The file may have been changed at some point, maybe during a past customization, a migration, or by your host. Replacing themes/freedom/items/show.php with the copy from the 1.1.0 release, or re-uploading the whole theme, should fix it. You won’t need to switch these items to the Website type. If you’ve made other customizations to the theme, back them up first.

Aha! Yup — reinstalled the theme, and that did the trick. Thank you!

Oddly, I have no idea why or when that file would have been changed. I’m the only one with keys to the backend and hosting provider, and I certainly don’t remember mucking around with things. I guess I’ll just chalk this up to “computers are weird”.

Thanks so much for the help!

1 Like