[Koha] SQL help - Retrieve itemnumbers based on local subject keyword
craig.butosi at rcmusic.ca
Sat Oct 22 05:53:48 NZDT 2016
Koha 16.05.03 on Ubuntu 14.04 LTS (package install)
I need to batch modify a subset of records in our db. I have to use itemnumbers rather than barcodes to populate the list because not all of the records to be modified have a barcode. I've tried the following SQL to no avail:
WHERE (SELECT biblionumber, ExtractValue(marcxml,'//datafield[@tag="690"]/subfield[@code>="a"]')
LIKE <<Enter keyword surrounded BY %>>
As you can see, I need to retrieve item numbers based on a keyword query from the 690$a field (MARC21).
Would someone be so kind as to lend a hand?
Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
the royal conservatory
TELUS Centre for Performance and Learning
273 Bloor Street West
Toronto, ON M5S 1W2
Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
More information about the Koha