Coder Social home page Coder Social logo

pointing to the first item about marcspec HOT 5 CLOSED

cKlee avatar cKlee commented on June 11, 2024
pointing to the first item

from marcspec.

Comments (5)

cKlee avatar cKlee commented on June 11, 2024

Another possibility is to use a more XLSTish syntax like 100[0] for the first author, 100[1] for the second author and so on...

from marcspec.

cKlee avatar cKlee commented on June 11, 2024

But what is about repeatable subfields? Pointing to an index of a subfield in an index of a field will become very verbose.

100[0]a[0]

Maybe not a good idea?

from marcspec.

nichtich avatar nichtich commented on June 11, 2024

If aimed at trained programmers, the index should be zero-based, if aimed at non-programming people, one should consider 1 to refer to the first element. Indexes, such as 100[1], 100[2], 100a[1], and even 100[1]a[1] are fine IMHO - if this feature is important enough to be added to MARCspec. One could also allow ranges, such as [1-2], [2-], and [-3], but use cases are probably limited. The data is further processed anyway, so more complex processing can also be done by other means instead of MARCspec.

from marcspec.

cKlee avatar cKlee commented on June 11, 2024

Yes 1 for the first element seems more obvious. But I think librarians familiar with MARC already know about the character positions and that the first index is always 0. I think we should keep this consitent: First character and first element should both use the index 0. Otherwise it gets confusing.

from marcspec.

cKlee avatar cKlee commented on June 11, 2024

Done with tag v0.4draft

from marcspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.