Skip to content

Instantly share code, notes, and snippets.

View boutros's full-sized avatar

Petter Goksøyr Åsen boutros

  • Oslo Public Library
  • Oslo
View GitHub Profile
@boutros
boutros / branches.txt
Created February 17, 2023 14:08
branchcode 2 isil
"bjor": "NO-2030000", // Deichman Bjørvika
"btoyen": "NO-2030100", // Deichman Biblo Tøyen
"fbje": "NO-2032000", // Deichman Bjerke
"fbjo": "NO-2031502", // Deichman Bjørnholt
"fbol": "NO-2031100", // Deichman Bøler
"ffur": "NO-2031600", // Furuset bibliotek og aktivitetshus
"fgam": "NO-2030600", // Deichman Tøyen
"fgry": "NO-2030500", // Deichman Grünerløkka
"fhol": "NO-2030900", // Deichman Holmlia
"flam": "NO-2031000", // Deichman Lambertseter
@boutros
boutros / temp.txt
Last active February 7, 2023 10:41
Samtaler mellom kompjutere
SIRKULATOR overordnet plan
1 metatada import/export roughly working, inc oai provder
2 job scheduler/runner, with som exampels: harvesting snl and wikidata descriptions for persons, reindexing, oai harvesting
3 items and circulation, incl borrowers/users/staff/bot agents
4 public facing website for catalog, search and explore, but no ordering yet
5 ncip/sip2 support
6 stresstest/integrationtest
* rename interne og eksterne beskrivelser - beskrivelser? tekster om? (+antall)
* slå sammen wikidata, wikipeda, snl, isbnforlag til enhetlig Publisher struct for import: ta en bokstav i ny og ne! ca 200-forlag?
@boutros
boutros / caller.go
Created March 26, 2021 13:45 — forked from ribice/caller.go
A robust rabbitmq client for Go
go func() {
for {
err = rmq.Stream(cancelCtx)
if errors.Is(err, rabbitmq.ErrDisconnected) {
continue
}
break
}
}()
@boutros
boutros / verdier.txt
Created January 26, 2021 17:34
kommune, bydel og delbydel
MariaDB [koha_deichman]> SELECT DISTINCT municipality AS kommune FROM borrowers;
+------------------------------+
| kommune |
+------------------------------+
| NULL |
| OSLO |
| ULLENSAKER |
| MOSS |
| BÆRUM |
| HAMAR |
@boutros
boutros / diff.patch
Created September 15, 2020 06:10
terms query boost
diff --git a/sibyl/assets/esconf/autocomplete_mapping.json b/sibyl/assets/esconf/autocomplete_mapping.json
index b98efeb73..ff10abd7b 100644
--- a/sibyl/assets/esconf/autocomplete_mapping.json
+++ b/sibyl/assets/esconf/autocomplete_mapping.json
@@ -5,6 +5,9 @@
"analyzer": "autocomplete",
"search_analyzer": "autocomplete_search"
},
+ "exact": {
+ "type": "keyword"
@boutros
boutros / phrase_suggest.diff
Created August 19, 2020 10:52
sibyl phrase suggestor (did you mean)
diff --git a/sibyl/assets/esconf/publication_mapping.json b/sibyl/assets/esconf/publication_mapping.json
index a51436a72..916d90d21 100644
--- a/sibyl/assets/esconf/publication_mapping.json
+++ b/sibyl/assets/esconf/publication_mapping.json
@@ -7,7 +7,17 @@
"type": "keyword"
},
"suggest": {
- "type": "completion"
+ "type": "text",
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
genre label specification
http://data.deichman.no/genre/g10203700 "Norsk poesi" "Samlinger"
http://data.deichman.no/genre/g10208200 "Norsk poesi" "Overs."
http://data.deichman.no/genre/g10215800 "Drama" "Samlinger"
http://data.deichman.no/genre/g10234900 "Science fiction" "Samlinger"
http://data.deichman.no/genre/g10783700 "Gresk litteratur" "Samlinger"
http://data.deichman.no/genre/g10787400 "Kanadisk litteratur" "Samlinger"
http://data.deichman.no/genre/g10794300 "Litteratur" "Tidsskrifter"
http://data.deichman.no/genre/g10903900 "Eventyr" "Kunsteventyr"
http://data.deichman.no/genre/g11097600 "Barnerim" "Billedbøker"
@boutros
boutros / diff.patch
Created June 12, 2020 09:57
perl utf8 føkk
diff --git a/koha/api/RESTAPI/Spore/Api.pm b/koha/api/RESTAPI/Spore/Api.pm
index 267d668f1..df208d5c5 100644
--- a/koha/api/RESTAPI/Spore/Api.pm
+++ b/koha/api/RESTAPI/Spore/Api.pm
@@ -9,6 +9,7 @@ use Types::Standard qw(HashRef Any Int Str);
use Deichman::Spore::Exception;
use Deichman::Spore::DB;
use Deichman::Spore::Scanner::Response;
+use utf8;
@boutros
boutros / ldif.go
Last active May 28, 2020 08:43
ldif navn og epost
package main
import (
"fmt"
"io/ioutil"
"log"
"github.com/go-ldap/ldif"
)
This file has been truncated, but you can view the full file.
_:b2714114 <http://data.deichman.no/ontology#partNumber> "2" <https://katalog.deichman.no> .
_:b2714114 <http://data.deichman.no/ontology#workSeries> <http://data.deichman.no/workSeries/385d9165-8e5f-4db6-874f-678d94b59cfa> <https://katalog.deichman.no> .
_:b2714114 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://data.deichman.no/ontology#WorkSeriesPart> <https://katalog.deichman.no> .
_:b2714115 <http://data.deichman.no/ontology#agent> <http://data.deichman.no/person/3f77bae9-91ae-414c-945b-faf5875ea97c> <https://katalog.deichman.no> .
_:b2714115 <http://data.deichman.no/ontology#role> <http://data.deichman.no/role#illustrator> <https://katalog.deichman.no> .
_:b2714115 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://data.deichman.no/ontology#Contribution> <https://katalog.deichman.no> .
_:b2714116 <http://data.deichman.no/ontology#agent> <http://data.deichman.no/person/3f77bae9-91ae-414c-945b-faf5875ea97c> <https://katalog.deichman.no> .
_:b2714116 <http://data.deichman.no/ontology#role>