Record Types

Help
2005-04-29
2013-05-28
  • Nobody/Anonymous

    Hi,

    it would be fine to extend the record types from the web-Interface. On the other hand, all standard record types from bibtex implemented as standard would also be a good idea.

     
    • Matthias Steffens

      Hi,

      I agree that adding new reference types from the web interface would be nice. Currently (i.e. using refbase-0.8.0) you have to add new types directly to the MySQL database. Here's an example:

      Assuming your refbase MySQL database is named 'literature' you can issue the following statement using the MySQL command line interpreter:

      INSERT INTO literature.types SET type_id = NULL, type_name = 'Tech Report', type_enabled = 'true', base_type_id = '3', order_by = '3';

      You should alter the values for 'type_name', 'type_enabled', 'base_type_id' and 'order_by' to fit your needs:

      type_name: the name of the reference type as it occurs within the "Types" drop down
      type_enabled: choosing 'true' enables this type, 'false' would disable it
      base_type_id: the ID of another entry in table 'types' that serves as a base type for this type (i.e. that resembles it most closely); 'base_type_id' should preferably refer to one of the default types provided by refbase
      order_by: a string that controls how type items are sorted in the drop down

      Now log into refbase using your admin account. Click on "Manage Users", then click on the "edit options" link for the user where you want to enable the just added reference types. Under "Display Options" select the new reference types and click on "Submit".

      The new reference types are now available for this user. Note that the entries in the "Types" drop down are sorted according to the 'order_by' field in table 'types'.

      There's one caveat, though: currently, refbase won't map any new reference types to existing cite styles, i.e. unless you provide your own styles for the new reference types, the cite function will fail for any records that use reference types that refbase doesn't know about. Future versions of refbase will use the 'base_type_id' field in table 'types' as a fall back mechanism if no cite style is available for a particular reference type.

      Hope this helps, Matthias

       
    • Nobody/Anonymous

      This helps, I added some fields, maybe it makes sense to add some in the standard lists for future releases. That's why here my mysql-output (I hope it is shown nearly as a table ...:

      +---------+------------------+--------------+--------------+----------+
      | type_id | type_name        | type_enabled | base_type_id | order_by |
      +---------+------------------+--------------+--------------+----------+
      |       1 | Journal Article  | true         |            1 | 1        |
      |       2 | Book Chapter     | true         |            2 | 5        |
      |       3 | Book Whole       | true         |            3 | 2        |
      |       4 | Journal          | true         |            3 | 3        |
      |       5 | Manuscript       | true         |            3 | 8        |
      |       6 | Map              | true         |            3 | 10       |
      |       7 | Conference       | true         |            1 | 4        |
      |       8 | Manual           | true         |            3 | 6        |
      |       9 | Technical Report | true         |            3 | 7        |
      |      10 | Webpage          | true         |            2 | 9        |
      +---------+------------------+--------------+--------------+----------+

      I think this covers the most used bibtex-entries.

       
    • Nobody/Anonymous

      This helps, attached is my list of reference types, maybe it is makes sense to add some of the entries in future releases.

      +---------+------------------+--------------+--------------+----------+
      | type_id | type_name        | type_enabled | base_type_id | order_by |
      +---------+------------------+--------------+--------------+----------+
      |       1 | Journal Article  | true         |            1 | 1        |
      |       2 | Book Chapter     | true         |            2 | 5        |
      |       3 | Book Whole       | true         |            3 | 2        |
      |       4 | Journal          | true         |            3 | 3        |
      |       5 | Manuscript       | true         |            3 | 8        |
      |       6 | Map              | true         |            3 | 10       |
      |       7 | Conference       | true         |            1 | 4        |
      |       8 | Manual           | true         |            3 | 6        |
      |       9 | Technical Report | true         |            3 | 7        |
      |      10 | Webpage          | true         |            2 | 9        |
      +---------+------------------+--------------+--------------+----------+

       
    • Nobody/Anonymous

      It seems that posts with an mysql-output will be send to nowhere. Attached is a list of all my entries in the "ref_types" table:

      1  Journal Article     true    1  1  
      2  Book Chapter      true    2  5  
      3  Book Whole        true    3  2  
      4  Journal                true   3  3  
      5  Manuscript          true    3  8 
      6  Map                    true    3  10
      7  Conference          true    1  4
      8  Manual                true    3  6
      9  Technical Report  true    3  7
      10  Webpage           true    2  9

       
    • Matthias Steffens

      We didn't provide any further types with refbase-0.8.0 since there weren't any matching cite styles. It would have been pretty confusing if some reference types would work when citing and others would not. We will provide more reference types by default as soon as we have the fallback mechanism (using 'base_type_id') in place.

      The cite functionality will see an overhaul in the future. As an example, besides the currently supported PHP functions, we plan to support other formats to be used as cite styles. Projects like Mark Grimshaw's 'OSBib'[1] or the XML/XSLT workflow ('xbiblio'[2]) propagated by Bruce d'Arcus come to mind.

      [1]: http://sourceforge.net/project/showfiles.php?group_id=113285&package_id=150961

      [2]: http://xbiblio.sourceforge.net/

      Matthias

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks