Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:open_data_sources:intech
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
indexing:open_data_sources:intech [2022/03/01 20:15] – created demiankatz | indexing:open_data_sources:intech [2022/07/08 12:54] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== InTech Open (e-Books) ====== | ====== InTech Open (e-Books) ====== | ||
- | " | + | " |
Suggested entry in ./ | Suggested entry in ./ | ||
Line 15: | Line 15: | ||
</ | </ | ||
- | :!: The code examples below have not been updated/ | + | To import |
- | + | ||
- | Suggested InTech.properties: | + | |
- | + | ||
- | < | + | |
- | ; XSLT Import Settings for InTech Open (e-Books) OAI XML files | + | |
- | [General] | + | |
- | ; REQUIRED: Name of XSLT file to apply. | + | |
- | ; of the VuFind | + | |
- | xslt = InTech.xsl | + | |
- | ; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat | + | |
- | ; this line to register multiple PHP functions. | + | |
- | php_function[] = utf8_encode | + | |
- | ; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. | + | |
- | ; The class name must match the filename, and the file must exist in the import/ | + | |
- | ; directory of the VuFind installation. | + | |
- | ; custom classes. | + | |
- | custom_class[] = VuFind | + | |
- | + | ||
- | ; XSLT parameters -- any key/value pairs set here will be passed as parameters to | + | |
- | ; the XSLT file, allowing local values to be set without modifying XSLT code. | + | |
- | [Parameters] | + | |
- | institution = "My University" | + | |
- | collection = " | + | |
- | building = "" | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Full exploit of data provided: InTech.xsl | + | |
- | + | ||
- | !! Warning: contains some " | + | |
- | + | ||
- | < | + | |
- | <!-- available fields are defined in solr/biblio/ | + | |
- | <!-- Adapted by / Author: Filipe M S Bento < | + | |
- | < | + | |
- | xmlns: | + | |
- | xmlns: | + | |
- | xmlns: | + | |
- | xmlns: | + | |
- | xmlns: | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | <!-- ID --> | + | |
- | <!-- Important: This relies on an < | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <!-- RECORDTYPE --> | + | |
- | <field name=" | + | |
- | + | ||
- | <!-- FULLRECORD --> | + | |
- | <!-- disabled for now; records are so large that they cause memory problems! | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | --> | + | |
- | + | ||
- | <!-- ALLFIELDS --> | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <!-- INSTITUTION --> | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <!-- COLLECTION --> | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <!-- building --> | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <!-- LANGUAGE --> | + | |
- | <xsl:if test="// | + | |
- | < | + | |
- | <xsl:if test=" | + | |
- | <field name=" | + | |
- | <!-- | + | |
- | < | + | |
- | --> | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <!-- FORMAT / TYPE --> | + | |
- | + | ||
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | <!-- SUBJECT --> | + | |
- | <xsl:if test="// | + | |
- | < | + | |
- | <xsl:if test=" | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <!-- DESCRIPTION --> | + | |
- | + | ||
- | <xsl:if test=" | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | + | ||
- | <!-- ADVISOR / CONTRIBUTOR --> | + | |
- | <xsl:if test="// | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | </xsl:if> | + | |
- | + | ||
- | + | ||
- | <!-- AUTHOR --> | + | |
- | <xsl:if test="//dc: | + | |
- | < | + | |
- | <xsl:if test=" | + | |
- | <field name=" | + | |
- | < | + | |
- | </field> | + | |
- | <!-- use first author value for sorting --> | + | |
- | <xsl:if test=" | + | |
- | <field name=" | + | |
- | < | + | |
- | </field> | + | |
- | </xsl:if> | + | |
- | </xsl:if> | + | |
- | </xsl: | + | |
- | </ | + | |
- | + | ||
- | <!-- TITLE --> | + | |
- | <xsl:if test="// | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <!-- PUBLISHER --> | + | |
- | <xsl:if test="// | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <!-- PUBLISHDATE --> | + | |
- | <xsl:if test="// | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | <field name=" | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <!-- ISBN --> | + | |
- | <xsl:if test="// | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | + | ||
- | <!-- PDF URL of the book chapter--> | + | |
- | < | + | |
- | <xsl:if test=" | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <!-- PDF URL of the entire e-book--> | + | |
- | < | + | |
- | < | + | |
- | | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | <!-- container_title => Book Title = dc: | + | |
- | <!-- | + | |
- | < | + | |
- | < | + | |
- | <field name=" | + | |
- | | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | --> | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Note: this .xsl invokes a new function " | + | |
- | + | ||
- | < | + | |
- | public static function InverteNome($in) | + | |
- | { | + | |
- | list($fnames, | + | |
- | + | ||
- | if ( is_null($lname) ) // if author has only one name | + | |
- | { | + | |
- | $text = " | + | |
- | } | + | |
- | else | + | |
- | { | + | |
- | $text = " | + | |
- | } | + | |
- | + | ||
- | /** Only Last and First name | + | |
- | + | ||
- | list( $fname, $mname, $lname ) = explode( ' ', $in, 3 ); | + | |
- | if ( is_null($lname) ) //Author has only two names | + | |
- | { | + | |
- | $lastname = $mname; | + | |
- | } | + | |
- | else | + | |
- | { | + | |
- | $lname = explode( ' ', $lname ); | + | |
- | $size = sizeof($lname); | + | |
- | $lastname = $lname[$size-1]; | + | |
- | } | + | |
- | + | ||
- | $text = " | + | |
- | + | ||
- | **/ | + | |
- | + | ||
- | return $text; | + | |
- | } | + | |
- | + | ||
- | </ | + | |
- | + | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
indexing/open_data_sources/intech.1646165723.txt.gz · Last modified: 2022/03/01 20:15 by demiankatz