Skip to content

Instantly share code, notes, and snippets.

@xmorave2
Created January 24, 2022 09:57
Show Gist options
  • Save xmorave2/cd92ace384659496ae9ce49fa8e69918 to your computer and use it in GitHub Desktop.
Save xmorave2/cd92ace384659496ae9ce49fa8e69918 to your computer and use it in GitHub Desktop.
Chybně datum v $a v autoritách
SELECT
CONCAT('<a href=\"/cgi-bin/koha/authorities/detail.pl?authid=', authid, '\">', authid, '</a>' ) AS authid, ExtractValue(marcxml,'//datafield[@tag="100"]/subfield[@code="a"]') as podpoleA
FROM auth_header
HAVING podpoleA REGEXP '[0-9]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment