Skip to content

Instantly share code, notes, and snippets.

Sylvain Machefert symac

Block or report user

Report or block symac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CheckDOI.json
[
{
"op": "core/column-addition-by-fetching-urls",
"description": "Create column DOI_resolver at index 1 by fetching URLs based on column DOI using expression grel:\"https://doi.org/api/handles/\" + value + \"?type=URL\"",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"newColumnName": "DOI_resolver",
"columnInsertIndex": 1,
View getCat.sh
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/7/75/Achat_Nm_1_1_1_-_Elix.ogv/Achat_Nm_1_1_1_-_Elix.ogv.480p.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a4/Alasaintglinglin_Adv_1_1_-_Elix.ogv/Alasaintglinglin_Adv_1_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/1/18/Ame_Nf_2_2_1_-_Elix.ogv/Ame_Nf_2_2_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/7/7e/Analogie_Nf_1_2_1_-_Elix.ogv/Analogie_Nf_1_2_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4a/Appetit_Nm_1_1_1_-_Elix.ogv/Appetit_Nm_1_1_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a6/Archipel_Nm_1_2_1_-_Elix.ogv/Archipel_Nm_1_2_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/transcoded/3/37/Bapteme_Nm_2_1_1_-_Elix.ogv/Bapteme_Nm_2_1_1_-_Elix.ogv.480p.vp9.webm
wget https://upload.wikimedia.org/wikipedia/commons/tr
View 9408.xml
<nkl:Data xmlns:dcterms="http://purl.org/dc/terms/" xmlns:nkl="http://nakala.fr/schema#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:title>Cours du Niger de Tombouctou &#224; Boussa : Mission Hourst</dcterms:title>
<dcterms:creator>Hourst</dcterms:creator>
<dcterms:creator>France</dcterms:creator>
<dcterms:type>http://purl.org/dc/dcmitype/StillImage</dcterms:type><dcterms:created>1899</dcterms:created>
<dcterms:coverage>Afrique de l'ouest int&#233;rieure</dcterms:coverage>
<dcterms:identifier>10-6-1-21</dcterms:identifier>
<dcterms:identifier>http://1886.u-bordeaux-montaigne.fr/items/show/9408</dcterms:identifier>
<dcterms:identifier>http://1886.u-bordeaux-montaigne.fr/files/original/a8e55722b79ac59840389c9709e511da.jpg</dcterms:identifier>
<nkl:originalFilename>B335222107_10_06_01_21_001.jpg</nkl:originalFilename><nkl:inCollection>11280/5b3d17c8</nkl:inCollection></nkl:Data>
View bib_ubm.tsv
33PUDB_UBM 3100400000 33PUDB_UBM_3100400000 Arts and Humanities Library fr_FR Lettres et Sciences humaines
33PUDB_UBM 3300700000 33PUDB_UBM_3300700000 Bib. aménagement et communication fr_FR IATU/ISIC (Aménagement/Communication)
33PUDB_UBM 3000100000 33PUDB_UBM_3000100000 Bibliothèque électronique fr_FR Bibliothèque électronique
33PUDB_UBM 3200300000 33PUDB_UBM_3200300000 English, German and Linguistics Library fr_FR Henri Guillemin
33PUDB_UBM 3200600000 33PUDB_UBM_3200600000 Franco-German Library fr_FR Franco-allemande
33PUDB_UBM 3300200000 33PUDB_UBM_3300200000 Geography and Maps Library fr_FR Géographie/Cartothèque
33PUDB_UBM 3100500000 33PUDB_UBM_3100500000 History and Art History Library fr_FR Histoire/Histoire de l'art
33PUDB_UBM 3400900000 33PUDB_UBM_3400900000 IUT/IJBA Documentation Centre fr_FR IUT/IJBA
33PUDB_UBM 3200100000 33PUDB_UBM_3200100000 Iberian Library fr_FR Etudes ibériques
33PUDB_UBM 3200800000 33PUDB_UBM_3200800000 LE/LEA Library fr_FR L.E./L.E.A.
View main.js
let app = angular.module('viewCustom', [
'angularLoad',
]
);
app.component('prmSearchBarAfter', {
bindings: { parentCtrl: '<' },
controller: 'prmSearchBarAfterController',
// templateUrl:'/primo-explore/custom/33PUDB_UBM_VU1/html/libqual.html'
});
View primo_to_library.php
<?php
$library = $_GET["libraryCode"];
$urls = [
"3100400000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque-universitaire-de-lettres.html",
"3101000000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque_maison_de_l_archeologie.html",
"3100500000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque-d-histoire-histoire-de-l-art.html",
"3200100000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque_etudes_iberiques_et_ibero_americaines.html",
"3200300000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque_lettres_anglais.html",
"3200600000" => "http://www.u-bordeaux-montaigne.fr/fr/documentation/vos-bibliotheques/bibliotheque-franco-allemande-bifa.html",
View logs.tsv
MMM.Common.Devices.Barcode.MicroscanScanner DEBUG 7/10/2018 14:08:23 999 Barcode Event: 1
MMM.Common.Devices.Barcode.MicroscanScanner DEBUG 7/10/2018 14:08:23 999 Barcode Read: 1xxxxx5287
MMM.Common.Devices.Barcode.MicroscanScanner DEBUG 7/10/2018 14:08:23 999 Trim data
MMM.Common.Events.EventManager DEBUG 7/10/2018 14:08:24 19 Handling event EVENT_BARCODE_DATA (7/10/2018 2:08:23 PM)
MMM.Common.Devices.Barcode.MicroscanScanner DEBUG 7/10/2018 14:08:24 29 Device: Scanline has been disabled.
MMM.Common.Events.EventManager DEBUG 7/10/2018 14:08:24 119 Handling event EVENT_CONTROLLER_SESSION_SCRUBBED (7/10/2018 2:08:24 PM)
MMM.Common.Events.EventManager DEBUG 7/10/2018 14:08:24 219 Handling event EVENT_CIP_LOOKUP_USER (7/10/2018 2:08:24 PM)
MMM.Common.CIP.CIPManager INFO 7/10/2018 14:08:24 219 Handle CIP Event: EVENT_CIP_LOOKUP_USER
MMM.Common.CIP.CIPManager INFO 7/10/2018 14:08:24 229 sending request for charged items...
CirculationBL.SIPBL DEBUG 7/10/2018 14:08:24 229 Leaving state to: CirculationBL.SIPBLRea
View tuto_abes.csv
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 5.
Année NOM Prénom Titre de la thèse N° National
2012 GANTCHOULA Philippe Tonalité et analyse harmonique : une nouvelle approche théorique 2012BOR30017
2012 CHEHADE Nicolas Les patrimoines communautaires grecs-orthodoxes au Mont-Liban : les waqfs des monastères, réseaux de rapports sociaux à l'époque contemporaine 2012BOR30034
2012 LACROIX DI MEO Elodie Mise en récits et réévaluation de l'Art Déco des années soixante à nos jours 2012BOR30035
2012 METREAU Laetitia "La "" faïence "" dans les pavements médiévaux en France (XIIIe-XIVe s.) : approche technique, stylistique et symbolique du cas de Suscinio (c. 1330-1350)" 2012BOR30036
2012 ARFAOUI Saïda Le monde latin dans l'oeuvre de Pascal Quignard 2012BOR30038
2012 DULAURANS Marlène Communication et coopération décentralisée : le cas de la région Aquitaine 2012BOR30042
2012 DELMOTTE Benjamin Le visible et l'intouchable : la vision et son épreuve phénoménologique dans l'oeuvre d'Alberto Giacometti 2012BOR30049
2012 DAUGET Stéphanie Au seuil du visible : pour un dis
View parseRdfAbes.php
<?php
$dom = simplexml_load_file('http://www.sudoc.fr/119409887.rdf');
$title = (string) current($dom->xpath('//rdf:RDF/*/dc:title'));
$authors = $dom->xpath('//rdf:RDF/*/marcrel:aut/foaf:Person/foaf:name');
print "Titre : $title\n";
print "Auteur(s) :\n";
foreach ($authors as $author) {
print "\t".$author."\n";
}
View test_recouvrement.sql
TRUNCATE `3IN_SSID`;
SET CHARACTER SET 'utf8';
SET collation_connection = 'utf8_general_ci'
LOAD DATA LOCAL INFILE "/home/smachefert/Bureau/DG_201803/3IN_SSID.csv" INTO TABLE `3IN_SSID` FIELDS TERMINATED BY "," ENCLOSED BY '"' LINES TERMINATED BY "\n" IGNORE 1 LINES;
# mise à jour de la base après chargement :
ALTER TABLE `3IN_SSID` ADD `LN` BOOLEAN NOT NULL DEFAULT FALSE AFTER `PublisherName`;
ALTER TABLE `3IN_SSID` ADD `coverage` VARCHAR(255) NOT NULL AFTER `LN`;
UPDATE 3IN_SSID set LN = 1 where Resource like '%ational%';
update 3IN_SSID set coverage = CONCAT(StartDate, " - ", EndDate) where EndDate != '' or StartDate != '';
You can’t perform that action at this time.