From 594f08c53d07bf0b92e03375df93de97e9084367 Mon Sep 17 00:00:00 2001 From: Marijana Glavica Date: Mon, 6 Jan 2014 19:40:56 +0100 Subject: [PATCH] vhost/ecas changes --- vhost/ecas/blackwell.pl | 0 vhost/ecas/cairn.pl | 5 +- vhost/ecas/cairn2json.pl | 10 ++ vhost/ecas/cambridge-lookup.pl | 30 ++++ vhost/ecas/cambridge.pl | 32 ++-- vhost/ecas/cambridge2json-lookup.pl | 30 ++++ vhost/ecas/cambridge2json.pl | 10 ++ vhost/ecas/config-json.yml | 227 ++++++++++++++++++++++++++++ vhost/ecas/config.yml | 181 ++++++++++++---------- vhost/ecas/data | 1 + vhost/ecas/degruyter2json.pl | 15 ++ vhost/ecas/doaj.pl | 11 +- vhost/ecas/doaj2json.pl | 19 +++ vhost/ecas/duke2json.pl | 21 +++ vhost/ecas/ecas-labels.txt | 9 +- vhost/ecas/ecas-search.html | 6 +- vhost/ecas/emerald.pl | 15 +- vhost/ecas/emerald2json.pl | 8 + vhost/ecas/hrcak.pl | 1 - vhost/ecas/html.pm | 11 +- vhost/ecas/jstor.pl | 18 +-- vhost/ecas/jstor2json.pl | 12 ++ vhost/ecas/kbar.pl | 31 ++++ vhost/ecas/marc-ebsco.pl | 22 +++ vhost/ecas/marc-muse.pl | 24 +++ vhost/ecas/marc-muse2json.pl | 20 +++ vhost/ecas/marc.pl | 2 +- vhost/ecas/marc2json.pl | 19 +++ vhost/ecas/muse2json.pl | 11 ++ vhost/ecas/ovid.pl | 12 +- vhost/ecas/ovid2json.pl | 10 ++ vhost/ecas/pojedinacni.pl | 16 ++ vhost/ecas/pubmed.pl | 4 +- vhost/ecas/pubmed2json.pl | 9 ++ vhost/ecas/sage2json.pl | 6 + vhost/ecas/sd-txt2web.pl | 20 +++ vhost/ecas/sd.pl | 13 +- vhost/ecas/sd2json.pl | 16 ++ vhost/ecas/springer2json.pl | 10 ++ vhost/ecas/wiley2json.pl | 11 ++ 40 files changed, 786 insertions(+), 142 deletions(-) mode change 100755 => 100644 vhost/ecas/blackwell.pl create mode 100644 vhost/ecas/cairn2json.pl create mode 100644 vhost/ecas/cambridge-lookup.pl create mode 100644 vhost/ecas/cambridge2json-lookup.pl create mode 100644 vhost/ecas/cambridge2json.pl create mode 100644 vhost/ecas/config-json.yml create mode 120000 vhost/ecas/data create mode 100644 vhost/ecas/degruyter2json.pl create mode 100644 vhost/ecas/doaj2json.pl create mode 100644 vhost/ecas/duke2json.pl create mode 100644 vhost/ecas/emerald2json.pl create mode 100644 vhost/ecas/jstor2json.pl create mode 100644 vhost/ecas/kbar.pl create mode 100644 vhost/ecas/marc-ebsco.pl create mode 100644 vhost/ecas/marc-muse.pl create mode 100644 vhost/ecas/marc-muse2json.pl create mode 100644 vhost/ecas/marc2json.pl create mode 100644 vhost/ecas/muse2json.pl mode change 100755 => 100644 vhost/ecas/ovid.pl create mode 100644 vhost/ecas/ovid2json.pl create mode 100644 vhost/ecas/pojedinacni.pl create mode 100644 vhost/ecas/pubmed2json.pl create mode 100644 vhost/ecas/sage2json.pl create mode 100644 vhost/ecas/sd-txt2web.pl create mode 100644 vhost/ecas/sd2json.pl create mode 100644 vhost/ecas/springer2json.pl create mode 100644 vhost/ecas/wiley2json.pl diff --git a/vhost/ecas/blackwell.pl b/vhost/ecas/blackwell.pl old mode 100755 new mode 100644 diff --git a/vhost/ecas/cairn.pl b/vhost/ecas/cairn.pl index d4f3760..96aee1a 100644 --- a/vhost/ecas/cairn.pl +++ b/vhost/ecas/cairn.pl @@ -1,9 +1,8 @@ - search( 'title', rec('A') ); search( 'issn', rec('C') ); search( 'publisher', rec('B') ); -search( 'url', rec('E') ); -search( 'urlp', rec('E') ); +search( 'url', rec('E') ); +search( 'urlp', rec('E') ); search( 'collection', config('input description') ) diff --git a/vhost/ecas/cairn2json.pl b/vhost/ecas/cairn2json.pl new file mode 100644 index 0000000..5e4c5d8 --- /dev/null +++ b/vhost/ecas/cairn2json.pl @@ -0,0 +1,10 @@ +tag('title', rec('A') ); +tag('issn', rec('C') ); +tag('publisher', rec('B') ); +tag('url', rec('E') ); +tag('urlp', rec('E') ); +tag( 'collection', + config('input description') +); + + diff --git a/vhost/ecas/cambridge-lookup.pl b/vhost/ecas/cambridge-lookup.pl new file mode 100644 index 0000000..648f399 --- /dev/null +++ b/vhost/ecas/cambridge-lookup.pl @@ -0,0 +1,30 @@ +my $issn_key = + rec('F'); + +my $issn = get( $issn_key ); + +if ( $issn ) { + # warn "nije novi"; +} else { + +$issn = rec('F'); + +set( $issn_key => $issn ); + + +search( 'title', rec('D') ); +search( 'abbtitle', rec('E') ); +search( 'issn', + join_with(' ; ', + $issn, + rec('G') + ) +); +search( 'publisher', 'Cambridge' ); +search( 'url', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); +search( 'urlp', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); +search( 'collection', + config('input description') +) + +} diff --git a/vhost/ecas/cambridge.pl b/vhost/ecas/cambridge.pl index 648f399..5f906ed 100644 --- a/vhost/ecas/cambridge.pl +++ b/vhost/ecas/cambridge.pl @@ -1,30 +1,16 @@ -my $issn_key = - rec('F'); - -my $issn = get( $issn_key ); - -if ( $issn ) { - # warn "nije novi"; -} else { - -$issn = rec('F'); - -set( $issn_key => $issn ); - - -search( 'title', rec('D') ); -search( 'abbtitle', rec('E') ); +search( 'title', rec('B') ); search( 'issn', join_with(' ; ', - $issn, - rec('G') + rec('C'), + rec('D') ) ); -search( 'publisher', 'Cambridge' ); -search( 'url', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); -search( 'urlp', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); +#search( 'coverage', rec('C') ); +search( 'publisher', 'Cambridge University Press' ); +search( 'url', rec('K') ); +search( 'urlp', rec('K') ); +#search( 'subject', rec('J') ); search( 'collection', config('input description') -) +); -} diff --git a/vhost/ecas/cambridge2json-lookup.pl b/vhost/ecas/cambridge2json-lookup.pl new file mode 100644 index 0000000..c52c920 --- /dev/null +++ b/vhost/ecas/cambridge2json-lookup.pl @@ -0,0 +1,30 @@ +my $issn_key = + rec('F'); + +my $issn = get( $issn_key ); + +if ( $issn ) { + # warn "nije novi"; +} else { + +$issn = rec('F'); + +set( $issn_key => $issn ); + + +tag( 'title', rec('D') ); +tag( 'abbtitle', rec('E') ); +tag( 'issn', + join_with(' ; ', + $issn, + rec('G') + ) +); +tag( 'publisher', 'Cambridge' ); +tag( 'url', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); +tag( 'urlp', 'http://journals.cambridge.org/' . lc ( rec('A') ) ); +tag( 'collection', + config('input description') +) + +} diff --git a/vhost/ecas/cambridge2json.pl b/vhost/ecas/cambridge2json.pl new file mode 100644 index 0000000..e0fdd88 --- /dev/null +++ b/vhost/ecas/cambridge2json.pl @@ -0,0 +1,10 @@ +tag( 'title', rec('B') ); +tag( 'issn', rec('H') ); +tag( 'issn_e', rec('I') ); +tag( 'publisher', 'Cambridge' ); +tag( 'price_p_gbp', rec('N') ); +tag( 'price_pe_gbp', rec('Q') ); +tag( 'price_e_gbp', rec('T') ); +tag( 'collection', + config('input description') +); diff --git a/vhost/ecas/config-json.yml b/vhost/ecas/config-json.yml new file mode 100644 index 0000000..d515d3b --- /dev/null +++ b/vhost/ecas/config-json.yml @@ -0,0 +1,227 @@ +# Encoding of this file must be UTF-8! + +vhost: + inputs: 'Zbirke' + + no_results: 'nema rezultata' + +# fields: +# - issn: 'ISSN' +# - naslov: 'Naslov' +# +# operators: +# - STRINC: 'Bilo koja riječ' +# - STRBW: 'Početak naslova' +# - STREQ: 'Cijeli naslov' +# + +databases: + ecas: + name: 'Katalog elektroničkih časopisa' +# description: 'dostupnih u zbirkama nabavljenim za potrebe visokoškolskih i znanstvenih ustanova Republike Hrvatske' + input: + - name: 'cairn' + description: 'Cairn' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/cairn/Revues_Cairn.xls' + from: 1 + to: 246 + normalize: +# - path: 'vhost/ecas/cairn.pl' + - path: 'vhost/ecas/cairn2json.pl' + - name: 'cambridge' + description: 'Cambridge Journals' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/cambridge/cambridge.xls' + worksheet: 'FullPriceList' + from: 8 + to: 290 + normalize: + - path: 'vhost/ecas/cambridge2json.pl' + skip: 0 + - name: 'doaj' + description: 'DOAJ - Directory of Open Access Journals' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/doaj/doaj.csv' + normalize: +# - path: 'vhost/ecas/doaj.pl' + - path: 'vhost/ecas/doaj2json.pl' + - name: 'degruyter' + description: 'De Gruyter' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/degruyter/degruyterJournals_Euro2011.xls' + from: 1 + to: 129 + normalize: + - path: 'vhost/ecas/degruyter2json.pl' + - name: 'duke' + description: 'Duke University Press' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/duke/DUP_etitles.xls' + worksheet: 'Duke Journals Title List' + from: 3 + to: 47 + normalize: + - path: 'vhost/ecas/duke2json.pl' + - name: 'ebsco-asc' + description: 'EBSCO Academic Search Complete' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/a9h-ft.marc' + normalize: +# - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc2json.pl' + - name: 'ebsco-bsc' + description: 'EBSCO Business Source Complete' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/bth-ft.marc' + normalize: +# - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc2json.pl' + - name: 'ebsco-mfp' + description: 'EBSCO MasterFILE Premier' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/f5h-ft.marc' + normalize: +# - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc2json.pl' + - name: 'ebsco-gf' + description: 'EBSCO GreenFILE' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/8gh-ft.marc' + normalize: +# - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc2json.pl' + - name: 'ebsco-si' + description: 'EBSCO SocINDEX with Full Text' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/sih-ft.marc' + normalize: +# - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc2json.pl' + - name: 'emerald' + description: 'Emerald' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/emerald/emerald.xls' + worksheet: 'EM Plus' + from: 4 + to: 264 + normalize: + path: 'vhost/ecas/emerald2json.pl' + skip: 0 + - name: 'hrcak' + description: 'Hrčak' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/hrcak/hrcak-naslovi.xls' + normalize: + path: 'vhost/ecas/hrcak.pl' + - name: 'jstor' + description: 'JSTOR' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/jstor/as1.csv' + normalize: +# - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/jstor2json.pl' + - name: 'jstor' + description: 'JSTOR' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/jstor/as2.csv' + normalize: +# - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/jstor2json.pl' + - name: 'jstor' + description: 'JSTOR' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/jstor/as3.csv' + normalize: +# - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/jstor2json.pl' + - name: 'jstor' + description: 'JSTOR' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/jstor/as4.csv' + normalize: +# - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/jstor2json.pl' + - name: 'jstor' + description: 'JSTOR' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/jstor/as5.csv' + normalize: +# - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/jstor2json.pl' + - name: 'ovid' + description: 'Ovid Full Text' + module: 'WebPAC::Input::OvidOld' + path: 'vhost/ecas/data/ovid/ovid-full-text.txt' + normalize: +# - path: 'vhost/ecas/ovid.pl' + - path: 'vhost/ecas/ovid2json.pl' + - name: 'oxford' + description: 'Oxford Journals' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/oxford/sites.dtl' + normalize: + path: 'vhost/ecas/marc.pl' + skip: 1 + - name: 'muse' + description: 'Project MUSE' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/muse/project_muse_holdings.xls' + from: 1 + to: 504 + normalize: + - path: 'vhost/ecas/muse2json.pl' + - name: 'pubmed' + description: 'PubMed Central' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/pubmed/jlist.xls' + from: 1 + to: 233 + normalize: +# - path: 'vhost/ecas/pubmed.pl' + - path: 'vhost/ecas/pubmed2json.pl' + - name: 'sage' + description: 'SAGE Journals' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/sage/SAGE.txt' + normalize: + - path: 'vhost/ecas/sage2json.pl' + - name: 'sd' + description: 'ScienceDirect' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/sd/50661_SD_Holdings_serial.xls' + from: 7 + to: 1976 + normalize: +# - path: 'vhost/ecas/sd.pl' + - path: 'vhost/ecas/sd2json.pl' + - name: 'springeravailable' + description: 'SpringerLink - Humanities, Social Sciences and Law' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/springer/Hum-SocSci-Low.xls' + from: 1 + to: 199 + normalize: +# - path: 'vhost/ecas/springer.pl' + - path: 'vhost/ecas/springer2json.pl' +# - name: 'springerall' +# description: 'SpringerLink - Humanities, Social Sciences and Law' +# module: 'WebPAC::Input::Excel' +# path: 'vhost/ecas/data/springer/Hum-SocSci-Low.xls' +# from: 1 +# to: 200 +# normalize: +# - path: 'vhost/ecas/springer.pl' +# - path: 'vhost/ecas/springer2json.pl' + - name: 'wileyall' + description: 'Wiley-Blackwell' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/wiley/all_Wiley-Blackwell_journals_2011.xls' + from: 4 + to: 1511 + normalize: + - path: 'vhost/ecas/wiley2json.pl' + output: + - module: 'JSON' + path: 'out/ecas.js' + diff --git a/vhost/ecas/config.yml b/vhost/ecas/config.yml index 202bdf3..4e01620 100644 --- a/vhost/ecas/config.yml +++ b/vhost/ecas/config.yml @@ -22,139 +22,162 @@ databases: input: - name: 'cairn' description: 'Cairn' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/cairn/Revues_Cairn090420-utf-8.xls' - #worksheet: 'Revues_Cairn090420' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/cairn/latest/cairn.csv' + from: 1 + to: 1000 normalize: - path: 'vhost/ecas/cairn.pl' + - path: 'vhost/ecas/cairn.pl' - name: 'cambridge' - description: 'Cambridge Journals' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/cambridge/lista_naslova_cjo.xls' + description: 'Cambridge Journals, HSS Collection' + module: 'WebPAC::Input::TSV' + path: 'vhost/ecas/data/cambridge/latest/cambridge-hss.txt' normalize: - path: 'vhost/ecas/cambridge.pl' + - path: 'vhost/ecas/kbar.pl' + skip: 0 - name: 'doaj' description: 'DOAJ - Directory of Open Access Journals' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/doaj/doaj-20090721.xls' - from: 1 - to: 4272 + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/doaj/latest/doaj.csv' normalize: - path: 'vhost/ecas/doaj.pl' - - name: 'ebsco-asc' + - path: 'vhost/ecas/doaj.pl' + - name: 'ebsco-a9h' description: 'EBSCO Academic Search Complete' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/ebsco/a9h-ft.marc' + path: 'vhost/ecas/data/ebsco/latest/a9h-ft.marc' normalize: - path: 'vhost/ecas/marc.pl' - - name: 'ebsco-bsc' + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-bth' description: 'EBSCO Business Source Complete' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/ebsco/bth-ft.marc' + path: 'vhost/ecas/data/ebsco/latest/bth-ft.marc' normalize: - path: 'vhost/ecas/marc.pl' - - name: 'ebsco-mfp' - description: 'EBSCO MasterFILE Premier' + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-c8h' + description: 'EBSCO CINAHL with Full Text' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/ebsco/f5h-ft.marc' + path: 'vhost/ecas/data/ebsco/latest/c8h-ft.marc' normalize: - path: 'vhost/ecas/marc.pl' - - name: 'ebsco-gf' + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-f3h' + description: 'EBSCO Film & Television Literature Index with Full Text' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/latest/f3h-ft.marc' + normalize: + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-8gh' description: 'EBSCO GreenFILE' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/ebsco/8gh-ft.marc' + path: 'vhost/ecas/data/ebsco/latest/8gh-ft.marc' normalize: - path: 'vhost/ecas/marc.pl' - - name: 'ebsco-si' + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-hxh' + description: 'EBSCO Health Source - Consumer Edition' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/latest/hxh-ft.marc' + normalize: + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-hch' + description: 'EBSCO Health Source: Nursing/Academic Edition' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/latest/hch-ft.marc' + normalize: + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-f5h' + description: 'EBSCO MasterFILE Premier' + module: 'WebPAC::Input::MARC' + path: 'vhost/ecas/data/ebsco/latest/f5h-ft.marc' + normalize: + - path: 'vhost/ecas/marc-ebsco.pl' + - name: 'ebsco-sih' description: 'EBSCO SocINDEX with Full Text' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/ebsco/sih-ft.marc' + path: 'vhost/ecas/data/ebsco/latest/sih-ft.marc' normalize: - path: 'vhost/ecas/marc.pl' + - path: 'vhost/ecas/marc-ebsco.pl' - name: 'emerald' - description: 'Emerald EMX95' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/emerald/emx95.xls' + description: 'Emerald Journals' + module: 'WebPAC::Input::TSV' + path: 'vhost/ecas/data/emerald/latest/emerald.txt' normalize: - path: 'vhost/ecas/emerald.pl' + path: 'vhost/ecas/kbar.pl' + skip: 0 - name: 'hrcak' description: 'Hrčak' module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/hrcak/hrcak-naslovi.xls' + from: 1 + to: 1000 + workshhet: 'Sheet1' + path: 'vhost/ecas/data/hrcak/latest/hrcak.xls' normalize: path: 'vhost/ecas/hrcak.pl' + skip: 1 - name: 'jstor' description: 'JSTOR' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/jstor/as.titleList.xls' - normalize: - path: 'vhost/ecas/jstor.pl' - - name: 'jstor' - description: 'JSTOR' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/jstor/asii.titleList.xls' - normalize: - path: 'vhost/ecas/jstor.pl' - - name: 'jstor' - description: 'JSTOR' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/jstor/asiii.titleList.xls' - normalize: - path: 'vhost/ecas/jstor.pl' - - name: 'jstor' - description: 'JSTOR' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/jstor/asiv.titleList.xls' + module: 'WebPAC::Input::TSV' + path: 'vhost/ecas/data/jstor/latest/jstor.txt' normalize: - path: 'vhost/ecas/jstor.pl' - - name: 'jstor' - description: 'JSTOR' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/jstor/asv.titleList.xls' - normalize: - path: 'vhost/ecas/jstor.pl' + - path: 'vhost/ecas/kbar.pl' - name: 'ovid' description: 'Ovid Full Text' module: 'WebPAC::Input::OvidOld' - path: '/data/FF/ecasopisi/ovid/cites-all.txt' + path: 'vhost/ecas/data/ovid/latest/ovid-citation-all.txt' normalize: - path: 'vhost/ecas/ovid.pl' + - path: 'vhost/ecas/ovid.pl' - name: 'oxford' - skip: 1 description: 'Oxford Journals' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/oxford/sites.dtl' + path: 'vhost/ecas/data/oxford/sites.dtl' normalize: path: 'vhost/ecas/marc.pl' + skip: 1 - name: 'muse' description: 'Project MUSE' module: 'WebPAC::Input::MARC' - path: '/data/FF/ecasopisi/muse/premium.mrc' + path: 'vhost/ecas/data/muse/latest/premium.mrc' normalize: - path: 'vhost/ecas/marc-muse.pl' + - path: 'vhost/ecas/marc-muse.pl' - name: 'pubmed' description: 'PubMed Central' - module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/pubmed/jlist.xls' + module: 'WebPAC::Input::CSV' + path: 'vhost/ecas/data/pubmed/latest/pubmed.csv' + from: 1 + to: 2000 normalize: - path: 'vhost/ecas/pubmed.pl' + - path: 'vhost/ecas/pubmed.pl' - name: 'sd' description: 'ScienceDirect' module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/sd/50661_SD_Holdings_serial.xls' - from: 7 - to: 1966 + path: 'vhost/ecas/data/sd/latest/sd.xls' + from: 1 + to: 2500 + normalize: + - path: 'vhost/ecas/sd.pl' + - name: 'springeravailable' + description: 'SpringerLink - Humanities, Social Sciences and Law' + module: 'WebPAC::Input::Excel' + path: 'vhost/ecas/data/springer/Hum-SocSci-Low.xls' + from: 1 + to: 199 normalize: - path: 'vhost/ecas/sd.pl' - - name: 'springer' + - path: 'vhost/ecas/springer.pl' + - name: 'springerall' description: 'SpringerLink - Humanities, Social Sciences and Law' module: 'WebPAC::Input::Excel' - path: '/data/FF/ecasopisi/springer/Hum-SocSci-Low.xls' + path: 'vhost/ecas/data/springer/Hum-SocSci-Low.xls' from: 1 to: 200 + skip: 1 + normalize: + - path: 'vhost/ecas/springer.pl' + - name: 'titles' + description: 'Pojedinačni naslovi' + module: 'WebPAC::Input::TSV' + path: 'vhost/ecas/data/pojedinacni/pojedinacni.tsv' + skip: 0 normalize: - path: 'vhost/ecas/springer.pl' + - path: 'vhost/ecas/pojedinacni.pl' output: - module: 'WebPAC::Output::SWISH' - database: 'ecas' + - module: 'WebPAC::Output::SWISH' + database: 'ecas' diff --git a/vhost/ecas/data b/vhost/ecas/data new file mode 120000 index 0000000..8f66a10 --- /dev/null +++ b/vhost/ecas/data @@ -0,0 +1 @@ +/data/FF/casopisi/ecasopisi/holdings \ No newline at end of file diff --git a/vhost/ecas/degruyter2json.pl b/vhost/ecas/degruyter2json.pl new file mode 100644 index 0000000..e1ff951 --- /dev/null +++ b/vhost/ecas/degruyter2json.pl @@ -0,0 +1,15 @@ +tag( 'title', rec('C') ); +tag( 'issn', rec('A') ); +tag( 'issn_e', rec('B') ); +tag( 'price_pe_eur', rec('H') ); +tag( 'price_e_eur', rec('G') ); +tag( 'price_p_eur', rec('F') ); +tag( 'postage', rec('K') ); +tag( 'subject', rec('M') ); +tag( 'doi', rec('N') ); +tag( 'language', rec('O') ); +tag( 'note', rec('P') ); + +tag( 'collection', + config('input description') +) diff --git a/vhost/ecas/doaj.pl b/vhost/ecas/doaj.pl index a91d53c..6b78420 100644 --- a/vhost/ecas/doaj.pl +++ b/vhost/ecas/doaj.pl @@ -1,5 +1,5 @@ - search( 'title', rec('A') ); +search( 'title-alternative', rec('B') ); search( 'issn', join_with(' ; ', rec('F'), @@ -7,9 +7,18 @@ search( 'issn', ) ); search( 'publisher', rec('D') ); +search( 'language', rec('E') ); search( 'urlf', rec('C') ); search( 'language', rec('E') ); +search( 'country', rec('M') ); search( 'keyword', rec('H') ); +search( 'subject', rec('L') ); +search( 'coverage', + join_with(' - ', + rec('I'), + rec('J') + ) +); search( 'collection', config('input description') ) diff --git a/vhost/ecas/doaj2json.pl b/vhost/ecas/doaj2json.pl new file mode 100644 index 0000000..9157ab5 --- /dev/null +++ b/vhost/ecas/doaj2json.pl @@ -0,0 +1,19 @@ +tag( 'title', rec('A') ); +tag( 'title-alternative', rec('B') ); +tag( 'issn', rec('F') ); +tag( 'issn_e', rec('G') ); +tag( 'publisher', rec('D') ); +tag( 'urlf', rec('C') ); +tag( 'language', rec('E') ); +tag( 'country', rec('M') ); +tag( 'keyword', rec('H') ); +tag( 'subject', rec('L') ); +tag( 'coverage', + join_with('-', + rec('I'), + rec('J') + ) +); +tag( 'collection', + config('input description') +) diff --git a/vhost/ecas/duke2json.pl b/vhost/ecas/duke2json.pl new file mode 100644 index 0000000..7d95732 --- /dev/null +++ b/vhost/ecas/duke2json.pl @@ -0,0 +1,21 @@ +tag( 'title', rec('A') ); +tag( 'collection_standard', rec('B') ); +tag( 'collection_expanded', rec('C') ); +tag( 'issn', rec('D') ); +tag( 'issn_e', rec('E') ); +tag( 'coverage', + join_with('', + rec('F'), + rec('H') + ) +); +tag( 'url', rec('G') ); +tag( 'general_info', rec('N') ); +tag( 'price_pe_usd', rec('O') ); +tag( 'price_e_usd', rec('P') ); +tag( 'price_p_usd', rec('Q') ); +tag( 'postage', rec('R') ); + +tag( 'collection', + config('input description') +) diff --git a/vhost/ecas/ecas-labels.txt b/vhost/ecas/ecas-labels.txt index 3377c08..ba6c4cf 100644 --- a/vhost/ecas/ecas-labels.txt +++ b/vhost/ecas/ecas-labels.txt @@ -1,11 +1,18 @@ title Naslov titleen Alternativni naslov issn ISSN +coverage Dostupne godine url URL -urlp URL +urlp Proxy URL urlpe URL urlf URL +urlebsco URL keyword Ključne riječi language Jezik publisher Izdavač +titlechange Promjena naslova +remarks Napomena +subject Područje +title-alternative Alternativni naslov +language Jezik collection Zbirka diff --git a/vhost/ecas/ecas-search.html b/vhost/ecas/ecas-search.html index d46d7c3..2af84a2 100644 --- a/vhost/ecas/ecas-search.html +++ b/vhost/ecas/ecas-search.html @@ -33,21 +33,21 @@ rezultata po stranici

Zbirke:

diff --git a/vhost/ecas/emerald.pl b/vhost/ecas/emerald.pl index 1bc2d1a..8b2d830 100644 --- a/vhost/ecas/emerald.pl +++ b/vhost/ecas/emerald.pl @@ -1,6 +1,13 @@ - search( 'title', rec('A') ); -search( 'issn', rec('B') ); -search( 'url', rec('C') ); -search( 'urlp', rec('C') ); +search( 'issn', + rec('B'), +); +#search( 'coverage', rec('C') ); +search( 'publisher', 'Emerald' ); +search( 'url', rec('D') ); +search( 'urlp', rec('D') ); +#search( 'subject', rec('J') ); +search( 'collection', + config('input description') +); diff --git a/vhost/ecas/emerald2json.pl b/vhost/ecas/emerald2json.pl new file mode 100644 index 0000000..dc4c1d1 --- /dev/null +++ b/vhost/ecas/emerald2json.pl @@ -0,0 +1,8 @@ +tag( 'title', rec('A') ); +tag( 'issn', rec('B') ); +tag( 'url', rec('C') ); +tag( 'urlp', rec('C') ); +tag( 'collection', + config('input description') +); + diff --git a/vhost/ecas/hrcak.pl b/vhost/ecas/hrcak.pl index 5e67829..7894c6b 100644 --- a/vhost/ecas/hrcak.pl +++ b/vhost/ecas/hrcak.pl @@ -1,4 +1,3 @@ - search( 'title', rec('A') ); search( 'titleen', rec('B') ); search( 'issn', diff --git a/vhost/ecas/html.pm b/vhost/ecas/html.pm index 4014b3e..f2bfb7f 100644 --- a/vhost/ecas/html.pm +++ b/vhost/ecas/html.pm @@ -11,14 +11,14 @@ sub url { sub urlp { my ($self,$urlp) = @_; my $proxy = $urlp; - $proxy =~ s{http://}{http://proxy.knjiznice.ffzg.hr/proxy/nph-proxy.cgi/00/http/}; + $proxy =~ s{http://}{http://proxy.knjiznice.ffzg.hr/proxy/nph-proxy.cgi/en/00/http/}; qq{ Pristup od kuće }; } sub urlpe { my ($self,$urlpe) = @_; my $proxy = $urlpe; - $proxy =~ s{http://}{http://proxy.knjiznice.ffzg.hr/proxy/nph-proxy.cgi/00/http/}; + $proxy =~ s{http://}{http://proxy.knjiznice.ffzg.hr/proxy/nph-proxy2.cgi/en/00/http/}; qq{ Pristup od kuće }; } @@ -27,6 +27,13 @@ sub urlf { my ($self,$urlf) = @_; qq{ Slobodni pristup }; } + +sub urlebsco { + my ($self,$urlebsco) = @_; + my $cpid = $urlebsco . '&authtype=cpid&custid=s4311509'; + qq{ Pristup od kuće }; +} + #sub publisher { # my ($self,$publisher) = @_; # qq{$publisher}; diff --git a/vhost/ecas/jstor.pl b/vhost/ecas/jstor.pl index 44787ea..552d8be 100644 --- a/vhost/ecas/jstor.pl +++ b/vhost/ecas/jstor.pl @@ -1,15 +1,13 @@ - search( 'title', rec('A') ); -search( 'issn', +search( 'issn', join_with(' ; ', - rec('B'), + rec('B'), rec('C') ) ); -search( 'publisher', rec('F') ); -search( 'url', rec('E') ); -search( 'urlp', rec('E') ); -search( 'collection', - config('input description') -); - +search( 'coverage', rec('Q') ); +search( 'publisher', rec('P') ); +search( 'url', rec('J') ); +search( 'urlp', rec('J') ); +search( 'subject', rec('S') ); +search( 'collection', rec('R') ); diff --git a/vhost/ecas/jstor2json.pl b/vhost/ecas/jstor2json.pl new file mode 100644 index 0000000..bd3587f --- /dev/null +++ b/vhost/ecas/jstor2json.pl @@ -0,0 +1,12 @@ +tag( 'title', rec('A') ); +tag( 'issn', rec('B') ); +tag( 'issn_e', rec('L') ); +tag( 'coverage', rec('C') ); +tag( 'publisher', rec('F') ); +tag( 'url', rec('E') ); +tag( 'urlp', rec('E') ); +tag( 'subject', rec('J') ); +tag( 'collection', + config('input description') +); + diff --git a/vhost/ecas/kbar.pl b/vhost/ecas/kbar.pl new file mode 100644 index 0000000..75ce11c --- /dev/null +++ b/vhost/ecas/kbar.pl @@ -0,0 +1,31 @@ +search( 'title', rec('A') ); +search( 'issn', + join_with(' ; ', + rec('B'), + rec('C') + ) +); +search( 'coverage', + join_with(' - ', + rec('D'), + rec('G') + ) +); +search( 'publisher', rec('P') ); +search( 'url', rec('J') ); +search( 'urlp', rec('J') ); +search( 'subject', rec('S') ); + +if ( rec('R') && config('input description') =~ m/JSTOR/ ) { + search( 'collection', + join_with(' ', + 'JSTOR', rec('R') + ) + ); +} elsif ( rec('R') ) { + search( 'collection', rec('R') ); +} else { + search( 'collection', + config('input description') + ) +} diff --git a/vhost/ecas/marc-ebsco.pl b/vhost/ecas/marc-ebsco.pl new file mode 100644 index 0000000..fee76be --- /dev/null +++ b/vhost/ecas/marc-ebsco.pl @@ -0,0 +1,22 @@ +search( 'title', + regex('s/í/í/g', + rec('245','a') + ) +); +search( 'issn', + join_with(' ; ', + rec('022','a'), + rec('022','y') + ) +); +search( 'publisher', + regex('s/,$//', + rec('260','b') + ) +); +search( 'url', rec('856','u') ); +search( 'urlebsco', rec('856','u') ); +search( 'collection', + config('input description') +) + diff --git a/vhost/ecas/marc-muse.pl b/vhost/ecas/marc-muse.pl new file mode 100644 index 0000000..a081178 --- /dev/null +++ b/vhost/ecas/marc-muse.pl @@ -0,0 +1,24 @@ +search( 'title', + regex('s/í/í/g', + rec('245','a') + ) +); +search( 'issn', + join_with(' ; ', + rec('022','a'), + rec('022','y') + ) +); + +search( 'publisher', + regex('s/,$//', + rec('260','b') + ) +); +search( 'url', rec('856','u') ); +search( 'urlp', rec('856','u') ); +search( 'subject', rec('650','a') ); +search( 'collection', + config('input description') +) + diff --git a/vhost/ecas/marc-muse2json.pl b/vhost/ecas/marc-muse2json.pl new file mode 100644 index 0000000..d611112 --- /dev/null +++ b/vhost/ecas/marc-muse2json.pl @@ -0,0 +1,20 @@ +tag( 'title', + regex('s/í/í/g', + rec('245','a') + ) +); +tag( 'issn', rec('022','y') ); +tag( 'issn_e', rec('022','a') ); + +tag( 'publisher', + regex('s/,$//', + rec('260','b') + ) +); +tag( 'url', rec('856','u') ); +tag( 'urlp', rec('856','u') ); +tag( 'subject', rec('650','a') ); +tag( 'collection', + config('input description') +) + diff --git a/vhost/ecas/marc.pl b/vhost/ecas/marc.pl index d7cee97..747cb1a 100644 --- a/vhost/ecas/marc.pl +++ b/vhost/ecas/marc.pl @@ -15,7 +15,7 @@ search( 'publisher', ) ); search( 'url', rec('856','u') ); -search( 'urlpe', rec('856','u') ); +search( 'urlpe', rec('856','u') ); search( 'collection', config('input description') ) diff --git a/vhost/ecas/marc2json.pl b/vhost/ecas/marc2json.pl new file mode 100644 index 0000000..bfd89d4 --- /dev/null +++ b/vhost/ecas/marc2json.pl @@ -0,0 +1,19 @@ +tag( 'title', + regex('s/í/í/g', + rec('245','a') + ) +); +tag( 'issn', rec('022','a') ); +tag( 'issn_e', rec('022','y') ); +tag( 'publisher', + regex('s/,$//', + rec('260','b') + ) +); +tag( 'url', rec('856','u') ); +tag( 'urlpe', rec('856','u') ); +tag( 'coverage', rec('856','3') ); +tag( 'collection', + config('input description') +) + diff --git a/vhost/ecas/muse2json.pl b/vhost/ecas/muse2json.pl new file mode 100644 index 0000000..dd61533 --- /dev/null +++ b/vhost/ecas/muse2json.pl @@ -0,0 +1,11 @@ +tag('title', rec('A') ); +tag('url', rec('B') ); +tag('publisher', rec('C') ); +tag('issn_e', rec('E') ); +tag('issn', rec('F') ); +tag('from', rec('H') ); +tag('to', rec('I') ); +tag('coverage', rec('K') ); +tag('collection', + config('input description') +); diff --git a/vhost/ecas/ovid.pl b/vhost/ecas/ovid.pl old mode 100755 new mode 100644 index fde770c..bda40f9 --- a/vhost/ecas/ovid.pl +++ b/vhost/ecas/ovid.pl @@ -1,12 +1,10 @@ - search( 'title', rec('Source') ); search( 'issn', rec('ISSN') ); -search( 'url', 'http://ovidsp.ovid.com/ovidweb.cgi?T=JS&NEWS=n&PAGE=toc&D=ovft&AN=' . rec('Accession Number')); -search( 'urlp', 'http://ovidsp.ovid.com/ovidweb.cgi?T=JS&NEWS=n&PAGE=toc&D=ovft&AN=' . rec('Accession Number')); +search( 'url', rec('Link') ); +search( 'urlp', rec('Link') ); search( 'collection', - join_with(', ', - config('input description'), - rec('Journal Subset') + join_with('. ', + 'Ovid Full Text', + rec('Journal Subset'), ) ); - diff --git a/vhost/ecas/ovid2json.pl b/vhost/ecas/ovid2json.pl new file mode 100644 index 0000000..b023f4c --- /dev/null +++ b/vhost/ecas/ovid2json.pl @@ -0,0 +1,10 @@ +tag( 'title', rec('Source') ); +tag( 'issn', rec('ISSN') ); +tag( 'url', rec('Link to the Ovid Full Text or citation') ); +tag( 'urlp', rec('Link to the Ovid Full Text or citation') ); +tag( 'collection', + join_with('. ', + rec('Database'), + rec('Journal Subset'), + ) +); diff --git a/vhost/ecas/pojedinacni.pl b/vhost/ecas/pojedinacni.pl new file mode 100644 index 0000000..b258a22 --- /dev/null +++ b/vhost/ecas/pojedinacni.pl @@ -0,0 +1,16 @@ +search( 'title', rec('A') ); +search( 'issn', + join_with(' ; ', + rec('B'), + rec('C') + ) +); +search( 'url', + rec('D') +); +search( 'urlp', + rec('D') +); +search( 'collection', + rec ('E') +); diff --git a/vhost/ecas/pubmed.pl b/vhost/ecas/pubmed.pl index 411ff5f..4337eff 100644 --- a/vhost/ecas/pubmed.pl +++ b/vhost/ecas/pubmed.pl @@ -1,4 +1,3 @@ - search( 'title', rec('A') ); search( 'issn', join_with(' ; ', @@ -11,5 +10,4 @@ search( 'url', rec('M') ); search( 'urlp', rec('M') ); search( 'collection', config('input description') -) - +); diff --git a/vhost/ecas/pubmed2json.pl b/vhost/ecas/pubmed2json.pl new file mode 100644 index 0000000..ea39e07 --- /dev/null +++ b/vhost/ecas/pubmed2json.pl @@ -0,0 +1,9 @@ +tag( 'title', rec('A') ); +tag( 'issn', rec('C') ); +tag( 'issn_e', rec('D') ); +tag( 'publisher', rec('E') ); +tag( 'url', rec('M') ); +tag( 'urlp', rec('M') ); +tag( 'collection', + config('input description') +); diff --git a/vhost/ecas/sage2json.pl b/vhost/ecas/sage2json.pl new file mode 100644 index 0000000..12868b1 --- /dev/null +++ b/vhost/ecas/sage2json.pl @@ -0,0 +1,6 @@ +tag( 'title', rec('A') ); +tag( 'issn', rec('B') ); +tag( 'url', rec('F') ); +tag( 'collection', + config('input description') +) diff --git a/vhost/ecas/sd-txt2web.pl b/vhost/ecas/sd-txt2web.pl new file mode 100644 index 0000000..414f3c8 --- /dev/null +++ b/vhost/ecas/sd-txt2web.pl @@ -0,0 +1,20 @@ +search( 'title', rec('C') ); +search( 'issn', rec('D'), +); +search( 'publisher', rec('E') ); + +search( 'coverage', + join_with(' to ', + rec('H'), + rec('K'), + ) +); + +search( 'titlechange', rec('R') ); +search( 'remarks', rec('S') ); +search( 'url', rec('T') ); +search( 'urlp', rec('T') ); +search( 'collection', + config('input description') +); + diff --git a/vhost/ecas/sd.pl b/vhost/ecas/sd.pl index b9338d3..d357337 100644 --- a/vhost/ecas/sd.pl +++ b/vhost/ecas/sd.pl @@ -1,9 +1,14 @@ - search( 'title', rec('C') ); -search( 'issn', - rec('D'), -); +search( 'issn', rec('D') ); search( 'publisher', rec('E') ); +search( 'coverage', + join_with(' to ', + rec('H'), + rec('K'), + ) +); +search( 'titlechange', rec('R') ); +search( 'remarks', rec('S') ); search( 'url', rec('T') ); search( 'urlp', rec('T') ); search( 'collection', diff --git a/vhost/ecas/sd2json.pl b/vhost/ecas/sd2json.pl new file mode 100644 index 0000000..50efa40 --- /dev/null +++ b/vhost/ecas/sd2json.pl @@ -0,0 +1,16 @@ +tag( 'title', rec('C') ); +tag( 'issn', rec('D') ); +tag( 'publisher', rec('E') ); +tag( 'coverage', + join_with(' to ', + rec('H'), + rec('K'), + ) +); +tag( 'titlechange', rec('R') ); +tag( 'remarks', rec('S') ); +tag( 'url', rec('T') ); +tag( 'urlp', rec('T') ); +tag( 'collection', + config('input description') +); diff --git a/vhost/ecas/springer2json.pl b/vhost/ecas/springer2json.pl new file mode 100644 index 0000000..3dcd6c1 --- /dev/null +++ b/vhost/ecas/springer2json.pl @@ -0,0 +1,10 @@ +tag( 'title', rec('B') ); +tag( 'issn', rec('G') ); +tag( 'issn_e', rec('H') ); +tag( 'publisher', rec('F') ); +tag( 'url', rec('E') ); +tag( 'urlp', rec('E') ); +tag( 'subject', rec('I') ); +tag( 'collection', + config('input description') +); diff --git a/vhost/ecas/wiley2json.pl b/vhost/ecas/wiley2json.pl new file mode 100644 index 0000000..257b0ac --- /dev/null +++ b/vhost/ecas/wiley2json.pl @@ -0,0 +1,11 @@ +tag( 'title', rec('E') ); +tag( 'issn', rec('B') ); +tag( 'issn_e', rec('C') ); +tag( 'doi', rec('D') ); +tag( 'publisher', rec('K') ); +tag( 'url', rec('H') ); +tag( 'urlp', rec('H') ); +tag( 'collection', + config('input description') +); + -- 2.20.1