Time |
Nick |
Message |
05:00 |
pinesol_green |
News from qatests: Test Success <http://testing.evergreen-ils.org/~live> |
09:50 |
|
genpaku joined #evergreen |
14:49 |
|
Dyrcona joined #evergreen |
15:57 |
|
kenstir joined #evergreen |
16:06 |
kenstir |
How do I query the 856 field via OSRF? In the Android app, I provide an "online access" button for electronic resources, and "place hold" for others. I want to reliably determine whether a record is an online resource and if so the URL. I have been using "open-ils.search.biblio.record.mods_slim.retrieve", but it is not working in some cases. |
16:15 |
Dyrcona |
mods won't include the 856, I don't think. |
16:16 |
Dyrcona |
You could retrieve the MARC of the record and parse that. |
16:20 |
kenstir |
and can you lend me a clue as to how to retrieve the MARC of the record given a record ID? |
16:23 |
kenstir |
I am grepping through Open-ILS/src/perlmods for all methods with "marc" in the name but so far this is not fruitful. |
16:29 |
Dyrcona |
You can retrieve the bre object via pcrud. The marc field will have the marcxml representation of the record. |
16:32 |
kenstir |
Thanks, that's a great lead! |
16:33 |
Dyrcona |
You can also try open-ils.supercat.record.marcxml.retrieve |
16:34 |
Dyrcona |
I'm having fun trying to get FreeBSD syslog to route messages through a script... |
16:34 |
kenstir |
That does sound like fun:) |
16:35 |
kenstir |
I have been using https://webby.evergreencatalog.com/opac/extras/docgen.xsl to explore the service APIs, but they are not always listed. |
16:37 |
Dyrcona |
Well, if I grep lines from the logs into my script, the script seems to work. |
16:37 |
Dyrcona |
When I configure the line in syslog.conf, nothing seems to happen. |
16:39 |
Dyrcona |
Well, if that docgen.xsl is using srsh's introspect command, it can choke on the services with lots of autogenerated methods like storage and cstore. |
16:42 |
Dyrcona |
Well, I got my script to work. At least, it created the db file. :) |
16:42 |
Dyrcona |
I'm trying to be pro-active about blocking sites that try to guess passwords over email ports. |
16:43 |
kenstir |
Cool, I didn't know you could syslog to a script. |
16:43 |
kenstir |
Do you know about fail2ban? |
16:43 |
Dyrcona |
You can on FreeBSD. I'm not sure it works with rsyslog on most Linux systems. |
16:43 |
Dyrcona |
Yes, I know about it, but this is simpler. :) |
16:43 |
kenstir |
At my shop we use syslog-ng everywhere |
16:44 |
Dyrcona |
yeah, I looked at syslog-ng's documentation and I'm not sure you can do this with syslog-ng, either. :) |
16:44 |
Dyrcona |
Anyway, I'm blocking sites that try non-existent accounts or accounts that do not receive email immediately. |
16:45 |
Dyrcona |
If you try a legit account, you get blocked after so many failures in a certain time period, hence the dbm file. |
16:46 |
Dyrcona |
I tested it by deliberately messing up my password. |
16:46 |
Dyrcona |
I've been getting attacked every couple of weeks from Romania, Belize, and Ukraine mostly. |
16:53 |
kenstir |
It's annoying, but as soon as you bring up a server on a public IP it gets probed. |
16:56 |
Dyrcona |
Yeah. |
16:56 |
Dyrcona |
And my script works, 'cause I managed to fail enough times to get blocked in my firewall. :) |
16:58 |
Dyrcona |
I guess my first attempt at configuring it didn't have the program name filter correct, and my second attempt had the wrong level. |
16:59 |
Dyrcona |
I wonder if it works if I move it to the bottom of the file? |
17:00 |
pinesol_green |
News from qatests: Test Success <http://testing.evergreen-ils.org/~live> |
17:00 |
Dyrcona |
Yes, apparently, so that wasn't my problem before. |
17:00 |
Dyrcona |
Anyway, enough about that. |
22:07 |
dbs |
@later tell kenstir https://example.org/opac/extras/supercat/retrieve/marcxml-full/record/907278 to get the MARCXML + holdings + URIs for record 907278, per https://wiki.evergreen-ils.org/doku.php?id=backend-devel:supercat:examples |
22:07 |
pinesol_green |
dbs: The operation succeeded. |